<!--
	var intSubtotal;
	function catReqCheck()
	{
		strFirstName = document.catreqForm.firstname.value;
		strLastName = document.catreqForm.lastname.value;
		strCompany = document.catreqForm.company.value;
		strAdd1 = document.catreqForm.add1.value;
		strCountry = document.catreqForm.country.options[document.catreqForm.country.selectedIndex].value;
		strZip = document.catreqForm.zip.value;
		strEmail = document.catreqForm.email.value;
		strReferral = document.catreqForm.referral.options[document.catreqForm.referral.selectedIndex].value;
		strSearchEngine = document.catreqForm.searchEngine.value;
		strComments = document.catreqForm.comments.value;
		strSHM = "";
		strIC = "";
		strTE = "";
		strFO = "";
		strMUL = "";
		strLS = "";
		strXDSL = "";
		strDIN = "";
		strWAN = "";
		strMC = "";
		strOI = "";

		if (document.catreqForm.shm.checked) {strSHM = document.catreqForm.shm.value};
		if (document.catreqForm.ic.checked) {strIC = document.catreqForm.ic.value};
		if (document.catreqForm.te.checked) {strTE = document.catreqForm.te.value};
		if (document.catreqForm.fo.checked) {strFO = document.catreqForm.fo.value};
		if (document.catreqForm.mul.checked) {strMUL = document.catreqForm.mul.value};
		if (document.catreqForm.ls.checked) {strLS = document.catreqForm.ls.value};
		if (document.catreqForm.xdsl.checked) {strXDSL = document.catreqForm.xdsl.value};
		if (document.catreqForm.din.checked) {strDIN = document.catreqForm.din.value};
		if (document.catreqForm.wan.checked) {strWAN = document.catreqForm.wan.value};
		if (document.catreqForm.mc.checked) {strMC = document.catreqForm.mc.value};
		if (document.catreqForm.oi.checked) {strOI = document.catreqForm.oi.value};

		if (strFirstName == "") {
			alert("Please enter first name.");
			
			return false;
		}
		else if (strLastName == "") {
			alert("Please enter last name.");
			return false;
		}
		else if (strCompany == "") {
			alert("Please enter company name.");
			return false;
		}
		else if (strAdd1== "") {
			alert("Please enter address.");
			return false;
		}
		else if (strCountry== "") {
			alert("Please select a country.")
			return false;
		}
		else if (strZip == "") {
			alert("Please enter zip code.");
			return false;
		}
		else if (strEmail == "") {
			alert("Please enter email address.");
			return false;
		}
		else if (strEmail != "" && (strEmail.indexOf("@") < 0 || strEmail.indexOf(".") < 0)) {
			alert("Invalid email address.");
			return false;
		}
		else if (strReferral != "") {
			if (strReferral == "Search Engine") {
				if (strSearchEngine == "") {
					alert("Please enter a search engine name.");
					return false;
				}
			}
		}
		else if (strComments != "") {
			if (strComments.length > 2000) {
				alert("Comments must be less than 2000 characters.");
				return false;
			}
		}
		if (strSHM == "" && strIC == "" && strTE == "" && strFO == "" && strMUL == "" && strLS == "" && strXDSL == "" && strDIN == "" && strWAN == "" && strMC == "" && strOI == "") {
			alert("Please select a product.");
			return false;
		}	
		return true;
	}
		
	function orderFormCheck()
	{
		strBillto_Name = document.orderForm.billto_name.value;
		strBillto_Company = document.orderForm.billto_company.value;
		strBillto_Add1 = document.orderForm.billto_add1.value;
		strBillto_Add2 = document.orderForm.billto_add2.value;
		strBillto_City = document.orderForm.billto_city.value;
		strBillto_State = document.orderForm.billto_state.options[document.orderForm.billto_state.selectedIndex].value;
		strBillto_Country = document.orderForm.billto_country.options[document.orderForm.billto_country.selectedIndex].value;
		strBillto_Zip = document.orderForm.billto_zip.value;
		strEmail = document.orderForm.email.value;
		
		strShipto_Name = document.orderForm.shipto_name.value;
		strShipto_Company = document.orderForm.shipto_company.value;
		strShipto_Add1 = document.orderForm.shipto_add1.value;
		strShipto_Add2 = document.orderForm.shipto_add2.value;
		strShipto_City = document.orderForm.shipto_city.value;
		strShipto_Add1 = document.orderForm.shipto_add1.value;
		strShipto_State = document.orderForm.shipto_state.options[document.orderForm.shipto_state.selectedIndex].value;		
		strShipto_Country = document.orderForm.shipto_country.options[document.orderForm.shipto_country.selectedIndex].value;
		strShipto_Zip = document.orderForm.shipto_zip.value;
		strEmail = document.orderForm.email.value;
		strShipBill = "same"
		strShippingMethod = document.orderForm.shippingMethod.options[document.orderForm.shippingMethod.selectedIndex].value;		

		strPhone = document.orderForm.phone.value;
		strFax = document.orderForm.fax.value;
		strModel1 = document.orderForm.model1.value;
		strQuantity1 = document.orderForm.quantity1.value;
		strPrice1 = document.orderForm.price1.value;
		strModel2 = document.orderForm.model2.value;
		strQuantity2 = document.orderForm.quantity2.value;
		strPrice2 = document.orderForm.price2.value;
		strModel3 = document.orderForm.model3.value;
		strQuantity3 = document.orderForm.quantity3.value;
		strPrice3 = document.orderForm.price3.value;
		strModel4 = document.orderForm.model4.value;
		strQuantity4 = document.orderForm.quantity4.value;
		strPrice4 = document.orderForm.price4.value;

		if (document.orderForm.shipbill[1].checked) {
			strShipBill = "diff"
		}

		if (strBillto_Name == "") {
			alert("Please enter bill to name.");
			return false;
		}
		else if (strBillto_Company == "") {
			alert("Please enter bill to company name.");
			return false;
		}
		else if (strBillto_Add1== "") {
			alert("Please enter bill to address.");
			return false;
		}
		else if (strBillto_Country== "") {
			alert("Please select bill to country.")
			return false;
		}
		else if (strBillto_Zip == "") {
			alert("Please enter bill to zip code.");
			return false;
		}
		else if (strEmail == "") {
			alert("Please enter email address.");
			return false;
		}
		else if (strEmail != "" && (strEmail.indexOf("@") < 0 || strEmail.indexOf(".") < 0)) {
			alert("Invalid email address.");
			return false;
		}
	
		if (document.orderForm.shipbill[1].checked) {
			strShipBill = "diff"
			if (strShipto_Name == "") {
				alert("Please enter ship to name.");
				return false;
			}
			else if (strShipto_Company == "") {
				alert("Please enter ship to company name.");
				return false;
			}
			else if (strShipto_Add1== "") {
				alert("Please enter ship to address.");
				return false;
			}
			else if (strShipto_Country== "") {
				alert("Please select ship to country.")
				return false;
			}
			else if (strShipto_Zip == "") {
				alert("Please enter ship to zip code.");
				return false;
			}
		}
		else {
			 strShipto_Name = strBillto_Name
			 strShipto_Company = strBillto_Company
			 strShipto_Add1 = strBillto_Add1
			 strShipto_Add2 = strBillto_Add2
			 strShipto_City = strBillto_City
			 strShipto_State = strBillto_State
			 strShipto_Country = strBillto_Country
			 strShipto_Zip = strBillto_Zip
		}
	
		if (document.orderForm.paymentMethod[0].checked) {
			if (document.orderForm.POnumber.value == "") {
				alert("Please enter PO number.");
				return false;
			}
			else if (document.orderForm.POnumber.value != "" && (document.orderForm.POnumber.value.length > 30)) {
				alert("PO number must be less than 30 character.");
				return false;
			}
		}

		if (strShippingMethod == "") {
			alert("Please select a shipping method.");
			return false;
		}
		if (strModel1 == "" && strQuantity1 == "" && strPrice1 == "" && strModel2 == "" && strQuantity2 == "" && strPrice2 == "" && strModel3 == "" && strQuantity3 == "" && strPrice3 == "" && strModel4 == "" && strQuantity4 == "" && strPrice4 == "") {
			alert("Please enter order information.");
			return false;
		}
		else {
			if (strModel1 == "" && strQuantity1 == "" && strPrice1 == "") { }
			else {
				if (strModel1 == "") { alert("Please enter model number for first item."); return false; }
				if (strQuantity1 == "") { alert("Please enter quanitity for first item."); return false; }
				if (strPrice1 == "") { alert("Please enter price for first item."); return false; }
				if ( isNaN(strQuantity1) ) { alert("Quantity must be a number."); return false; }
				if ( isNaN(strPrice1) ) { alert("Price must be a number."); return false; }

			}
			if (strModel2 == "" && strQuantity2 == "" && strPrice2 == "") { }
			else {
				if (strModel2 == "") { alert("Please enter model number for second item."); return false; }
				if (strQuantity2 == "") { alert("Please enter quanitity for second item."); return false; }
				if (strPrice2 == "") { alert("Please enter price for second item."); return false; }
				if ( isNaN(strQuantity2) ) { alert("Quantity must be a number."); return false; }
				if ( isNaN(strPrice2) ) { alert("PPrice must be a number."); return false; }
			}
			if (strModel3 == "" && strQuantity3 == "" && strPrice3 == "") { }
			else {
				if (strModel3 == "") { alert("Please enter model number for third item."); return false; }
				if (strQuantity3 == "") { alert("Please enter quanitity for third item."); return false; }
				if (strPrice3 == "") { alert("Please enter price for third item."); return false; }
				if ( isNaN(strQuantity3) ) { alert("Quantity must be a number."); return false; }
				if ( isNaN(strPrice3) ) { alert("Price must be a number."); return false; }
			}
			if (strModel4 == "" && strQuantity4 == "" && strPrice4 == "") { }
			else {
				if (strModel4 == "") { alert("Please enter model number for fourth item."); return false; }
				if (strQuantity4 == "") { alert("Please enter quanitity for fourth item."); return false; }
				if (strPrice4 == "") { alert("Please enter price for fourth item."); return false; }
				if ( isNaN(strQuantity4) ) { alert("Quantity must be a number."); return false; }
				if ( isNaN(strPrice4) ) { alert("Price must be a number."); return false; }
			}		
		}
		
		if (document.orderForm.paymentMethod[0].checked) {
		   strPaymentMethod = "PO";
		   strPM = "Purchase Order (#" + document.orderForm.POnumber.value + ")"; 
		}
		if (document.orderForm.paymentMethod[1].checked) {
		   strPaymentMethod = "COD";
		   strPM = "C.O.D.";
		}
		if (document.orderForm.paymentMethod[2].checked) {
		   strPaymentMethod = "CC";
		   strPM = "Credit Card";
		}
		strPOnumber = document.orderForm.POnumber.value;
		
		calTotal();
		d = new Date();
		strD = d.getDate();
		strM = d.getMonth() + 1;
		strY = d.getFullYear();
		strDate = strM + "/" + strD + "/" + strY;
		strContent = "<html><head><title>Telebyte Online Order Form</title><script type='text/javascript' src='javascripts/checkdata.js'></script></head>" +
		   	 "<body bgcolor='#ffffff' link='#0000EE' vlink='#551A8B' alink='#FF0000'><p><font face='Verdana' size='2'><map name='FPMap0'>" + 
			 "<area href='index.htm' shape='rect' coords='7, 7, 209, 55'></map>" + 
			 "<img border='0' src='images/online-order-form.gif' align='top' usemap='#FPMap0' width='360' height='144'>&nbsp;&nbsp;&nbsp;&nbsp;</font></p>" +
			 "<form action='http://www.telebytedatacom.com/xt_forms.asp' method='POST' name='orderForm'>" +
			 "<input type='hidden' name='email' value='" + strEmail + "'>" +
			 "<input type='hidden' name='shipbill' value='" + strShipBill + "'>" +
			 "<input type='hidden' name='billto_name' value='" + strBillto_Name + "'>" +
			 "<input type='hidden' name='billto_company' value='" + strBillto_Company + "'>" +
			 "<input type='hidden' name='billto_add1' value='" + strBillto_Add1 + "'>" +
			 "<input type='hidden' name='billto_add2' value='" + strBillto_Add2 + "'>" +
			 "<input type='hidden' name='billto_city' value='" + strBillto_City + "'>" +
			 "<input type='hidden' name='billto_state' value='" + strBillto_State + "'>" +
			 "<input type='hidden' name='billto_zip' value='" + strBillto_Zip + "'>" +
			 "<input type='hidden' name='billto_country' value='" + strBillto_Country + "'>" +
			 "<input type='hidden' name='shipto_name' value='" + strShipto_Name + "'>" +
			 "<input type='hidden' name='shipto_company' value='" + strShipto_Company + "'>" +
			 "<input type='hidden' name='shipto_add1' value='" + strShipto_Add1 + "'>" +
			 "<input type='hidden' name='shipto_add2' value='" + strShipto_Add2 + "'>" +
			 "<input type='hidden' name='shipto_city' value='" + strShipto_City + "'>" +
			 "<input type='hidden' name='shipto_state' value='" + strShipto_State + "'>" +
			 "<input type='hidden' name='shipto_zip' value='" + strShipto_Zip + "'>" +
			 "<input type='hidden' name='shipto_country' value='" + strShipto_Country + "'>" +
			 "<input type='hidden' name='phone' value='" + strPhone + "'>" +
			 "<input type='hidden' name='fax' value='" + strFax + "'>" +
			 "<input type='hidden' name='paymentMethod' value='" + strPaymentMethod + "'>" +
			 "<input type='hidden' name='POnumber' value='" + strPOnumber + "'>" +
			 "<input type='hidden' name='shippingMethod' value='" + strShippingMethod + "'>" +
			 "<input type='hidden' name='model1' value='" + strModel1 + "'>" +
			 "<input type='hidden' name='quantity1' value='" + strQuantity1 + "'>" +
			 "<input type='hidden' name='price1' value='" + strPrice1 + "'>" +
			 "<input type='hidden' name='model2' value='" + strModel2 + "'>" +
			 "<input type='hidden' name='quantity2' value='" + strQuantity2 + "'>" +
			 "<input type='hidden' name='price2' value='" + strPrice2 + "'>" +
			 "<input type='hidden' name='model3' value='" + strModel3 + "'>" +
			 "<input type='hidden' name='quantity3' value='" + strQuantity3 + "'>" +
			 "<input type='hidden' name='price3' value='" + strPrice3 + "'>" +
			 "<input type='hidden' name='model4' value='" + strModel4 + "'>" +
			 "<input type='hidden' name='quantity4' value='" + strQuantity4 + "'>" +
			 "<input type='hidden' name='price4' value='" + strPrice4 + "'>" +
			 "<input type='hidden' name='refURL' value='" + ""+ "'>" +
			 "<br><font face='verdana' size='3pt'><b>REVIEW ORDER - " + strDate + " </font><p><font face='verdana' size='2pt'><b>If the information is incorrect, please <a href='javascript:history.go(-1);'>GO BACK</a> and make the neccessary changes.</b></font></p>" +
			 "<table width='660'><tr><td colspan='2'><font face='verdana' size='2pt'><b>Bill to Address:</font></td><td colspan='2'><font face='verdana' size='2pt'><b>Ship to Address:</font></td></tr>" +
			 "<tr><td width='15%'><font face='verdana' size='2pt'>Address1:</font></td><td width='35%'><font face='verdana' size='2pt'>" + strBillto_Add1 + "</font></td><td width='15%'><font face='verdana' size='2pt'>Address1:</font></td><td width='35%'><font face='verdana' size='2pt'>" + strShipto_Add1 + "</font></td></tr>" +
			 "<tr><td><font face='verdana' size='2pt'>Address2:</font></td><td><font face='verdana' size='2pt'>" + strBillto_Add2 + "</font></td><td><font face='verdana' size='2pt'>Address2:</font></td><td><font face='verdana' size='2pt'>" + strShipto_Add2 + "</font></td></tr>" +
			 "<tr><td><font face='verdana' size='2pt'>City:</font></td><td><font face='verdana' size='2pt'>" + strBillto_City + "</font></td><td><font face='verdana' size='2pt'>City:</font></td><td><font face='verdana' size='2pt'>" + strShipto_City + "</font></td></tr>" +
			 "<tr><td><font face='verdana' size='2pt'>State:</font></td><td><font face='verdana' size='2pt'>" + strBillto_State + "</font></td><td><font face='verdana' size='2pt'>State:</font></td><td><font face='verdana' size='2pt'>" + strShipto_State + "</font></td></tr>" +
			 "<tr><td><font face='verdana' size='2pt'>Country</font></td><td><font face='verdana' size='2pt'>" + strBillto_Country + "</font></td><td><font face='verdana' size='2pt'>Country:</font></td><td><font face='verdana' size='2pt'>" + strShipto_Country + "</font></td></tr>" +
			 "<tr><td><font face='verdana' size='2pt'>Zip:</font></td><td><font face='verdana' size='2pt'>" + strBillto_Zip + "</font></td><td><font face='verdana' size='2pt'>Zip:</font></td><td><font face='verdana' size='2pt'>" + strShipto_Zip + "</font></td></tr></table>" +			 
			 "<br><table width='660'><tr><td width='20%'><font face='verdana' size='2pt'>Payment Method:</font></td><td width='80%'><font face='verdana' size='2pt'>" + strPM + "</font></td></tr>" +
			 "<tr><td><font face='verdana' size='2pt'>Shipping Method:</font></td><td><font face='verdana' size='2pt'>" + strShippingMethod + "</font></td><tr></table>" +
			 "<br><table width='660'><tr><td><font face='verdana' size='2pt'><b>Model</b></font></td><td><font face='verdana' size='2pt'><b>Quantity</b></font></td><td><font face='verdana' size='2pt'><b>Unit Price</b></font></td><tr>" +
			 "<tr><td><font face='verdana' size='2pt'>" + strModel1 + "</font></td><td><font face='verdana' size='2pt'>" + strQuantity1 + "</font></td><td><font face='verdana' size='2pt'>" + strPrice1 + "</font></td><tr>" +
			 "<tr><td><font face='verdana' size='2pt'>" + strModel2 + "</font></td><td><font face='verdana' size='2pt'>" + strQuantity2 + "</font></td><td><font face='verdana' size='2pt'>" + strPrice2 + "</font></td><tr>" +
			 "<tr><td><font face='verdana' size='2pt'>" + strModel3 + "</font></td><td><font face='verdana' size='2pt'>" + strQuantity3 + "</font></td><td><font face='verdana' size='2pt'>" + strPrice3 + "</font></td><tr>" +
			 "<tr><td><font face='verdana' size='2pt'>" + strModel4 + "</font></td><td><font face='verdana' size='2pt'>" + strQuantity4 + "</font></td><td><font face='verdana' size='2pt'>" + strPrice4 + "</font></td><tr>" +
			 "<tr><td><font face='verdana' size='2pt'><b>Total</b></font></td><td colspan='2'><font face='verdana' size='2pt'>$" + intSubtotal + "</font></td></tr></table>" + 
			 "<p><font face='verdana' size='2pt'><b>Please click <a href='javascript:document.orderForm.submit();'>PLACE ORDER</a> to continue.</b></font></p>"
			 "</form></body></html>"
		document.write(strContent);
		return false;
	}

	function calTotal() {
		strQuantity1 = document.orderForm.quantity1.value;
		strPrice1 = document.orderForm.price1.value;
		strQuantity2 = document.orderForm.quantity2.value;
		strPrice2 = document.orderForm.price2.value;
		strQuantity3 = document.orderForm.quantity3.value;
		strPrice3 = document.orderForm.price3.value;
		strQuantity4 = document.orderForm.quantity4.value;
		strPrice4 = document.orderForm.price4.value;
//		strDiscount = document.orderForm.discount.value;

		if (strQuantity1 != "" && strPrice1 != "" ) {
			if ( isNaN(strQuantity1) ) { alert("Quantity must be a number."); return false; }
			if ( isNaN(strPrice1) ) { alert("Price must be a number."); return false; }
			intQuantity1 = parseInt(strQuantity1);
			intPrice1 = parseFloat(strPrice1);
			intSubtotal1 = intQuantity1 * intPrice1;
		}
		else {
			intSubtotal1 = 0;
		}

		if (strQuantity2 != "" && strPrice2 != "" ) {
			if ( isNaN(strQuantity2) ) { alert("Quantity must be a number."); return false; }
			if ( isNaN(strPrice2) ) { alert("Price must be a number."); return false; }
			intQuantity2 = parseInt(strQuantity2);
			intPrice2 = parseFloat(strPrice2);
			intSubtotal2 = intQuantity2 * intPrice2;
		}
		else {
			intSubtotal2 = 0;
		}

		if (strQuantity3 != "" && strPrice3 != "" ) {
			if ( isNaN(strQuantity3) ) { alert("Quantity must be a number."); return false; }
			if ( isNaN(strPrice3) ) { alert("Price must be a number."); return false; }
			intQuantity3 = parseInt(strQuantity3);
			intPrice3 = parseFloat(strPrice3);
			intSubtotal3 = intQuantity3 * intPrice3;
		}
		else {
			intSubtotal3 = 0;
		}
		if (strQuantity4 != "" && strPrice4 != "" ) {
			if ( isNaN(strQuantity4) ) { alert("Quantity must be a number."); return false; }
			if ( isNaN(strPrice4) ) { alert("Price must be a number."); return false; }
			intQuantity4 = parseInt(strQuantity4);
			intPrice4 = parseFloat(strPrice4);
			intSubtotal4 = intQuantity4 * intPrice4;
		}
		else {
			intSubtotal4 = 0;
		}
//		if (strDiscount != "") {
//			if ( isNaN(strDiscount) ) { alert("Discount must be a number."); return false; }
//			intDiscount = parseFloat(strDiscount);
//		}
//		else {
//			intDiscount = 0
//		}

//		intSubtotal = (intSubtotal1 + intSubtotal2 + intSubtotal3 + intSubtotal4) - intDiscount;
		intSubtotal = (intSubtotal1 + intSubtotal2 + intSubtotal3 + intSubtotal4);

		document.orderForm.subtotal1.value = intSubtotal1;
		document.orderForm.subtotal2.value = intSubtotal2;
		document.orderForm.subtotal3.value = intSubtotal3;		
		document.orderForm.subtotal4.value = intSubtotal4;
		document.orderForm.subtotal.value = intSubtotal;
		return false;
	}

	function previewForm()
	{
		strBillto_Name = document.orderForm.billto_name.value;
		strBillto_Company = document.orderForm.billto_company.value;
		strBillto_Add1 = document.orderForm.billto_add1.value;
		strBillto_Country = document.orderForm.billto_country.options[document.orderForm.billto_country.selectedIndex].value;
		strBillto_Zip = document.orderForm.billto_zip.value;
		strEmail = document.orderForm.email.value;
		
		strShipto_Name = document.orderForm.shipto_name.value;
		strShipto_Company = document.orderForm.shipto_company.value;
		strShipto_Add1 = document.orderForm.shipto_add1.value;
		strShipto_Country = document.orderForm.shipto_country.options[document.orderForm.shipto_country.selectedIndex].value;
		strShipto_Zip = document.orderForm.shipto_zip.value;
		strEmail = document.orderForm.email.value;
		strShipBill = "same"
		strShippingMethod = document.orderForm.shippingMethod.options[document.orderForm.shippingMethod.selectedIndex].value;		

		strModel1 = document.orderForm.model1.value;
		strQuantity1 = document.orderForm.quantity1.value;
		strPrice1 = document.orderForm.price1.value;
		strModel2 = document.orderForm.model2.value;
		strQuantity2 = document.orderForm.quantity2.value;
		strPrice2 = document.orderForm.price2.value;
		strModel3 = document.orderForm.model3.value;
		strQuantity3 = document.orderForm.quantity3.value;
		strPrice3 = document.orderForm.price3.value;
		strModel4 = document.orderForm.model4.value;
		strQuantity4 = document.orderForm.quantity4.value;
		strPrice4 = document.orderForm.price4.value;
		
		document.write(strBillto_Name);
	}

	function getParameter() {

		var strURL = window.location.href;
		var strParameter;
		var indexParameter = strURL.indexOf("=");
		if (indexParameter >= 0) {
			strParameter = strURL.substring(indexParameter+1, strURL.length);
		}
		else {
			strParameter = "sales@telebyteusa.com";
//			strParameter = " ";
		}
		return strParameter;
	}

	function contactCheck()
	{
		strFirstName = document.contactForm.firstname.value;
		strLastName = document.contactForm.lastname.value;
		strTitle = document.contactForm.title.value;
		strCompany = document.contactForm.company.value;
		strAdd1 = document.contactForm.add1.value;
		strAdd2 = document.contactForm.add2.value;
		strCity = document.contactForm.city.value;
		strState = document.contactForm.state.options[document.contactForm.state.selectedIndex].value;
		strCountry = document.contactForm.country.options[document.contactForm.country.selectedIndex].value;
		strZip = document.contactForm.zip.value;
		strPhone = document.contactForm.phone.value;
		strFax = document.contactForm.fax.value;
		strEmail = document.contactForm.email.value;
		strSubject = document.contactForm.subject.value;
		strMessage = document.contactForm.message.value;
		var strParam;

		if (strFirstName == "") {
			alert("Please enter first name.");
			contactForm.firstname.focus();			
			return false;
		}
		else if (strLastName == "") {
			alert("Please enter last name.");
			contactForm.lastname.focus();			
			return false;
		}
		else if (strCompany == "") {
			alert("Please enter company name.");
			contactForm.company.focus();			
			return false;
		}
		else if (strAdd1== "") {
			alert("Please enter address.");
			contactForm.add1.focus();			
			return false;
		}
		else if (strCountry== "") {
			alert("Please select a country.")
			contactForm.country.focus();			
			return false;
		}
		else if (strZip == "") {
			alert("Please enter zip code.");
			contactForm.zip.focus();			
			return false;
		}
		else if (strEmail == "") {
			alert("Please enter email address.");
			contactForm.email.focus();			
			return false;
		}
		else if (strEmail != "" && (strEmail.indexOf("@") < 0 || strEmail.indexOf(".") < 0)) {
			alert("Invalid email address.");
			contactForm.email.focus();			
			return false;
		}
		else if (strPhone == "") {
			alert("Please enter phone number.");
			contactForm.phone.focus();			
			return false;
		}
		else if (strMessage == "") {
			alert("Please enter a message.");
			contactForm.message.focus();			
			return false;
		}
		else if (strMessage != "") {
			if (strMessage.length > 5000) {
				alert("Message must be less than 5000 characters.");
				contactForm.message.focus();			
				return false;
			}
		}
		strParam = getParameter();
		strContents = "<html><head><title>Telebyte Contact US</title></head><body>" + 
			"<TABLE WIDTH=885 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD width='339'>" +
            		"<map name='FPMap3'><area href='index.htm' shape='rect' coords='52, 15, 207, 60'></map>" + 
			"<IMG SRC='images/contact_us_01.jpg' ALT='Return to the Welcome page.' usemap='#FPMap3' border='0' width='339' height='65'><br>&nbsp;&nbsp;</TD>" + 
			"<TD COLSPAN=2 width='546'></TD></TR><TR><TD valign='top' align='left' width='339'>" + 
			"<IMG SRC='images/contact_us_03.jpg' ALT='' width='339' height='60'></TD>" + 
			"<TD valign='top' align='left' width='237'><IMG SRC='images/contact_us_11.jpg' width='207' height='40' vspace='8'></TD>" +
			"<TD valign='top' align='left' width='309'><IMG SRC='images/contact_us_05.jpg' ALT='' width='211' height='60'></TD>" + 
			"</TR><TR><TD valign='top' width='339'><font face='Verdana' size='2'>" + 
            		"<img border='0' src='images/spacer.gif' width='125' height='99' align='left'>Main/Order: 631.423.3232<br>" + 
            		"Place an Order: 800.835.3298<br><IMG SRC='images/contact_us_04.jpg' ALT='' width='108' height='1'>(800-telebyt)<br>" + 
            		"Fax: 631.385.8184<br>Fax an Order: 631.423.3267</font></TD><TD valign='top' width='237'><font face='Verdana' size='2'>" + 
            		"<img border='0' src='images/spacer.gif' width='50' height='117' align='left'>Telebyte, Inc<br>" + 
            		"270 Pulaski Road<br>Greenlawn, New York 11740</font><p><font face='Verdana' size='2'><a href='driving_directions.htm'>" + 
			"Driving Directions</a></font></p><IMG SRC='images/contact_us_04.jpg' ALT='' width='6' height='38' align='left'></TD>" + 
			"<TD valign='top' width='309'><font face='Verdana' size='2'><img border='0' src='images/spacer.gif' width='66' height='82' align='left'>" + 
			"Sales: <a href='contact.htm?to=sales@telebyteusa.com'>sales@telebyteusa.com</a><br>" + 
			"Technical Support: <a href='mailto:support@telebyteusa.com'>support@telebyteusa.com<br>" + 
			"</a>Corporate Web: <a href='http://www.telebyte.biz' target='_blank'>www.Telebyte.biz</a></font>" + 
			"</TD></TR><TR><TD COLSPAN='3' width='885' valign='top'><div align='center'>" + 
			"<form action='http://www.telebytedatacom.com/xt_forms.asp' name='contactForm' method='POST' onSubmit='contactCheck();'>" + 
    			"<table border='0' cellpadding='0' cellspacing='0' width='734' style='border-collapse: collapse' bordercolor='#111111'>" + 
			"<tr><td colspan='5'><font face='verdana' size=2' color='#000000'><b><ul><li>If the following information is correct, please click " +
			"<a href='javascript:document.contactForm.submit();'>continue</a> to submit the information.</li><li>If the information is not correct, " + 
			"please click <a href='javascript:history.go(-1);'>make changes</a> to make the necessary corrections.</li</ul></b></font><br>&nbsp;<br></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>First Name:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strFirstName + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Last Name:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strLastName + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Title:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strTitle + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Company:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strCompany + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Address 1:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strAdd1 + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Address 2:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strAdd2 + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>City:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strCity + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>State:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strState + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Country:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strCountry + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Zipcode:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strZip + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Phone:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strPhone + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Fax:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strFax + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Email Address:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strEmail + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Subject:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strSubject + "</font></td></tr>" +
			"<tr><td wdith='5%' width='58'>&nbsp;</td><td align='left' width='112'><font face='Verdana' size='2' color='#000000'>Message:</font></td>" + 
      			"<td align='left' width='564'><font face='verdana' size='2' color='#000000'>" + strMessage + "</font></td></tr>" +
			"<input type='hidden' name='firstname' value='" + strFirstName + "'>" + 
			"<input type='hidden' name='lastname' value='" + strLastName + "'>" + 
			"<input type='hidden' name='title' value='" + strTitle + "'>" + 
			"<input type='hidden' name='company' value='" + strCompany + "'>" + 
			"<input type='hidden' name='add1' value='" + strAdd1 + "'>" + 
			"<input type='hidden' name='add2' value='" + strAdd2 + "'>" + 
			"<input type='hidden' name='city' value='" + strCity + "'>" + 
			"<input type='hidden' name='state' value='" + strState + "'>" + 
			"<input type='hidden' name='country' value='" + strCountry + "'>" + 
			"<input type='hidden' name='zip' value='" + strZip + "'>" + 
			"<input type='hidden' name='phone' value='" + strPhone + "'>" + 
			"<input type='hidden' name='fax' value='" + strFax + "'>" + 
			"<input type='hidden' name='email' value='" + strEmail + "'>" + 
			"<input type='hidden' name='subject' value='" + strSubject + "'>" + 
			"<input type='hidden' name='message' value='" + strMessage + "'>" + 
			"<input type='hidden' name='sentTo' value='" + strParam + "'>" + 
			"</form></div></table>" + 
			"</td></tr><TR><TD COLSPAN='3' width='885'><p align='center'><br>&nbsp;<br><map name='FPMap2'>" + 
            		"<area href='index.htm' shape='rect' coords='0, 5, 56, 41'><area href='catalog/prodlist.htm' shape='rect' coords='73, 0, 172, 56'>" + 
            		"<area href='new.htm' shape='rect' coords='186, 0, 266, 55'><area href='catreq.asp' shape='rect' coords='313, 0, 437, 56'>" + 
            		"<area href='dist.htm' shape='rect' coords='464, 0, 556, 50'><area href='contact.htm' shape='rect' coords='582, 6, 657, 56'>" +
            		"<area href='tech.htm' shape='rect' coords='672, 0, 769, 54'></map><IMG SRC='images/contact_us_04.jpg' ALT='' width='93' height='55' align='left'>" + 
			"<img border='0' src='images/lower-banner.gif' usemap='#FPMap2' width='770' height='57'></p></TD></TR></table></BODY></html>"
			document.write(strContents);
		return false;
	}

-->
