﻿
var string=window.location.href;
var getit = new Array();
    
    if ( string.indexOf('teams_prev') == -1  )
    
    {
        //var getit = string.split("constructioncommunicator.com/");
        var getit = string.split("concomm2.com/");
        
    }

    else
    
    {   
        var getit=string.split("teams_prev/");
        
    }
    
    if (getit[1] == "index.html" || getit[1] == "")
    
    {

		function formValidate(theForm)
		{
		
		  if (theForm.Name.value == "" || theForm.Name.value == "First & Last Name")
		  {
		    alert("Please enter a value for the \"First & Last Name\" field.");
		    theForm.Name.focus();
		    return (false);
		  }
		
		  if (theForm.Company.value == "" || theForm.Company.value == "Company")
		  {
		    alert("Please enter a value for the \"Company\" field.");
		    theForm.Company.focus();
		    return (false);
		  }
				
		  if (theForm.coytype.value == "")
		  {
		    alert("Please select one of the Company \" Type\" fields.");
		    theForm.coytype.focus();
		    return (false);
		  }
  
		  if (theForm.Phone.value == "" || theForm.Phone.value == "Area Code & Ph. #")
		  {
		    alert("Please enter a value for the \"Phone\" field.");
		    theForm.Phone.focus();
		    return (false);
		  }

		  if (theForm.Email.value == "" || theForm.Email.value == "E-mail Address")
		  {
		    alert("Please enter a value for the \"E-mail\" field.");
		    theForm.Email.focus();
		    return (false);
		  }
		  theForm.d[1].value = theForm.Email.value;
		  
		  return (true);        
		}
		
}