/*-------------------------------- CONTACT US VALIDATION START ------------------------------------*/
function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
	}

function contactval()
{
	var emailID= document.contact.txt_email
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter your Email ID")
		emailID.focus()
		emailID.style.backgroundcolor = 'red';    
		return false
	}
	
	if (echeck(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		return false
	}
	
	var name = document.contact.txt_name;
	if(name.value == "" || name.value==null)
	{
		alert('Please Enter Your Name');
		return false;
	}
	
	var message = document.contact.txt_msg;
	if(message.value == "" || message.value==null)
	{
		alert('Please Enter Your Msgs');
		return false;
	}
	
	//alert('dasdasd');
//	var name = document.getElementById("txt_name");
//	var email = document.getElementById("txt_email");
//	var msg = document.getElementById("txt_msg");
	
//	var url = "controller/contact.php?name=" + name.value + "&email=" + email.value + "&msg=" + msg.value;
	
//	httpObject =  getHTTPObject();
//	if(httpObject!=null)
//	{
		//alert(url);
		//alert(httpObject);
		//var loading = document.getElementById('loading_div');
		//loading.style.display='block';
		
	//	httpObject.open("GET",url,true);
	//	httpObject.send(null);
	//	httpObject.onreadystatechange = GetReplyContact; 
	//}
}

/*function GetReplyContact(){

	 if(httpObject.readyState == 4)
	 {
			//var loading = document.getElementById('loading_div');
			//loading.style.display='none';
		
			//alert(httpObject.responseText);
			var condiv = document.getElementById('contact')
			condiv.innerHtml="";
			condiv.innerHTML = httpObject.responseText;

	 }
  
}*/
/*-------------------------------- CONTACT US VALIDATION END ------------------------------------*/
/*-------------------------------- REGISTER VALIDATION START ------------------------------------*/
function Val()
{
	//alert('danish');
	var emailID=document.register.email
	//alert(emailID.value)
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter your Email ID")
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	if (echeck(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	var password = document.register.password;
	if(password.value == "" || password.value==null)
	{
		alert('Please Enter Password Min 6 Character');
		password.focus();
		return false;
	}
	
	var name = document.register.name;
	if(name.value == "" || name.value==null)
	{
		alert('Please Enter Your Name');
		name.focus();
		return false;
	}
	
	
	var lastname = document.register.lastname;
	if(lastname.value == "" || lastname.value==null)
	{
		alert('Please Enter Your Last Name');
		lastname.focus();
		return false;
	}
	
	var address = document.register.address;
	if(address.value == "" || address.value==null)
	{
		alert('Please Enter Your Complete Address');
		address.focus();
		return false;
	}
	
	var city = document.register.city;
	if(city.value == "" || city.value==null)
	{
		alert('Please Enter Your City');
		city.focus();
		return false;
	}
	
	var zip = document.register.zip;
	if(zip.value == "" || zip.value==null)
	{
		alert('Please Enter Your Zip');
		zip.focus();
		return false;
	}
	
	var Mobile = document.register.Mobile;
	if(Mobile.value == "" || Mobile.value==null)
	{
		alert('Please Enter Your Mobile Number');
		Mobile.focus();
		return false;
	}
	
	var pass1 = document.register.password;
	var pass2 = document.register.password2;
	//alert(pass1.value);
	if(pass1.value.length <= 5)
	{
		alert('Please Enter Password Min 6 Character');
		document.getElementById('password').focus();
		return false;
		
	}
	else if(pass1.value != pass2.value)
	{
		alert('Your passwords do not match. Please type more carefully.');
		document.getElementById('password2').focus();
		return false;
	}	
	
	
	 var country = document.register.country;
	 
	 if(country.value == "null")
	 {
		alert('Please Select Country');
		return false;
	 }  
	 
	 var month = document.register.month;
	 
	 if(month.value == "null")
	 {
		alert('Please Select Month');
		return false;
	 }  
	 
	 var date = document.register.date;
	 
	 if(date.value == "null")
	 {
		alert('Please Select Date');
		return false;
	 } 
	 
	 var year = document.register.year;
	 
	 if(year.value == "null")
	 {

		alert('Please Select Year');
		return false;
	 } 
	 
	var ddlcountry = document.getElementById('country');
	
	if(ddlcountry.value == "USA")
	{
		var ddlstate = document.getElementById('state');
		
		if(ddlstate.value == -1)
		{
			alert('Please select State');
			return false;
		}

	}
	else
	{
		var txtstate = document.getElementById('state');
		if(txtstate.value =="")
		{
			alert('Please provide state');
			txtstate.focus();
			return false;
		}
	}  
	return true
}
/*----------------------------------------------Password Check-------------------------------------------------------*/
function validate(pass1,pass2)
{
	pass1 = document.register.password;
	pass2 = document.register.password2;
	//alert(pass1.value);
	if(pass1.value.length <= 5)
	{
		alert('Please Enter Password Min 6 Character');
		document.getElementById('password').focus();
		return false;
		
	}
	else if(pass1.value != pass2.value)
	{
		alert('Your passwords do not match. Please type more carefully.');
		document.getElementById('password2').focus();
		return false;
	}	
	
return true;
}
/*-------------------------------- REGISTER VALIDATION END ------------------------------------*/
/*-------------------------------- APPOINMENT VALIDATION START ------------------------------------*/
function appval()
{
	//alert('danish');
	var emailID=document.appoinment.email
	//alert(emailID.value)
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter your Email ID")
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	if (echeck(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	var name = document.appoinment.name;
	if(name.value == "" || name.value==null)
	{
		alert('Please Enter Your Full Name');
		return false;
	}
	
	
	var lastname = document.appoinment.date;
	if(lastname.value == "" || lastname.value==null)
	{
		alert('Please Enter Your Date of Appoinment');
		return false;
	}
	
	var address = document.appoinment.phone;
	if(address.value == "" || address.value==null)
	{
		alert('Please Enter Your Phone Number');
		return false;
	}
			
	 var country = document.appoinment.hour;
	 if(country.value == "null")
	 {
		alert('Please Select Hour');
		return false;
	 }  
	 
	 var month = document.appoinment.Minute;
	 
	 if(month.value == "null")
	 {
		alert('Please Select Minute');
		return false;
	 }  
	 
	 var date = document.appoinment.location;
	 
	 if(date.value == "null")
	 {
		alert('Please Select location');
		return false;
	 }

	 //alert('dasdasd');
	var email = document.getElementById("email");
	var name = document.getElementById("name");
	var date = document.getElementById("date");
	var phone = document.getElementById("phone");
	var location = document.getElementById("location");
	var hour = document.getElementById("hour");
	var Minute = document.getElementById("Minute");
	var type = document.getElementById("drp_3");
	var message = document.getElementById("message");
	var Threading = document.getElementById("chk_thr");
	var BridalMakeup = document.getElementById("chk_bm");
	var Waxing = document.getElementById("chk_wx");
	var HairCut = document.getElementById("chk_hc");
	var Facials = document.getElementById("chk_fac");
	var Henna = document.getElementById("chk_henn");
	var BodyTreatment = document.getElementById("chk_bt");
	var OtherServices = document.getElementById("chk_os");
	

	//var url = "controller/ctl_appoinment.php";
	var url = "controller/ctl_appoinment.php?email=" + email.value + "&name=" + name.value + "&date=" + date.value + "&phone=" + phone.value + "&location=" + location.value + "&hour=" + hour.value + "&Minute=" + Minute.value + "&type=" + type.value + "&message=" + message.value + "&Threading=" + Threading.value + "&BridalMakeup=" + BridalMakeup.value + "&Waxing=" + Waxing.value + "&HairCut=" + HairCut.value + "&Facials=" + Facials.value + "&Henna=" + Henna.value + "&BodyTreatment=" + BodyTreatment.value + "&OtherServices=" + OtherServices.value;

	
	httpObject =  getHTTPObject();
	if(httpObject!=null)
	{
		//alert(url);
		//alert(httpObject);
		//var loading = document.getElementById('loading_div');
		//loading.style.display='block';
		
		httpObject.open("GET",url,true);
		httpObject.send(null);
		httpObject.onreadystatechange = GetReplyContact; 
	}
return true;
}

/*-------------------------------- APPOINMENT VALIDATION END ------------------------------------*/
/*-------------------------------- TELLAFRIEND VALIDATION START ------------------------------------*/
function tellaval()
{
	//alert('danish');
	var emailID=document.tellafriend.s_email
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter your E-mail")
		emailID.focus()		
		return false
	}
	
	if (echeck(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		return false
	}
	
	var remailID = document.tellafriend.r_email
	if ((remailID.value==null)||(remailID.value==""))
	{
		alert("Please Enter your Recipent E-mail")
		remailID.focus()		
		return false
	}
	
	if (echeck(remailID.value)==false)
	{
		remailID.value=""
		remailID.focus()
		return false
	}
	
	
	var comment = document.tellafriend.comment;
	if(comment.value == "" || comment.value==null)
	{
		alert('Please Enter Comment');
		return false;
	}
	
	
 return true;
}

/*-------------------------------- TELLAFRIEND VALIDATION END ------------------------------------*/
/*-------------------------------- LOGIN VALIDATION START ------------------------------------*/



/*-------------------------------- LOGIN VALIDATION END ------------------------------------*/
/*------------------------- State Billing aur Shipping End ---------------------------------*/
function GetShippingState()
{
	var shipcountry = document.getElementById("shipcountry");
	
	var url = "controller/ctl_shippingpage_state.php?shipcountry=" + shipcountry.value;
	
	httpObject =  getHTTPObject();
	if(httpObject!=null)
	{
		httpObject.open("GET",url,true);
		httpObject.send(null);
		httpObject.onreadystatechange = GetReplyship; 
	}
}

function GetReplyship(){

	 if(httpObject.readyState == 4)
	 {
		
			//alert(httpObject.responseText);
			var div = document.getElementById('statediv2')
			div.innerHtml="";
			div.innerHTML = httpObject.responseText;

	 }
  
}
function GetBillingState()
{
	var billingcountry = document.getElementById("country");
	
	var url = "controller/ctl_shippingpage_state_for_billing.php?billingcountry=" + billingcountry.value;
	
	httpObject =  getHTTPObject();
	if(httpObject!=null)
	{
		httpObject.open("GET",url,true);
		httpObject.send(null);
		httpObject.onreadystatechange = GetReplybilling; 
	}
}

function GetReplybilling(){

	 if(httpObject.readyState == 4)
	 {
		
			//alert(httpObject.responseText);
			var div = document.getElementById('statediv')
			div.innerHtml="";
			div.innerHTML = httpObject.responseText;

	 }
  
}
/*------- Add New Shipping Start  ------------*/
function addnewshipping()
{
	var name_tb = document.getElementById('txt_shipname');
	var lastname_tb = document.getElementById('txt_shiplastname');
	var add_tb = document.getElementById('txt_shipadd');
	var country_tb = document.getElementById('shipcountry');
	var city2_tb = document.getElementById('shipcity');
	var email_tb = document.getElementById('txt_shipemail');
	var zip_tb = document.getElementById('txt_shipzipcode');
	var phone_tb = document.getElementById('txt_shipphno');
	var mobile_tb = document.getElementById('txt_shipmobno');
	var fax_tb = document.getElementById('txt_shipfaxno');
	var save_tb = document.getElementById('txt_shipsave');
	var ship_tb = document.getElementById('drp_ship');
	var chk = document.getElementById('chk_shipping');
	
	if(chk.checked)
	{
		name_tb.disabled=false;
		name_tb.focus();
		lastname_tb.disabled=false;
		add_tb.disabled=false;
		country_tb.disabled=false;
		city2_tb.disabled=false;
		email_tb.disabled=false;
		zip_tb.disabled=false;
		phone_tb.disabled=false;
		mobile_tb.disabled=false;
		fax_tb.disabled=false;
		save_tb.disabled=false;
		ship_tb.disabled=true;
		
	}
	else
	{
		name_tb.disabled=true;
		name_tb.value="";
		lastname_tb.disabled=true;
		add_tb.disabled=true;
		country_tb.disabled=true;
		city2_tb.disabled=true;
		email_tb.disabled=true;
		zip_tb.disabled=true;
		phone_tb.disabled=true;
		mobile_tb.disabled=true;
		fax_tb.disabled=true;
		save_tb.disabled=true;
		ship_tb.disabled=false;
		
	}
}
/*------- Add New Shipping End  ------------*/

function shippingecheck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
	}

function shippingvalid()
{
	if(document.myform.chk_shipping.checked)
	{
		//alert('asddsas');
		var emailID=document.myform.txt_shipemail
		
		if ((emailID.value==null)||(emailID.value==""))
		{
			alert("Please Enter Shipping Email ID")
			emailID.focus()
			emailID.style.backgroundcolor = 'red';
			return false
		}
		
		if (shippingecheck(emailID.value)==false)
		{
			emailID.value=""
			emailID.focus()
			emailID.style.backgroundcolor = 'red';
			return false
		}
		
		
		var name = document.myform.txt_shipname;
		if(name.value == "" || name.value==null)
		{
			alert('Please Enter Shipping First Name');
			return false;
		}
		
		var lastname = document.myform.txt_shiplastname;
		if(lastname.value == "" || lastname.value==null)
		{
			alert('Please Enter Shipping Last Name');
			return false;
		}
		
		var address = document.myform.txt_shipadd;
		if(address.value == "" || address.value==null)
		{
			alert('Please Enter Shipping Complete Address');
			return false;
		}
		
		var city = document.myform.shipcity;
		if(city.value == "" || city.value==null)
		{
			alert('Please Shipping Your City');
			return false;
		}
		
		var zip = document.myform.txt_shipzipcode;
		if(zip.value == "" || zip.value==null)
		{
			alert('Please Shipping Your Zip');
			return false;
		}
		
		var mobile = document.myform.txt_shipmobno;  
		if(mobile.value == "" || mobile.value==null)
		{
			alert('Please Enter Shipping Mobile Number');
			return false;
		}
		
		var phonebookname = document.myform.txt_shipsave;
		if(phonebookname.value == "" || phonebookname.value==null)
		{
			alert('Please Enter Shipping Shipping Book Name');
			return false;
		}
		
		 var shipcountry = document.myform.shipcountry;
		 if(shipcountry.value == "null")
		 {
			alert('Please Select Shipping Country');
			return false;
		 }  
		 else
		 {
		 	return true;
		 }
		 
		 
		var ddlcountry = document.myform.shipcountry;
		if(shipcountry.value == "USA")
		{
			//alert(shipcountry.value);
			var state = document.myform.shipstate;
			//alert(state.value);
			if(state.value == -1)
			{
				
				alert('Please Select Shipping State');
				return false;
			}
	
		}
		else
		{
			//alert(state.value);
			var state = document.getElementById('shipstate');
			if(state.value =="")
			{
				alert('Please Enter Shipping State');
				return false;
			}
	  }
  }//if
return true
}//function
/*------- State Billing aur Shipping End  ------------*/
/*----------------- GIFT CARD ------------------------*/
function echeck(str)
{

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
	}
function echeck1(str)
{

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid Recipient Email ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid Recipient Email ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid Recipient Email ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid Recipient Email ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid Recipient Email ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid Recipient Email ID")
		    return false
		 }

 		 return true					
	}
function CG_val()
{
	//alert('fdadasdasd');
	var emailID=document.paypal_frm.Sender_Email
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter Sender Email ID")
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	if (echeck(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	var emailID=document.paypal_frm.Recipient_Email
	
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter Recipient Email ID")
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	if (echeck1(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	
	var Sender_Name = document.paypal_frm.Sender_Name;
	if(Sender_Name.value == "" || Sender_Name.value==null)
	{
		alert('Please Enter Your Sender Name');
		Sender_Name.focus();
		return false;
	}
	
	var Recipient_Name = document.paypal_frm.Recipient_Name;
	if(Recipient_Name.value == "" || Recipient_Name.value==null)
	{
		alert('Please Enter Your Recipient Name');
		Recipient_Name.focus();
		return false;
	}	
	
	var Amount = document.paypal_frm.Amount;
	if(Amount.value == "" || Amount.value==null)
	{
		alert('Please Enter Your Gift Amount');
		Amount.focus();
		return false;
	}	
	
	if(Amount.value < 10 || Amount.value > 500)
	{
		alert('Gift Card Amount Range 10 to 500 USD');
		Amount.focus();
		return false;
	}	
		
	var ship = document.paypal_frm.ship;
	if(ship.value == "null")
	{
		alert('Please Select Shipping');
		ship.focus();
		return false;
	}  
	
	return true
}
/*----------------- Newsletter ------------------------*/

function newsletterval()
{
	//alert('Danish');
	var emailID=document.newsletter.email
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter Sender Email ID")
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	if (echeck(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	
	
	var name = document.newsletter.name;
	if(name.value == "" || name.value==null)
	{
		alert('Please Enter Your Name');
		name.focus();
		return false;
	}

return true
}
// PAYMENT MODE-------------------------------------
function radioval()
{
	var payment = window.document.payfrm.payment_radio;
	if(payment.checked == false)
	{
		alert("Please Select Payment Mode ");
		return false;
	}
return true;
	
}
// MainLoginCheck MODE-------------------------------------
function login_pop()
{
	//alert('Danish');
	var emailID=document.login_p.email
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter Sender Email ID")
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	if (echeck(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	
	
	var password = document.login_p.password;
	if(password.value == "" || password.value==null)
	{
		alert('Please Enter Password');
		password.focus();
		return false;
	}
return true;
}
// Online Appoinment-------------------------------------
function online_app()
{
	//alert('Danish');
	var emailID=document.appoinment.email
	if ((emailID.value==null)||(emailID.value==""))
	{
		alert("Please Enter Email ID")
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
	
	if (echeck(emailID.value)==false)
	{
		emailID.value=""
		emailID.focus()
		emailID.style.backgroundcolor = 'red';
		return false
	}
		
	var fullname = document.appoinment.fullname;
	if(fullname.value == "" || fullname.value==null)
	{
		alert('Please Enter Your Full Name');
		fullname.focus();
		return false;
	}
	
 	var month = document.appoinment.month;
	 
	 if(month.value == "null")
	 {
		alert('Please Select Appoinment Month');
		month.focus();
		return false;
	 }  
	 
	 var date = document.appoinment.date;
	 
	 if(date.value == "null")
	 {
		alert('Please Select Appoinment Date');
		date.focus();
		return false;
	 } 
	 
	 var year = document.appoinment.year;
	 
	 if(year.value == "null")
	 {

		alert('Please Select Appoinment Year');
		year.focus();
		return false;
	 }
	 
	 var phone = document.appoinment.phone
	 if(phone.value == "" || phone.value==null)
	 {

		alert('Please Enter Your Phone Number');
		phone.focus();
		return false;
	 } 
	 
	 
	 	 
	 var hour = document.appoinment.hour;
	 if(hour.value == "null")
	 {
		alert('Please Select Hour');
		hour.focus();
		return false;
	 } 
	 
	 var Minute = document.appoinment.Minute;
	 if(Minute.value == "null")
	 {

		alert('Please Select Minute');
		Minute.focus();
		return false;
	 }
	 
	 var location = document.appoinment.location;
	 if(location.value == "null")
	 {

		alert('Please Select Appoinment Location');
		location.focus();
		return false;
	 }
	
	
return true;
}
