function wstxSubmitForm()
{

   if(document.getElementById("formElement_Name").value.length<2)
    {
        alert('First and Last Name is too short! ');
        document.getElementById("formElement_Name").focus();  
        return false;
    }
    if(document.getElementById("formElement_Email").value==0){
            alert("Email Address is required.");
            document.getElementById("formElement_Email").focus(); 
            return false;
    }else{
        var testStr2 = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
        var str2 =document.getElementById("formElement_Email").value;
        if(!testStr2.test(str2)) {
            alert('Your email address is not valid!');
            document.getElementById("formElement_Email").focus();    
        return false;  
        }
    }
	
    if(document.getElementById("TypeofBusiness").value.length<2)
    {
        alert('Type of Business is too short! ');
        document.getElementById("TypeofBusiness").focus();  
        return false;
    }
    if(document.getElementById("Phone").value.length<4)
    {
        alert('Phone Number is too short! ');
       document.getElementById("Phone").focus();  
        return false;
    }
    if(document.getElementById("Credit").value.length<2)
    {
        alert('Rate your Credit is too short! ');
       document.getElementById("Credit").focus();  
        return false;
    }
    
    if(document.getElementById("Locationpreference").value.length<2)
    {
        alert('Location preferences is too short!');
       document.getElementById("Locationpreference").focus();  
        return false;
    }
    if(document.getElementById("SquareFeet").value.length<2)
    {
        alert('Square footage required is too short!');
       document.getElementById("SquareFeet").focus();  
        return false;
    }

    if (document.getElementById("TermRequired").value.length < 2)
    {
        alert('Term required is too short!');
       document.getElementById("TermRequired").focus();  
        return false;
    }
}

function wstxSubmitForm_()
{

   if(document.getElementById("formElement_Name_").value.length<2)
    {
        alert('Name is too short! ');
        document.getElementById("formElement_Name_").focus();  
        return false;
    }
	if(document.getElementById("Company").value.length<1)
    {
        alert('Please enter your company name! ');
        document.getElementById("Company").focus();  
        return false;
    }
    if(document.getElementById("formElement_Email_").value==0){
            alert("Email Address is required.");
            document.getElementById("formElement_Email_").focus(); 
            return false;
    }else{
        var testStr2 = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
        var str2 = document.getElementById("formElement_Email_").value;
        if(!testStr2.test(str2))
        {
        alert('Your email address is not valid!');   
        document.getElementById("formElement_Email_").focus();    
        return false;  
        }
    }
    return true;
}
