function login_validation()
{ 
valid = true;
		if ( document.login_form.username.value == "member login" )
		{
			alert("Please Enter Your Email ID");
			document.login_form.username.focus(); 
			return false;
		}
		if (document.login_form.username.value != "Email ID" )
		{
			if (document.login_form.username.value.indexOf("@") < 0 || document.login_form.username.value.indexOf(".") < 0)
			{
			alert ( "Invalid Email ID" );
			document.login_form.username.focus()
			return false;
			}
		}
		if ( document.login_form.password.value == "Password" )
		{
			alert("Please Enter Password");
			document.login_form.password.focus(); 
			return false;
		}
}

function forget_validation()
{ 
valid = true;
		if ( document.forget_form.email.value == "" )
		{
			alert("Please Enter Email ID");
			document.forget_form.email.focus(); 
			return false;
		}
		if (document.forget_form.email.value != "Email ID" )
		{
			if (document.forget_form.email.value.indexOf("@") < 0 || document.forget_form.email.value.indexOf(".") < 0)
			{
			alert ( "Invalid Email ID" );
			document.forget_form.email.focus()
			return false;
			}
		}
}
function find_salon_validation()
{ 
valid = true;
		if ( document.find_salon_form.salon_address1.value == "" )
		{
			alert("Please Enter Salon Address1");
			document.find_salon_form.salon_address1.focus(); 
			return false;
		}
		if ( document.find_salon_form.salon_address1.value == "Salon Address Not Exist" )
		{
			alert("Please Enter Correct Salon Address1");
			document.find_salon_form.salon_address1.focus(); 
			return false;
		}
		if (document.find_salon_form.salon_address2.value == "" )
		{
			alert ( "Please Enter Salon Address2" );
			document.find_salon_form.salon_address2.focus()
			return false;
		}
		if (document.find_salon_form.salon_address2.value == "Salon Address2 Not Exist" )
		{
			alert ( "Please Enter Correct Salon Address2" );
			document.find_salon_form.salon_address2.focus()
			return false;
		}

		if ( document.find_salon_form.city.value == "" )
		{
			alert("Please Enter City");
			document.find_salon_form.city.focus(); 
			return false;
		}
		if ( document.find_salon_form.city.value == "City not exist" )
		{
			alert("Please Enter Correct City Name");
			document.find_salon_form.city.focus(); 
			return false;
		}

		if ( document.find_salon_form.state.value == "" )
		{
			alert("Please Enter State");
			document.find_salon_form.state.focus(); 
			return false;
		}
		if ( document.find_salon_form.state.value == "State not exist" )
		{
			alert("Please Enter Correct State Name");
			document.find_salon_form.state.focus(); 
			return false;
		}
		if ( document.find_salon_form.country.value == "" )
		{
			alert("Please Enter Country");
			document.find_salon_form.country.focus(); 
			return false;
		}
		if ( document.find_salon_form.post_code.value == "" )
		{
			alert("Please Enter Post Code");
			document.find_salon_form.post_code.focus(); 
			return false;
		}
		if ( document.find_salon_form.post_code.value == "Post Code Not Exist" )
		{
			alert("Please Enter Correct Post Code");
			document.find_salon_form.post_code.focus(); 
			return false;
		}


}

/************************************ BROWSER SUPPORT ***********************************************/
function GetXmlHttpObject_driver_entry()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

