	function isNumeric(what)
	 {
		if (what.search(/^[-+]?\d+(\.\d+)?$/) != -1)
			{
			return true;
			}
		else
			{
			return false;
			}
	 }
	 
function chkEmail(email)
{}	 


	function validate()
	{
return validateAllCommonFormFields(document.frmreq.firstname,document.frmreq.lastname,document.frmreq.company,document.frmreq.street,document.frmreq.city,document.frmreq.state,document.frmreq.zip,document.frmreq.phone,document.frmreq.email,document.frmreq.employee,document.frmreq.industry,document.frmreq.url,document.frmreq.position);
	}
	
function chkPhone(sph) { 
 var CleanedString=""; 
 var index = 0; 
 var LimitCheck; 
 var InitialString = sph;

 //Get the length of the inputted string, to know how many characters to check
 LimitCheck = InitialString.length;
 
 //Walk through the inputted string and collect only number characters, appending them to CleanedString
 while (index != LimitCheck) { 
  if (isNaN(parseInt(InitialString.charAt(index)))) { } 
  else { CleanedString = CleanedString + InitialString.charAt(index); } 
  index = index + 1; 
 }
 
 //If CleanedString is exactly 10 digits long, then format it and allow form submission
 if (CleanedString.length == 10) { 
  sph = "(" + CleanedString.substring(0,3) + ") " + CleanedString.substring(3,6) + "-" + CleanedString.substring(6,10); 
  document.frmreq.phone.value = sph;
 }
 
 
 
 //If CleanedString is not 10 digits longs, show an alert and cancel form submission
 else { 
  CleanedString = InitialString; 
//  alert("United States phone numbers must have exactly ten digits.");
 return false
 } 
} 

//function that contains calls to validate service specific question and generic questions - used for iframes
function validateStep1(formElem){
var flag = checkRequiredCatQs(formElem);
if (flag == false)
	return flag;
return validate();
}
