	function openWin(img) {
		newWin = window.open ("popimage.asp?img="+img,"newWin","location=0,status=0,scrollbars=0,width=620,height=550");
  		newWin.moveTo(0,0);
		return false;
	}
	
	function breakFrame() {
		if (window != top) top.location.href = location.href;	
	}
	
	function check_this() {
		var strError = "";
		if (document.getElementById("firstname").value == "") strError = strError + "First Name not entered \n";
		if (document.getElementById("lastname").value == "") strError = strError + "Last Name not entered \n";
		if (document.getElementById("companyname").value == "") strError = strError + "Company Name not entered \n";
		if (document.getElementById("address1").value == "") strError = strError + "Address not entered \n";	
		if (document.getElementById("state").options[document.getElementById("state").selectedIndex].value == "") {
			strError = strError + "State not selected \n";
		}
		if (document.getElementById("city").value == "") strError = strError + "City not entered \n";
		if (document.getElementById("zipcode").value == "") strError = strError + "Zip/Postal code not entered \n";
		if (document.getElementById("phone").value == "") strError = strError + "Phone Number not entered \n";
	
		if (document.getElementById("custentity7")) {
			if (document.getElementById("custentity7").length) {
				if (document.getElementById("custentity7").selectedIndex == -1 || document.getElementById("custentity7").selectedIndex == 0) {
					strError = strError + "How you heard about us not selected \n";
				}
			}
		}
		
		strMsg = "The following errors were found:";
		if (!strError == "") {
			alert(strMsg + "\n\n" + strError); 
			return false;		
		}
		else {
			document.getElementById("img_submit").disabled = true;
			return true;	
		}
	}	
	
	function check_this2() {
		var strError = "";
		if (document.getElementById("firstname").value == "") strError = strError + "First Name not entered \n";
		if (document.getElementById("lastname").value == "") strError = strError + "Last Name not entered \n";
		if (document.getElementById("companyname").value == "") strError = strError + "Company Name not entered \n";
		if (document.getElementById("zipcode").value == "") strError = strError + "Zip/Postal code not entered \n";
		if (document.getElementById("phone").value == "") strError = strError + "Phone Number not entered \n";
		if (document.getElementById("custentity7")) {
			if (document.getElementById("custentity7").length) {
				if (document.getElementById("custentity7").selectedIndex == -1 || document.getElementById("custentity7").selectedIndex == 0) {
					strError = strError + "How you heard about us not selected \n";
				}
			}
		}
		strMsg = "The following errors were found:";
		if (!strError == "") {
			alert(strMsg + "\n\n" + strError); 
			return false;		
		}
		else {
			document.getElementById("img_submit").disabled = true;
			return true;	
		}
	}