function validateNonEmpty(inputfield, helpText) {
  
  // See if the input value contains any text
  
   if (inputfield.value.length == 0 || inputfield.value == null || inputfield.value == " ") {
     
     // The data is invalid, so set the help message
     
      if (helpText != null)
      
         helpText.innerHTML = "Please enter a value."; 
         inputfield.focus(); 

      return false;
      
   }
   
   else  {
   
    // The data is OK, so clear the help message
    
    if (helpText != null)
    
       helpText.innerHTML = "";
       
    return true;
    
    }
    
}   

function emailcheck()
{

var email_string = document.info_req.from_addr.value;
if (email_string.indexOf("@")==-1)
   {
    alert("Please enter a valid email address for a response!");
    return false;
    }
    else
    return true;
} 
 

function validate_form(thisform)
{
  valid = true;

 if (document.getElementById("B_Name").value == "")
  { 
   alert("Please enter your Business Name");
   valid = false;
  }
 if (document.getElementById("POC").value == "")
  { 
   alert("Please enter your Contact Person");
   valid = false;
  }
 if (document.getElementById("Phone").value == "")
  { 
   alert("Please enter your Phone Number");
   valid = false;
  }
 if (document.getElementById("from_addr").value == "")
  { 
   alert("Please enter your Email Address");
   valid = false;
  }

  return valid;
}





function setStyle(e)
{
   document.getElementById(e).style.background="yellow"
}          

function remStyle(e)
{
   document.getElementById(e).style.background="white"
}