<!-- Hide

	function isEmpty(inputStr) {
	  if (inputStr == "" || inputStr == null) {
		return true
	  }
	  return false
	}
	function isEmailAddr(e_mail){
		var result = false;
		var theStr = new String(e_mail);
		var index = theStr.indexOf("@");
		if (index > 0){
			var pindex = theStr.indexOf(".",index);
				if ((pindex > index+1) && (theStr.length > pindex+1))
					result = true;
			}
		return result;
	}
	function alert_select(campo, name){
		if (name == "Email"){
			alert("Please enter an E-mail valid")
			campo.focus()
			campo.select()
		}else{
			alert("Please enter your " + name)
			campo.focus()
			campo.select()
		}
	}
	function ValidaDatos(form){
		if (isEmpty(form.company.value)){
			alert_select(form.company,"Company")
		  	return false
		 }
		if (isEmpty(form.department.value)){
		  	alert_select(form.department,"Department")
			return false
		 }
		if (isEmpty(form.company.value)){
		 	alert_select(form.company,"Company")
		 	return false
		 }
		if (isEmpty(form.phone.value)){
			alert_select(form.phone,"Phone")
		  	return false
		 }
		if (isEmpty(form.fax.value)){
		  	alert_select(form.fax,"Fax")
		  	return false
		 }
 		if (isEmpty(form.email_accounting.value) || !isEmailAddr(form.email_accounting.value)){
		  	alert_select(form.email_accounting.value,"Email Accounting")
		  	return false
		 }
		if (isEmpty(form.email_purchasing.value) || !isEmailAddr(form.email_purchasing.value)){
			alert_select(form.email_purchasing.value,"Email Purchasing")
			return false
		 }
		if (isEmpty(form.building_address.value)){
			alert_select(form.building_address,"Building Address")
			return false
		 }
		if (isEmpty(form.city.value)){
			alert_select(form.city,"City")
			return false
		 }
		if (isEmpty(form.state.value)){
			alert_select(form.state,"State")
			return false
		 }
		if (isEmpty(form.zip_code.value)){
			alert_select(form.zip_code,"Zip Code")
			return false
		 }
		 if (isEmpty(form.ship_address.value)){
			alert_select(form.ship_address,"Ship Address")
			return false
		 }
		 if (isEmpty(form.deliver_instruccions.value)){
			alert_select(form.deliver_instruccions,"Special Deliver Instructions")
			return false
		 }
		if (isEmpty(form.p_o_number.value)){
		  	alert("Please tell us if you Require P.O. Number")
  			form.p_o_number.focus()
			form.p_o_number.select()
		  	return false
		 }
	}
// -->