
	
	function checkFormProductRegistration(){
	if ($('strPhone').value=='000-000-0000') {
			$('strPhone').value='';
	}
	
	errorcount = 0;
		checktext("strNameFirst");
		checktext("strModelNumber");
		checkselect("strWherePurchase");
		checkemail("strEmail");
		checktext("strNameLast");	
		checktext("strAddress");	
		checktext("strCity");	
		checktext("strZip");	
		checkphone("strPhone");
		
		if ( $('strCountry').value=="US" || $('strCountry').value=="CA" ) {
		checktext("strState");
		}
		checktext("strCountry");

		var Moveon = Checkform();
			if(Moveon){
				$("reg").submit();
			}
		if ($('strPhone').value=='') {
				$('strPhone').value='000-000-0000';
		}
	
	}
	

	function openDiv(DIV) {
		$("contentProduct").style.display='none';
		$("contentMachine").style.display='none';
		
		$(DIV).style.display='';
	}
	
	closeDIV = ''
	
	function OpenCloseDiv(DIV) {
		if (closeDIV != '') {
					$(closeDIV).style.display='none';
			}
	
		$(DIV).style.display='';
		closeDIV = DIV;
	}

	function checkProduct(){

		var c_value = "";
		for (var i=0; i < document.catProduct.strDelivery.length; i++)
		   {
		   if (document.catProduct.strDelivery[i].checked)
			  {
			  c_value = c_value + document.catProduct.strDelivery[i].value;
			  }
		   }
		

		
	
		if (c_value == 'PDF') {
			$("catProduct").target="OS";
		} else {
			$("catProduct").target="";
		}
		
		
		errorcount = 0;
		checktext("strNameFirstProduct");
		checktext("strNameLastProduct");
		checktext("strEmailProduct");
		
			if ($("strEmailProduct").value!=''){
				checkemail("strEmailProduct");
			}	
		checktext("strAddressProduct");
		checktext("strCityProduct");
		checktext("strStateProduct");
		checktext("strZipCodeProduct");
		checktext("strCountryProduct");
		var Moveon = Checkform();
			if(Moveon){
				$("catProduct").submit();
			}
		
	}
	
	function checkMachine(){
		
		var c_value = "";
		for (var i=0; i < document.catMachine.strDelivery.length; i++)
		   {
		   if (document.catMachine.strDelivery[i].checked)
			  {
			  c_value = c_value + document.catMachine.strDelivery[i].value;
			  }
		   }
		

		
		if (c_value =="PDF") {
			$("catMachine").target="OS";
		} else {
			$("catMachine").target="";
		}
		
		errorcount = 0;
		checktext("strNameFirstMachine");
		checktext("strLastFirstMachine");
		checktext("strEmailMachine");
			if ($("strEmailMachine").value!=''){
				checkemail("strEmailMachine");
			}	
		checktext("strAddressMachine");	
		checktext("strCityMachine");
		checktext("strStateMachine");
		checktext("strZipCodeMachine");
		checktext("strCountryMachine");
		var Moveon = Checkform();
			if(Moveon){
				$("catMachine").submit();
			}
	}
	

	
	function checkFormContact(){
		errorcount = 0;
		checktext("strNameFirst");
		checkemail("strEmail");
		checktext("strNameLast");	
		checkselect("strDepartment");
		checktext("txtComment");

		var Moveon = Checkform();
			if(Moveon){
				$("contactForm").submit();
			}
	}
	




