// JavaScript Document



function submitProfile_temp(pre_st)

{	

	document.form_profile.preview_st.value = pre_st;

	//alert(document.form_profile.count_escTypeID.value);

	//alert(document.getElementById("esc_services"));

	//return false;

	if (checkBlankField(document.form_profile.esc_name.value) == false){

		alert("Please enter the name");

		document.form_profile.esc_name.select();

		return false;

	}

	

	if (checkBlankField(document.form_profile.esc_working_name.value) == false){

		alert("Please enter the working name");

		document.form_profile.esc_working_name.select();

		return false;

	}

	

	

	if (document.form_profile.esc_height.value == ""){

		alert("Please select the height");

		document.form_profile.esc_height.focus();

		return false;

	}

	

	if (document.form_profile.esc_ethnicity.value == ""){

		alert("Please select the ethnicity ");

		document.form_profile.esc_ethnicity.focus();

		return false;

	}

	

	

	if (document.form_profile.esc_dressSize.value == ""){

		alert("Please select the dress size ");

		document.form_profile.esc_dressSize.focus();

		return false;

	}

	

	if (document.form_profile.esc_hairColor.value == ""){

		alert("Please select the hair colour ");

		document.form_profile.esc_hairColor.focus();

		return false;

	}

	

	

	if (checkBlankField(document.form_profile.esc_dobYear.value) == false || document.form_profile.esc_dobYear.value == "yyyy"){

		alert("Please enter the birth year");

		document.form_profile.esc_dobYear.select();

		return false;

	}

	

	if (isNaN(document.form_profile.esc_dobYear.value) == true){

		alert("Please enter the numeric value ");

		document.form_profile.esc_dobYear.select();

		return false;

	}

	

	

	if (checkBlankField(document.form_profile.esc_dobMonth.value) == false || document.form_profile.esc_dobMonth.value == "mm"){

		alert("Please enter the birth month");

		document.form_profile.esc_dobMonth.select();

		return false;

	}

	

	if (isNaN(document.form_profile.esc_dobMonth.value) == true){

		//if (document.form_profile.esc_dobMonth.value >12){

		alert("Please enter the numeric value ");

		document.form_profile.esc_dobMonth.select();

		return false;

		//}

	}

	

		if (document.form_profile.esc_dobMonth.value >12){

		alert("Please enter correct birth month ");

		document.form_profile.esc_dobMonth.select();

		return false;

		}

	

	if (checkBlankField(document.form_profile.esc_dobDate.value) == false || document.form_profile.esc_dobDate.value == "dd"){

		alert("Please enter the birth date");

		document.form_profile.esc_dobDate.select();

		return false;

	}

	

	if (isNaN(document.form_profile.esc_dobDate.value) == true){

		alert("Please enter the numeric value ");

		document.form_profile.esc_dobDate.select();

		return false;

	}

	

	if (document.form_profile.esc_dobDate.value >31){

		alert("Please enter correct birth date ");

		document.form_profile.esc_dobDate.select();

		return false;

		}

	

	if (document.form_profile.esc_eyeColor.value == ""){

		alert("Please select the eye colour ");

		document.form_profile.esc_eyeColor.focus();

		return false;

	}

	

	if (document.form_profile.esc_orientation.value == ""){

		alert("Please select the orientation ");

		document.form_profile.esc_orientation.focus();

		return false;

	}

	

	if (document.form_profile.esc_orientation.value == ""){

		alert("Please select the orientation ");

		document.form_profile.esc_orientation.focus();

		return false;

	}

	

	if(document.form_profile.other_service.checked==true && checkBlankField(document.form_profile.esc_other_service.value)==false){

		alert("Please enter other service");

		document.form_profile.esc_other_service.select();

		return false;

	}

	

	

	if (document.form_profile.esc_language1.value == "" ){

		if (document.form_profile.esc_language2.value == "" ){

			if (document.form_profile.esc_language3.value == "" ){

				if (document.form_profile.esc_language4.value == "" ){

					if (document.form_profile.esc_language5.value == "" ){

						alert("Please select the atleast one language ");

						document.form_profile.esc_language1.focus();

						return false;

					}

				}

			}

		}

	}

	

	if (document.form_profile.country.value == ""){

		alert("Please select the country ");

		document.form_profile.country.focus();

		return false;

	}

	

	if (document.form_profile.esc_city.value == ""){

		alert("Please select the city ");

		document.form_profile.esc_city.focus();

		return false;

	}

	

	if (document.form_profile.esc_city.value == "London" && (document.form_profile.esc_incallMode.value=="incall only" || document.form_profile.esc_incallMode.value=="incall and outcall")){

		//alert(document.form_profile.esc_postCode.value );

		if(document.form_profile.esc_postCode.value == "") {

			alert("Please select the postcode ");

			document.form_profile.esc_postCode.focus();

			return false;

		}

	}

	if (document.form_profile.esc_incallMode.value == ""){

		alert("Please select the incall place ");

		document.form_profile.esc_incallMode.focus();

		return false;

	}

	if (document.form_profile.esc_city.value == "London"){

		if (document.form_profile.esc_tubeStation.value == ""){

			alert("Please select the nearest tube ");

			document.form_profile.esc_tubeStation.focus();

			return false;

		}

	}

	if (checkBlankField(document.form_profile.esc_drink.value) == false){

		alert("Please enter the favourite drink");

		document.form_profile.esc_drink.select();

		return false;

	}

	

	if (checkBlankField(document.form_profile.esc_cuisine.value) == false){

		alert("Please enter the favourite cuisine");

		document.form_profile.esc_cuisine.select();

		return false;

	}

	

	if (checkBlankField(document.form_profile.esc_perfume.value) == false){

		alert("Please enter the favourite perfume");

		document.form_profile.esc_perfume.select();

		return false;

	}

	

	if (checkBlankField(document.form_profile.esc_phone.value) == false){

		alert("Please enter the phone no");

		document.form_profile.esc_phone.select();

		return false;

	}

	

	if (document.form_profile.esc_web_show.value == ""){

		alert("Please select your face visibility mode");

		document.form_profile.esc_web_show.focus();

		return false;

	}

	

	if (document.form_profile.esc_gall_show.value == ""){

		alert("Please select your face visibility mode ");

		document.form_profile.esc_gall_show.focus();

		return false;

	}

	

	

	

	if(document.form_profile.radio_agencies[0].checked==true && checkBlankField(document.form_profile.esc_agencies_text.value)==false){

		alert("Please enter agency name");

		document.form_profile.esc_agencies_text.select();

		return false;

	}

	

	if (document.form_profile.esc_smoke.value == ""){

		alert("Please select if you smoke or not");

		document.form_profile.esc_smoke.focus();

		return false;

	}

	

	if (document.form_profile.esc_tatoos.value == ""){

		alert("Please specify if you have tatoos or not ");

		document.form_profile.esc_tatoos.focus();

		return false;

	}

	

	if(document.form_profile.esc_tatoos.value=="Yes" && checkBlankField(document.form_profile.esc_tatoos_place.value)==false){

		alert("Please enter place where you have tatoos");

		document.form_profile.esc_tatoos_place.select();

		return false;

	}

	

	if (document.form_profile.esc_piercings.value == ""){

		alert("Please specify your piercing status ");

		document.form_profile.esc_piercings.focus();

		return false;

	}

	

	if(document.form_profile.esc_piercings.value=="Yes" && checkBlankField(document.form_profile.esc_piercing_place.value)==false){

		alert("Please enter place where you have piercings");

		document.form_profile.esc_piercing_place.select();

		return false;

	}

	

	if (document.form_profile.esc_shaved.value == ""){

		alert("Please specify your shaved status ");

		document.form_profile.esc_shaved.focus();

		return false;

	}

	

	if (checkBlankField(document.form_profile.esc_email.value) == false){

		alert("Please enter the email address");

		document.form_profile.esc_email.select();

		return false;

	}

	

	

	if(valid_email(document.form_profile.esc_email.value) == true){

		alert("Plese enter correct e-mail address");

		document.form_profile.esc_email.select();

		return false

	}

	

	var escort_type_count = document.form_profile.count_escTypeID.value;

	var escType_sel = "";

	for (i=1;i<=escort_type_count;++ i){

		var esc_type = "document.form_profile.escTypeID_" + i + ".checked";

		if(eval(esc_type) == true) {

			escType_sel = "sel";

		}

	}

	if(escType_sel == "") {

		alert("Please select the gallery name");

		return false;

	}

	

	if (checkBlankField(document.form_profile.esc_minPrice.value) == false){

		alert("Please enter the your minimum first hour price ");

		document.form_profile.esc_minPrice.select();

		return false;

	}

	

	if (isNaN(document.form_profile.esc_minPrice.value) == true){

		alert("Please enter the numeric price ");

		document.form_profile.esc_minPrice.select();

		return false;

	}

	

		

	if (checkBlankField(document.form_profile.esc_desc.value) == false){

		alert("Please describe about your self.");

		document.form_profile.esc_desc.select();

		return false;

	}

	

	

if(document.form_profile.count_img_value.value==0){

	

	if(checkBlankField(document.form_profile.Image_1.value) == false){

		if(checkBlankField(document.form_profile.Image_2.value) == false){

			if(checkBlankField(document.form_profile.Image_3.value) == false){

				if(checkBlankField(document.form_profile.Image_4.value) == false){

					if(checkBlankField(document.form_profile.Image_5.value) == false){

						if(checkBlankField(document.form_profile.Image_6.value) == false){

							if(checkBlankField(document.form_profile.Image_7.value) == false){

								if(checkBlankField(document.form_profile.Image_8.value) == false){

									alert("Please upload your atleast one photo ");

									document.form_profile.Image_1.select();

									return false;

								}

							}

						}

					}

				}

			}

		}

	}

}

	if(checkBlankField(document.form_profile.Image_1.value) == true)

	{	var pic1 = document.form_profile.Image_1.value;

		if(pic1!="")

		{	var new_pic1 = pic1.substring(pic1.lastIndexOf('.'),pic1.length);

			if(new_pic1!=".jpg" && new_pic1!=".JPG" && new_pic1!=".jpeg" && new_pic1!=".JPEG" && new_pic1!=".gif" && new_pic1!=".GIF" && new_pic1!=".png" && new_pic1!=".PNG" && new_pic1!=".tiff" && new_pic1!=".TIFF" && new_pic1!=".bmp" && new_pic1!=".BMP")

			{	alert("Please Upload Only Image Files.");

				document.form_profile.Image_1.select();

				return false;

			}

		}

	}

	

	if(checkBlankField(document.form_profile.Image_2.value) == true)

	{	var pic1 = document.form_profile.Image_2.value;

		if(pic1!="")

		{	var new_pic1 = pic1.substring(pic1.lastIndexOf('.'),pic1.length);

			if(new_pic1!=".jpg" && new_pic1!=".JPG" && new_pic1!=".jpeg" && new_pic1!=".JPEG" && new_pic1!=".gif" && new_pic1!=".GIF" && new_pic1!=".png" && new_pic1!=".PNG" && new_pic1!=".tiff" && new_pic1!=".TIFF" && new_pic1!=".bmp" && new_pic1!=".BMP")

			{	alert("Please Upload Only Image Files.");

				document.form_profile.Image_2.select();

				return false;

			}

		}

	}

	

	

	if(checkBlankField(document.form_profile.Image_3.value) == true)

	{	var pic1 = document.form_profile.Image_3.value;

		if(pic1!="")

		{	var new_pic1 = pic1.substring(pic1.lastIndexOf('.'),pic1.length);

			if(new_pic1!=".jpg" && new_pic1!=".JPG" && new_pic1!=".jpeg" && new_pic1!=".JPEG" && new_pic1!=".gif" && new_pic1!=".GIF" && new_pic1!=".png" && new_pic1!=".PNG" && new_pic1!=".tiff" && new_pic1!=".TIFF" && new_pic1!=".bmp" && new_pic1!=".BMP")

			{	alert("Please Upload Only Image Files.");

				document.form_profile.Image_3.select();

				return false;

			}

		}

	}

	

	

	if(checkBlankField(document.form_profile.Image_4.value) == true)

	{	var pic1 = document.form_profile.Image_4.value;

		if(pic1!="")

		{	var new_pic1 = pic1.substring(pic1.lastIndexOf('.'),pic1.length);

			if(new_pic1!=".jpg" && new_pic1!=".JPG" && new_pic1!=".jpeg" && new_pic1!=".JPEG" && new_pic1!=".gif" && new_pic1!=".GIF" && new_pic1!=".png" && new_pic1!=".PNG" && new_pic1!=".tiff" && new_pic1!=".TIFF" && new_pic1!=".bmp" && new_pic1!=".BMP")

			{	alert("Please Upload Only Image Files.");

				document.form_profile.Image_4.select();

				return false;

			}

		}

	}

	

	

	if(checkBlankField(document.form_profile.Image_5.value) == true)

	{	var pic1 = document.form_profile.Image_5.value;

		if(pic1!="")

		{	var new_pic1 = pic1.substring(pic1.lastIndexOf('.'),pic1.length);

			if(new_pic1!=".jpg" && new_pic1!=".JPG" && new_pic1!=".jpeg" && new_pic1!=".JPEG" && new_pic1!=".gif" && new_pic1!=".GIF" && new_pic1!=".png" && new_pic1!=".PNG" && new_pic1!=".tiff" && new_pic1!=".TIFF" && new_pic1!=".bmp" && new_pic1!=".BMP")

			{	alert("Please Upload Only Image Files.");

				document.form_profile.Image_5.select();

				return false;

			}

		}

	}

	

	if(checkBlankField(document.form_profile.Image_6.value) == true)

	{	var pic1 = document.form_profile.Image_6.value;

		if(pic1!="")

		{	var new_pic1 = pic1.substring(pic1.lastIndexOf('.'),pic1.length);

			if(new_pic1!=".jpg" && new_pic1!=".JPG" && new_pic1!=".jpeg" && new_pic1!=".JPEG" && new_pic1!=".gif" && new_pic1!=".GIF" && new_pic1!=".png" && new_pic1!=".PNG" && new_pic1!=".tiff" && new_pic1!=".TIFF" && new_pic1!=".bmp" && new_pic1!=".BMP")

			{	alert("Please Upload Only Image Files.");

				document.form_profile.Image_6.select();

				return false;

			}

		}

	}

	

	

	if(checkBlankField(document.form_profile.Image_7.value) == true)

	{	var pic1 = document.form_profile.Image_7.value;

		if(pic1!="")

		{	var new_pic1 = pic1.substring(pic1.lastIndexOf('.'),pic1.length);

			if(new_pic1!=".jpg" && new_pic1!=".JPG" && new_pic1!=".jpeg" && new_pic1!=".JPEG" && new_pic1!=".gif" && new_pic1!=".GIF" && new_pic1!=".png" && new_pic1!=".PNG" && new_pic1!=".tiff" && new_pic1!=".TIFF" && new_pic1!=".bmp" && new_pic1!=".BMP")

			{	alert("Please Upload Only Image Files.");

				document.form_profile.Image_7.select();

				return false;

			}

		}

	}

	

	

	if(checkBlankField(document.form_profile.Image_8.value) == true)

	{	var pic1 = document.form_profile.Image_8.value;

		if(pic1!="")

		{	var new_pic1 = pic1.substring(pic1.lastIndexOf('.'),pic1.length);

			if(new_pic1!=".jpg" && new_pic1!=".JPG" && new_pic1!=".jpeg" && new_pic1!=".JPEG" && new_pic1!=".gif" && new_pic1!=".GIF" && new_pic1!=".png" && new_pic1!=".PNG" && new_pic1!=".tiff" && new_pic1!=".TIFF" && new_pic1!=".bmp" && new_pic1!=".BMP")

			{	alert("Please Upload Only Image Files.");

				document.form_profile.Image_8.select();

				return false;

			}

		}

	}

	

	

	if (document.getElementById("escTypeID_5").checked == true)

	{

		if(document.getElementById("pay_type"))

		{

			if (document.form_profile.pay_type[0].checked==false && document.form_profile.pay_type[1].checked==false && document.form_profile.pay_type[2].checked==false)

			{

				alert("Please select payment type first.");

				return false;

			}

		}

	}

	

	/////////////////////////////////////////////////////

	

	if(checkBlankField(document.form_profile.Image_1.value) == true || checkBlankField(document.form_profile.Image_2.value) == true || checkBlankField(document.form_profile.Image_3.value) == true || checkBlankField(document.form_profile.Image_4.value) == true || checkBlankField(document.form_profile.Image_5.value) == true || checkBlankField(document.form_profile.Image_6.value) == true || checkBlankField(document.form_profile.Image_7.value) == true || checkBlankField(document.form_profile.Image_8.value) == true) {

		if(document.form_profile.chk_pic_terms.checked == false)
		{
			alert("Please give the explicit permission to publish your image(s) to the website.");
			return false
		}
	}

	//////////////////////////////////////////////////////

	

	if(document.form_profile.chk_term.checked == false)

	{

		alert("Please agree the terms and conditons.");

		return false

	}

			

	document.form_profile.submit();

}



function chk_independent()

{

	if (document.getElementById("escTypeID_5").checked==true)

	{

		//alert("Independent Selected");

		document.getElementById("escTypeID_1").checked=false;

		document.getElementById("escTypeID_2").checked=false;

		document.getElementById("escTypeID_3").checked=false;

		document.getElementById("escTypeID_4").checked=false;

		document.getElementById("escTypeID_6").checked=false;

		document.getElementById("escTypeID_7").checked=false;

		

		document.getElementById("payment_type").style.display = "block";

		document.getElementById("second_phone_mess").style.visibility = "visible";

		document.getElementById("publish_email_text").style.visibility = "visible";

		document.getElementById("publish_email_field").style.visibility = "visible";

	}

	else

	{

		document.getElementById("payment_type").style.display = "none";

		document.getElementById("second_phone_mess").style.visibility = "hidden";

		document.getElementById("publish_email_text").style.visibility = "hidden";

		document.getElementById("publish_email_field").style.visibility = "hidden";

	}

}



function show_other_service_checkbox(checkboxID, textboxID, divID)

{

	if (document.getElementById(checkboxID).checked == true)

	{

		document.getElementById(divID).style.visibility = "visible";

	}

	else

	{

		document.getElementById(textboxID).value = "";

		document.getElementById(divID).style.visibility = "hidden";

	}

}



function show_agency_radio(radioID, textboxID, divID)

{

	if(document.form_profile.radio_agencies[0].checked == true)

	{

		document.getElementById(divID).style.visibility = "visible";

	}

	else if(document.form_profile.radio_agencies[1].checked == true)

	{

		document.getElementById(textboxID).value = "";

		document.getElementById(divID).style.visibility = "hidden";

	}

}



function show_tatoos_dropDown(selectID, textboxID, divID)

{

	if(document.getElementById(selectID).value == "Yes")

	{

		document.getElementById(divID).style.visibility = "visible";

	}

	else if(document.getElementById(selectID).value == "No")

	{

		document.getElementById(textboxID).value = "";

		document.getElementById(divID).style.visibility = "hidden";

	}

}



function disp_charges()

{

	if (checkBlankField(document.getElementById("esc_minPrice").value) == true)

	{

		document.getElementById("div_charge").style.display = "block";

		var minprice = document.getElementById("esc_minPrice").value;

		if(minprice <= 150) {

			document.getElementById("incall_1").value = '100';

			document.getElementById("outcall_1").value = '200';

			document.getElementById("incall_2").value = '150';

			document.getElementById("outcall_2").value = '200';

			document.getElementById("incall_3").value = '200';

			document.getElementById("outcall_3").value = '250';

			document.getElementById("incall_4").value = '250';

			document.getElementById("outcall_4").value = '300';

			document.getElementById("incall_5").value = '350';

			document.getElementById("outcall_5").value = '400';

			document.getElementById("incall_6").value = '100';

			document.getElementById("outcall_6").value = '100';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '350';

			document.getElementById("incall_8").value = '600';

			document.getElementById("outcall_8").value = '600';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '1000';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '600';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '1500';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '3500';

		} else if(minprice > 150 && minprice <= 200) {

			document.getElementById("incall_1").value = '150';

			document.getElementById("outcall_1").value = '250';

			document.getElementById("incall_2").value = '200';

			document.getElementById("outcall_2").value = '250';

			document.getElementById("incall_3").value = '275';

			document.getElementById("outcall_3").value = '325';

			document.getElementById("incall_4").value = '350';

			document.getElementById("outcall_4").value = '400';

			document.getElementById("incall_5").value = '500';

			document.getElementById("outcall_5").value = '550';

			document.getElementById("incall_6").value = '150';

			document.getElementById("outcall_6").value = '150';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '500';

			document.getElementById("incall_8").value = '1000';

			document.getElementById("outcall_8").value = '1000';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '1500';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '1000';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '2500';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '5000';

		}  else if(minprice > 200 && minprice <= 250) {

			document.getElementById("incall_1").value = '200';

			document.getElementById("outcall_1").value = '300';

			document.getElementById("incall_2").value = '250';

			document.getElementById("outcall_2").value = '300';

			document.getElementById("incall_3").value = '325';

			document.getElementById("outcall_3").value = '375';

			document.getElementById("incall_4").value = '400';

			document.getElementById("outcall_4").value = '450';

			document.getElementById("incall_5").value = '550';

			document.getElementById("outcall_5").value = '600';

			document.getElementById("incall_6").value = '150';

			document.getElementById("outcall_6").value = '150';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '550';

			document.getElementById("incall_8").value = '1200';

			document.getElementById("outcall_8").value = '1200';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '2000';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '1200';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '3000';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '6500';

		}  else if(minprice > 250 && minprice <= 300) {

			document.getElementById("incall_1").value = '200';

			document.getElementById("outcall_1").value = '350';

			document.getElementById("incall_2").value = '300';

			document.getElementById("outcall_2").value = '350';

			document.getElementById("incall_3").value = '400';

			document.getElementById("outcall_3").value = '450';

			document.getElementById("incall_4").value = '500';

			document.getElementById("outcall_4").value = '550';

			document.getElementById("incall_5").value = '700';

			document.getElementById("outcall_5").value = '750';

			document.getElementById("incall_6").value = '200';

			document.getElementById("outcall_6").value = '200';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '650';

			document.getElementById("incall_8").value = '1500';

			document.getElementById("outcall_8").value = '1500';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '2500';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '1500';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '3500';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '7000';

		} else if(minprice > 300 && minprice <= 350) {

			document.getElementById("incall_1").value = '250';

			document.getElementById("outcall_1").value = '400';

			document.getElementById("incall_2").value = '350';

			document.getElementById("outcall_2").value = '400';

			document.getElementById("incall_3").value = '450';

			document.getElementById("outcall_3").value = '500';

			document.getElementById("incall_4").value = '550';

			document.getElementById("outcall_4").value = '600';

			document.getElementById("incall_5").value = '750';

			document.getElementById("outcall_5").value = '800';

			document.getElementById("incall_6").value = '200';

			document.getElementById("outcall_6").value = '200';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '700';

			document.getElementById("incall_8").value = '1500';

			document.getElementById("outcall_8").value = '1500';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '2500';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '1500';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '3500';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '7000';

		} else if(minprice > 350 && minprice <= 400) {

			document.getElementById("incall_1").value = '250';

			document.getElementById("outcall_1").value = '400';

			document.getElementById("incall_2").value = '400';

			document.getElementById("outcall_2").value = '450';

			document.getElementById("incall_3").value = '500';

			document.getElementById("outcall_3").value = '550';

			document.getElementById("incall_4").value = '600';

			document.getElementById("outcall_4").value = '650';

			document.getElementById("incall_5").value = '800';

			document.getElementById("outcall_5").value = '850';

			document.getElementById("incall_6").value = '200';

			document.getElementById("outcall_6").value = '200';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '750';

			document.getElementById("incall_8").value = '1700';

			document.getElementById("outcall_8").value = '1700';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '2700';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '1700';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '4000';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '7500';

		} else if(minprice > 400 && minprice <= 500) {

			document.getElementById("incall_1").value = '400';

			document.getElementById("outcall_1").value = '500';

			document.getElementById("incall_2").value = '500';

			document.getElementById("outcall_2").value = '500';

			document.getElementById("incall_3").value = '650';

			document.getElementById("outcall_3").value = '650';

			document.getElementById("incall_4").value = '800';

			document.getElementById("outcall_4").value = '800';

			document.getElementById("incall_5").value = '1100';

			document.getElementById("outcall_5").value = '1100';

			document.getElementById("incall_6").value = '300';

			document.getElementById("outcall_6").value = '300';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '900';

			document.getElementById("incall_8").value = '';

			document.getElementById("outcall_8").value = '2500';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '4000';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '2500';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '6000';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '12000';

		} else if(minprice > 500 && minprice <= 750) {

			document.getElementById("incall_1").value = '500';

			document.getElementById("outcall_1").value = '750';

			document.getElementById("incall_2").value = '750';

			document.getElementById("outcall_2").value = '750';

			document.getElementById("incall_3").value = '950';

			document.getElementById("outcall_3").value = '950';

			document.getElementById("incall_4").value = '1150';

			document.getElementById("outcall_4").value = '1150';

			document.getElementById("incall_5").value = '1450';

			document.getElementById("outcall_5").value = '1450';

			document.getElementById("incall_6").value = '400';

			document.getElementById("outcall_6").value = '400';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '1200';

			document.getElementById("incall_8").value = '3000';

			document.getElementById("outcall_8").value = '3000';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '5000';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '3000';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '7000';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '15000';

		} else if(minprice > 750 && minprice <= 1000) {

			document.getElementById("incall_1").value = '750';

			document.getElementById("outcall_1").value = '1000';

			document.getElementById("incall_2").value = '1000';

			document.getElementById("outcall_2").value = '1000';

			document.getElementById("incall_3").value = '1250';

			document.getElementById("outcall_3").value = '1250';

			document.getElementById("incall_4").value = '1500';

			document.getElementById("outcall_4").value = '1500';

			document.getElementById("incall_5").value = '2000';

			document.getElementById("outcall_5").value = '2000';

			document.getElementById("incall_6").value = '500';

			document.getElementById("outcall_6").value = '500';

			document.getElementById("incall_7").value = '';

			document.getElementById("outcall_7").value = '1500';

			document.getElementById("incall_8").value = '4000';

			document.getElementById("outcall_8").value = '4000';

			document.getElementById("incall_9").value = '';

			document.getElementById("outcall_9").value = '6000';

			document.getElementById("incall_10").value = '';

			document.getElementById("outcall_10").value = '4000';

			document.getElementById("incall_11").value = '';

			document.getElementById("outcall_11").value = '5000';

			document.getElementById("incall_12").value = '';

			document.getElementById("outcall_12").value = '20000';

		}

	}

}



function showstate(val) {

	if(val == "United States") {

		document.getElementById("state_row").style.display = "block";

	} else {

		document.getElementById("state_row").style.display = "none";

	}

}



function incallmode(val) {

	if(val == "outcall only"){

		document.getElementById("esc_incallPlace").style.visibility = "hidden";

		document.getElementById("esc_incallPlaceText").style.visibility = "hidden";

	} else {

		if(document.getElementById("esc_city").value == "London") {

			document.getElementById("esc_incallPlace").style.visibility = "visible";

			document.getElementById("esc_incallPlaceText").style.visibility = "hidden";

		} else {

			document.getElementById("esc_incallPlace").style.visibility = "hidden";

			document.getElementById("esc_incallPlaceText").style.visibility = "visible";

		}

	}

}



function city_update(val) {

	if(val == "London") {

		document.getElementById("esc_city_other").style.display = "none";

		document.getElementById("postocde_other").style.display = "none";

		document.getElementById("postocde_london").style.display = "block";

		document.getElementById("esc_tubeStation").disabled=false;

		

		if(document.getElementById("esc_incallMode").value != "outcall only") {

			document.getElementById("esc_incallPlace").style.visibility = "visible";

			document.getElementById("esc_incallPlaceText").style.visibility = "hidden";

		}

	} else {

		document.getElementById("esc_city_other").style.display = "block";

		document.getElementById("postocde_other").style.display = "block";

		document.getElementById("postocde_london").style.display = "none";

		document.getElementById("esc_tubeStation").disabled=true;

		

		if(document.getElementById("esc_incallMode").value != "outcall only") {

			document.getElementById("esc_incallPlace").style.visibility = "hidden";

			document.getElementById("esc_incallPlaceText").style.visibility = "visible";

		}

	}

}