function fullcheck()
{
  var str=document.franchiseform.email.value;
//alert(str);

	if(!validate_text(document.franchiseform.name,1,"Blank space not allowed. Please Enter Your Name."))
	{
	document.franchiseform.name.select();
	return false;
	}
	
     if (document.franchiseform.email.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Email Address.");
           document.franchiseform.email.select(); 
           return false;
	    }  
		
		
				if ((document.franchiseform.email.value).indexOf(" ")>=0)
		{
		alert ("Blank space not allowed inside email!");
		document.franchiseform.email.select();
		return false;
		}
	
		if (document.franchiseform.email.value.indexOf("@",1) == -1)
		{
			alert("Invalid E-Mail address");
			document.franchiseform.email.focus();
			document.franchiseform.email.select();
			return(false);
		}
		if (document.franchiseform.email.value.indexOf("@") == 0)
		{
			alert("Invalid E-Mail address");
			document.franchiseform.email.focus();
			document.franchiseform.email.select();
			return(false);
		}
		if (document.franchiseform.email.value.indexOf(".",5) == -1)
		{
			alert("Invalid E-Mail address");
			document.franchiseform.email.focus();
			document.franchiseform.email.select();
			return(false);
		}
		if (document.franchiseform.email.value.indexOf(".") == 0)
		{
			alert("Invalid E-Mail address");
			document.franchiseform.email.focus();
			document.franchiseform.email.select();
			return(false);
		}
		
		if ((document.franchiseform.email.value.lastIndexOf(".")) -(document.franchiseform.email.value.indexOf("@"))<4 )
		{
		
			alert("Invalid E-Mail address");
			document.franchiseform.email.focus();
			document.franchiseform.email.select();
			return(false);
		}
}



function fullcheck1()
{
  var str=document.nextform.email.value;
//alert(str);

	if(!validate_text(document.nextform.name,1,"Blank space not allowed. Please Enter Your Name."))
	{
	document.nextform.name.select();
	return false;
	}
	
     if (document.nextform.email.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Email Address.");
           document.nextform.email.select(); 
           return false;
	    }  
		
		
				if ((document.nextform.email.value).indexOf(" ")>=0)
		{
		alert ("Blank space not allowed inside email!");
		document.nextform.email.select();
		return false;
		}
	
		if (document.nextform.email.value.indexOf("@",1) == -1)
		{
			alert("Invalid E-Mail address");
			document.nextform.email.focus();
			document.nextform.email.select();
			return(false);
		}
		if (document.nextform.email.value.indexOf("@") == 0)
		{
			alert("Invalid E-Mail address");
			document.nextform.email.focus();
			document.nextform.email.select();
			return(false);
		}
		if (document.nextform.email.value.indexOf(".",5) == -1)
		{
			alert("Invalid E-Mail address");
			document.nextform.email.focus();
			document.nextform.email.select();
			return(false);
		}
		if (document.nextform.email.value.indexOf(".") == 0)
		{
			alert("Invalid E-Mail address");
			document.nextform.email.focus();
			document.nextform.email.select();
			return(false);
		}
		
		if ((document.nextform.email.value.lastIndexOf(".")) -(document.nextform.email.value.indexOf("@"))<4 )
		{
		
			alert("Invalid E-Mail address");
			document.nextform.email.focus();
			document.nextform.email.select();
			return(false);
		}
}


function fullcheck2()
{
  var str=document.brokerform.email.value;
//alert(str);

	if(!validate_text(document.brokerform.name,1,"Blank space not allowed. Please Enter Your Name."))
	{
	document.brokerform.name.select();
	return false;
	}
	
     if (document.brokerform.email.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Email Address.");
           document.brokerform.email.select(); 
           return false;
	    }  
		
		
				if ((document.brokerform.email.value).indexOf(" ")>=0)
		{
		alert ("Blank space not allowed inside email!");
		document.brokerform.email.select();
		return false;
		}
	
		if (document.brokerform.email.value.indexOf("@",1) == -1)
		{
			alert("Invalid E-Mail address");
			document.brokerform.email.focus();
			document.brokerform.email.select();
			return(false);
		}
		if (document.brokerform.email.value.indexOf("@") == 0)
		{
			alert("Invalid E-Mail address");
			document.brokerform.email.focus();
			document.brokerform.email.select();
			return(false);
		}
		if (document.brokerform.email.value.indexOf(".",5) == -1)
		{
			alert("Invalid E-Mail address");
			document.brokerform.email.focus();
			document.brokerform.email.select();
			return(false);
		}
		if (document.brokerform.email.value.indexOf(".") == 0)
		{
			alert("Invalid E-Mail address");
			document.brokerform.email.focus();
			document.brokerform.email.select();
			return(false);
		}
		
		if ((document.brokerform.email.value.lastIndexOf(".")) -(document.brokerform.email.value.indexOf("@"))<4 )
		{
		
			alert("Invalid E-Mail address");
			document.brokerform.email.focus();
			document.brokerform.email.select();
			return(false);
		}
}


function fullcheck3()
{
  var str=document.fdetailsform.email.value;
//alert(str);

	if(!validate_text(document.fdetailsform.fname,1,"Blank space not allowed. Please Enter Your First Name."))
	{
	document.fdetailsform.fname.select();
	return false;
	}
	
	if(!validate_text(document.fdetailsform.lname,1,"Blank space not allowed. Please Enter Your Last Name."))
	{
	document.fdetailsform.lname.select();
	return false;
	}
	
     if (document.fdetailsform.email.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Email Address.");
           document.fdetailsform.email.select(); 
           return false;
	    }  
		
		
				if ((document.fdetailsform.email.value).indexOf(" ")>=0)
		{
		alert ("Blank space not allowed inside email!");
		document.fdetailsform.email.select();
		return false;
		}
	
		if (document.fdetailsform.email.value.indexOf("@",1) == -1)
		{
			alert("Invalid E-Mail address");
			document.fdetailsform.email.focus();
			document.fdetailsform.email.select();
			return(false);
		}
		if (document.fdetailsform.email.value.indexOf("@") == 0)
		{
			alert("Invalid E-Mail address");
			document.fdetailsform.email.focus();
			document.fdetailsform.email.select();
			return(false);
		}
		if (document.fdetailsform.email.value.indexOf(".",5) == -1)
		{
			alert("Invalid E-Mail address");
			document.fdetailsform.email.focus();
			document.fdetailsform.email.select();
			return(false);
		}
		if (document.fdetailsform.email.value.indexOf(".") == 0)
		{
			alert("Invalid E-Mail address");
			document.fdetailsform.email.focus();
			document.fdetailsform.email.select();
			return(false);
		}
		
		if ((document.fdetailsform.email.value.lastIndexOf(".")) -(document.fdetailsform.email.value.indexOf("@"))<4 )
		{
		
			alert("Invalid E-Mail address");
			document.fdetailsform.email.focus();
			document.fdetailsform.email.select();
			return(false);
		}
		
		if(!validate_text(document.fdetailsform.phone,1,"Blank space not allowed. Please Enter Your Phone Number."))
	{
	document.fdetailsform.phone.select();
	return false;
	}
	
	if(!validate_text(document.fdetailsform.city,1,"Blank space not allowed. Please Enter Your City."))
	{
	document.fdetailsform.city.focus();
	return false;
	}
	if (document.fdetailsform.state.value=="")
        {
           alert ("Blank space not allowed. Please Select Your State.");
           document.fdetailsform.state.focus(); 
           return false;
	    }
	if (document.fdetailsform.country.value=="")
        {
           alert ("Blank space not allowed. Please Select Your Country.");
           document.fdetailsform.country.focus(); 
           return false;
	    }
		
		document.fdetailsform.submit();
}