function winPopHelp(id){	window.open('_help.php?topic='+id,'report','status=no, menubar=yes, scrollbars=no, width=550, height=400')}function winPopMenu(id){   	window.open('popMenu.php?id='+id,'report','status=no, menubar=no, scrollbars=no, resizable=0, width=400, height=350')}function winPop(id){	window.open('popNut.php?id='+id,'report','status=no, menubar=no, scrollbars=no, resizable=0, width=400, height=225')}function updateAssm () {	if(document.extra.delivery.checked)		document.extra.assemble.checked = true;	else		document.extra.assemble.checked = false;}function popReport(report,rid,sessid) {   	theChild=window.open('popReport.php?report='+report+'&rid='+rid+'&sessid='+sessid,report,'status=no, menubar=no, scrollbars=yes, width=400, height=400');}function pdfReport(report,sid,sessid) {   	theChild=window.open('pdfReport.php?sid='+sid+'&sessid='+sessid,report,'status=no, resizable=yes, menubar=no, scrollbars=yes, width=400, height=400');}function pdfGift(gcid) {   	theChild=window.open('pdfReport.php?gcid='+gcid+'&report=giftcerts','giftcerts','status=no, resizable=yes, menubar=no, scrollbars=yes, width=400, height=400');}function winMoveSess(date,rid,schedid,sessid,name) {   	theChild=window.open('changeSessions.php?schedid='+schedid+'&rid='+rid+'&sessid='+sessid+'&name='+name,'giftcerts','status=no, resizable=yes, menubar=no, scrollbars=yes, width=400, height=400');}function updateQty (id, minus, continueOffBtnSrc, continueOnBtnSrc){	val = parseInt(document.getElementById("itemcnt_"+id).innerHTML);		if (minus == false)	{		if (isNaN(val))		{			document.getElementById("itemcnt_"+id).innerHTML = '1';			document.getElementById("itemval_"+id).value = '1';		}		else		{			document.getElementById("itemcnt_"+id).innerHTML = val+1;			document.getElementById("itemval_"+id).value = val+1;					 		}		val = parseInt (document.getElementById("totalitems").innerHTML);		if (isNaN(val))			document.getElementById("totalitems").innerHTML = '1';		else			document.getElementById("totalitems").innerHTML = val+1;				   	   document.getElementById("itemcntminus_"+id).style.visibility="visible";	   	   if (val+1 >= 8)	   {		   document.getElementById ("continuebtn").src = continueOnBtnSrc;	   }			   }   else   {		if (isNaN(val) || (val-1) == 0)		{			document.getElementById("itemcnt_"+id).innerHTML = '';			document.getElementById("itemcntminus_"+id).style.visibility="hidden";			document.getElementById("itemval_"+id).value = 0;		}		else		{			document.getElementById("itemcnt_"+id).innerHTML = val-1;			document.getElementById("itemval_"+id).value = val-1;		}	   				val = parseInt (document.getElementById("totalitems").innerHTML);				if (isNaN(val) || (val - 1) == 0)			document.getElementById("totalitems").innerHTML = '0';		else			document.getElementById("totalitems").innerHTML = val-1;	   if ((val-1) <= 8)	   {		   document.getElementById ("continuebtn").src = continueOffBtnSrc;	   }			    }   if(document.getElementById("itemval_"+id).value >= 2) 	   document.getElementById("itemcntadd_"+id).style.visibility="hidden";   else		   document.getElementById("itemcntadd_"+id).style.visibility="visible";}function submitMenuItems (){	val = parseInt (document.getElementById("totalitems").innerHTML);	if (isNaN(val) || val <= 7)	   return;	else	   document.forms['mySession'].submit();}