<!-- hide script from browser
 function ContactUs() {
   var strloc;
   strloc = "ma";
   strloc = strloc + "il";
   strloc = strloc + "to";
   strloc = strloc + ":";
   strloc = strloc + "webenq";
   strloc = strloc + "uiry";
   strloc = strloc + "@";
   strloc = strloc + "flowmarque";
   strloc = strloc + ".";
   strloc = strloc + "c";
   strloc = strloc + "o";
   strloc = strloc + "m";
   location.href = strloc;
   return;
 }

 function isEmpty(strToCheck) {
   var regexp;   
   if (strToCheck == null || strToCheck.length == 0) {
      return true;
   } else {
      regexp = /\s/;
      while ( regexp.test(strToCheck) )
         strToCheck = strToCheck.replace(regexp, "");
      if (strToCheck == null || strToCheck.length == 0) {
         return true;
      }
   }
   return false;
 }

 function isEmptyElem(elemName) {
   var regexp;   
   var strToCheck;
   strToCheck = document.forms[0].elements[elemName].value;
   if (isEmpty(strToCheck)) {
      document.forms[0].elements[elemName].value = "";
      return true;
   }

   regexp = /^\s/;
   while ( regexp.test(strToCheck) )
      strToCheck = strToCheck.replace(regexp, "");
   regexp = /\s$/;
   while ( regexp.test(strToCheck) )
      strToCheck = strToCheck.replace(regexp, "");

   regexp = /\t/;
   while ( regexp.test(strToCheck) )
      strToCheck = strToCheck.replace(regexp, " ");
   regexp = /  /;
   while ( regexp.test(strToCheck) )
      strToCheck = strToCheck.replace(regexp, " ");
   regexp = /\r\r/;
   while ( regexp.test(strToCheck) )
      strToCheck = strToCheck.replace(regexp, "\r");
   regexp = /\n\n/;
   while ( regexp.test(strToCheck) )
      strToCheck = strToCheck.replace(regexp, "\n");
   regexp = /\r\n\r\n\r\n/;
   while ( regexp.test(strToCheck) )
      strToCheck = strToCheck.replace(regexp, "\r\n\r\n");

   document.forms[0].elements[elemName].value = strToCheck;
   return isEmpty(strToCheck);
 }

 function isPhoneChar(evt) {
   evt = (evt) ? evt : window.event;
   var charCode = (evt.which) ? evt.which : evt.keyCode;
   if (charCode < 32 || charCode > 57) {
      return false;
   }
   return true;
 }

 function checkForm(form) {
   var i1;
   var i2;
   var blnTest;
   var strTemp;
   var strTest;

   if (isEmptyElem('ContactName')) {
      alert("Please, enter your name in the 'Name:' field.");
      return false;
   }

   if (isEmptyElem('ContactCompany')) {
      alert("Please, enter your company name in the 'Company:' field.");
      return false;
   }

   if (isEmptyElem('ContactEmail')) {
      alert("Please, enter your e-mail address in the 'E-mail:' field.");
      return false;
   }

   strTemp = form.elements['ContactEmail'].value;
   if (isEmpty(strTemp) || strTemp.indexOf(" ") != -1) {
      alert("Please, enter a valid E-mail address.");
      return false;
   }
	
   i1 = strTemp.indexOf('@');
   if (i1 != -1) {
      strTemp = strTemp.substring(i1, strTemp.length);
      if (isEmpty(strTemp))
         i2= -1;
      else
         i2 = strTemp.indexOf('.');
   } 
   if ( (i1 == -1) || (i2 == -1) ) {
      alert("Please, enter a valid E-mail address.");
      return false;
   }

   if ( i2 < 3 ) {
      alert("Please, enter a valid E-mail address.");
      return false;
   }

   if (isEmptyElem('ContactPhone')) {
      alert("Please, enter a contact telephone number in the 'Tel:' field.");
      return false;
   }

   blnTest = isEmptyElem('ContactPhone');
   if (blnTest == false ) {
      strTest = form.elements['ContactPhone'].value;
      if (strTest.length > 0 && strTest.length < 5) {
         alert("Your telephone number is too short.");
         return false;
      } 
   }

   blnTest = isEmptyElem('ContactFax');
   if (blnTest == false ) {
      strTest = form.elements['ContactFax'].value;
      if (strTest.length > 0 && strTest.length < 5) {
         alert("Your fax number is too short.");
         return false;
      } 
   }

   if (form.name == "Contact" ) {
      if (isEmptyElem('ContactMessage')) {
         alert("Please, enter a message in the 'Message:' field.");
         return false;
      }

      blnTest = isEmpty('ContactMessage');
      if (blnTest == false ) {
         strTest = form.elements['ContactMessage'].value;
         if (strTest.length > 0 && strTest.length < 5) {
            alert("Your message is too short.");
            return false;
         } 
      }
   } else {
      // check, Min Flow
      // check, Max Flow
      // check, Gradient
      // check, Channel Type
   }

   return true;
 }
// -->
