
<!--
	
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CHECK FOR EMPTY FORM FIELD ///////
/////////////////////////////////////
	
	function JSLNotNull(pctl, pmsg)
	{
		if (pctl.value == "")
		{
			alert(pmsg); pctl.focus(); pctl.select(); return false;
		}
		return true;
	}	
	
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CHECK THAT VALUE HAS BEEN CHOSEN FORM SELECT LIST ///////
////////////////////////////////////////////////////////////

	function JSLSelected(pctl, pmsg){
	   if (pctl.value == "none") { alert(pmsg); pctl.focus(); return false; }
	   return true;
	}
	
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CHECK THAT VALUE IS A TRUE INTEGER ///////
/////////////////////////////////////////////

	function JSLIsInteger(pctl, pmsg)
	{
		pattern = /^[0-9]*$/;
		if (pattern.test(pctl.value)==false){alert(pmsg); pctl.focus(); pctl.select(); return false;}
		return true;
	}
	
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// AUTO-SUBMIT FORM SELECT LISTS ///////
////////////////////////////////////////

	function submitCartUpdate(id){
		document.forms['updatecart'].submit();
	}

//-->



