function addExtra(theForm,theElementNum)
{theElement="checkbox"+theElementNum;quantity="Q"+theElementNum;if(document.getElementById(theElement).checked==true)
{theForm.numLineCount.value=parseInt(theForm.numLineCount.value)+1;document.getElementById(quantity).value=1;}
else
{theForm.numLineCount.value=parseInt(theForm.numLineCount.value)-1;document.getElementById(quantity).value=0;}}
function addPDI(theForm,theElementNum)
{quantity="Q"+theElementNum;theForm.numLineCount.value=parseInt(theForm.numLineCount.value)+1;document.getElementById(quantity).value=1;}
