//

//ROLLOVER IMAGES

//

function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}

function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}

function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}

function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}







//

//DISABLE RIGHT CLICK

//

/*

var message="";

function clickIE() {

	if (document.all) {

		(message);

		return false;

	}

}

function clickNS(e) {

	if (document.layers||(document.getElementById&&!document.all)) {

		if (e.which==2||e.which==3) {

			(message);

			return false;

		}

	}

}



if (document.layers) {

	document.captureEvents(Event.MOUSEDOWN);

	document.onmousedown=clickNS;

}else{

	document.onmouseup=clickNS;document.oncontextmenu=clickIE;

}



document.oncontextmenu=new Function("return false");

*/





//

//BOOKMARK SITE

//

function bookmarksite(title,url){

if (window.sidebar) // firefox

	window.sidebar.addPanel(title, url, "");

else if(window.opera && window.print){ // opera

	var elem = document.createElement('a');

	elem.setAttribute('href',url);

	elem.setAttribute('title',title);

	elem.setAttribute('rel','sidebar');

	elem.click();

} 

else if(document.all)// ie

	window.external.AddFavorite(url, title);

}







//

//CHECK JOB APPLICATION (FORM)

//

function checkJob() {

var controllo;

var email_reg_exp =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;



if (document.job.firstname.value==""){

	alert("Enter the First Name!");

	document.job.firstname.focus();

	controllo=0;

	return false

}else if (document.job.familyname.value==""){

	alert("Enter the Family Name!");

	document.job.familyname.focus();

	controllo=0;

	return false

}else if (document.job.phonenumber.value==""){

	alert("Enter the Phone Number!");

	document.job.phonenumber.focus();

	controllo=0;

	return false

}else if (document.job.emailaddress.value==""){

	alert("Enter the Email Address!");

	document.job.emailaddress.focus();

	controllo=0;

	return false

}else if (!email_reg_exp.test(document.job.emailaddress.value)) {

	alert("Email Address is wrong!");

	document.job.emailaddress.focus();

	controllo=0;

	return false

}else if (document.job.nationality.value==""){

	alert("Enter the Nationality!");

	document.job.nationality.focus();

	controllo=0;

	return false

}else if (document.job.education.value==""){

	alert("Enter the Education!");

	document.job.education.focus();

	controllo=0;

	return false

}else if (document.job.age.value==""){

	alert("Enter the Age!");

	document.job.age.focus();

	controllo=0;

	return false

}else if (document.job.weight.value==""){

	alert("Enter the Weight!");

	document.job.weight.focus();

	controllo=0;

	return false

}else if (document.job.height.value==""){

	alert("Enter the Height!");

	document.job.height.focus();

	controllo=0;

	return false

}else if (document.job.cupsize.value==""){

	alert("Enter the Cup Size!");

	document.job.cupsize.focus();

	controllo=0;

	return false

}else if (document.job.haircolour.value==""){

	alert("Enter the Hair Colour!");

	document.job.haircolour.focus();

	controllo=0;

	return false

}else if (document.job.eyecolour.value==""){

	alert("Enter the Eye Colour!");

	document.job.eyecolour.focus();

	controllo=0;

	return false

}else if (document.job.stats.value==""){

	alert("Enter the Stats!");

	document.job.stats.focus();

	controllo=0;

	return false

}else if (document.job.experience.value==""){

	alert("Any experience as a masseuse?");

	document.job.experience.focus();

	controllo=0;

	return false

}else if (document.job.photo1.value=="" && document.job.photo2.value=="" && document.job.photo3.value==""){

	alert("Enter at least one of three photos!");

	document.job.photo1.focus();

	controllo=0;

	return false

}else if (document.job.securitycode.value==""){

	alert("Enter the Security Code!");

	document.job.securitycode.focus();

	controllo=0;

	return false

}



if(controllo!=0){

	document.job.action="sql_job_application.php";

	document.job.submit();

}

}







//

//CHECK ONLINE BOOKING (FORM)

//

function checkOnlinebooking() {

var controllo;

var email_reg_exp =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;



if (document.onlinebooking.firstname.value==""){

	alert("Enter the First Name!");

	document.onlinebooking.firstname.focus();

	controllo=0;

	return false

}else if (document.onlinebooking.lastname.value==""){

	alert("Enter the Last Name!");

	document.onlinebooking.lastname.focus();

	controllo=0;

	return false

}else if (document.onlinebooking.emailaddress.value==""){

	alert("Enter the Email Address!");

	document.onlinebooking.emailaddress.focus();

	controllo=0;

	return false

}else if (!email_reg_exp.test(document.onlinebooking.emailaddress.value)) {

	alert("Email Address is wrong!");

	document.onlinebooking.emailaddress.focus();

	controllo=0;

	return false

}else if (document.onlinebooking.mobile.value==""){

	alert("Enter the Mobile!");

	document.onlinebooking.mobile.focus();

	controllo=0;

	return false

}else if (document.onlinebooking.landline.value==""){

	alert("Enter the LandLine!");

	document.onlinebooking.landline.focus();

	controllo=0;

	return false

}else if (document.onlinebooking.address.value==""){

	alert("Enter the Address!");

	document.onlinebooking.address.focus();

	controllo=0;

	return false

}else if (document.onlinebooking.city.value==""){

	alert("Enter the City!");

	document.onlinebooking.city.focus();

	controllo=0;

	return false

}else if (document.onlinebooking.postcode.value==""){

	alert("Enter the Post Code!");

	document.onlinebooking.postcode.focus();

	controllo=0;

	return false

}else if (document.onlinebooking.securitycode.value==""){

	alert("Enter the Security Code!");

	document.onlinebooking.securitycode.focus();

	controllo=0;

	return false

}



if(controllo!=0){

	document.onlinebooking.action="sql_online_booking.php";

	document.onlinebooking.submit();

}

}







//

//CHECK RECOMMEND US (FORM)

//

function checkRecommend() {

var controllo;

var email_reg_exp =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;



if (document.recommend.yourname.value==""){

	alert("Enter Your Name!");

	document.recommend.yourname.focus();

	controllo=0;

	return false

}else if (document.recommend.youremail.value==""){

	alert("Enter Your Email!");

	document.recommend.youremail.focus();

	controllo=0;

	return false

}else if (!email_reg_exp.test(document.recommend.youremail.value)) {

	alert("Your Email is wrong!");

	document.recommend.youremail.focus();

	controllo=0;

	return false

}else if (document.recommend.friendemail.value==""){

	alert("Enter Friend Email!");

	document.recommend.friendemail.focus();

	controllo=0;

	return false

}else if (!email_reg_exp.test(document.recommend.friendemail.value)) {

	alert("Friend Email is wrong!");

	document.recommend.friendemail.focus();

	controllo=0;

	return false

}else if (document.recommend.securitycode.value==""){

	alert("Enter the Security Code!");

	document.recommend.securitycode.focus();

	controllo=0;

	return false

}



if(controllo!=0){

	document.recommend.action="sql_recommend_us.php";

	document.recommend.submit();

}

}







//

//CHECK MEMBERS (PASSWORD)

//

/*

function checkMembers() {

var controllo;



if (document.members.password.value==""){

	alert("Enter the Password!");

	document.members.password.focus();

	controllo=0;

	return false

}



if(controllo!=0){

	document.members.action="members.php";

	document.members.submit();

}

}

*/

function checkMembers() {

var controllo;

var email_reg_exp =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;



if (document.members.email.value==""){

	alert("Enter Your Email!");

	document.members.email.focus();

	controllo=0;

	return false

}else if (!email_reg_exp.test(document.members.email.value)) {

	alert("Your Email is wrong!");

	document.members.email.focus();

	controllo=0;

	return false

}else if (document.members.password.value==""){

	alert("Enter the Password!");

	document.members.password.focus();

	controllo=0;

	return false

}



if(controllo!=0){

	document.members.action="members.php";

	document.members.submit();

}

}







//

//CHECK BECOME A MEMBER (FORM)

//

function checkBecome() {

var controllo;

var email_reg_exp =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;



if (document.become.name.value==""){

	alert("Enter Your Name!");

	document.become.name.focus();

	controllo=0;

	return false

}else if (document.become.email.value==""){

	alert("Enter Your Email!");

	document.become.email.focus();

	controllo=0;

	return false

}else if (!email_reg_exp.test(document.become.email.value)) {

	alert("Your Email is wrong!");

	document.become.email.focus();

	controllo=0;

	return false

}else if (document.become.securitycode.value==""){

	alert("Enter the Security Code!");

	document.become.securitycode.focus();

	controllo=0;

	return false

}else if (document.become.ckemail.value!="ok"){

	alert("Your Email is not avaiable!");

	document.become.ckemail.focus();

	controllo=0;

	return false

}

if(controllo!=0){

	document.become.action="sql_become_a_member.php";

	document.become.submit();

}

}







//

//CHECK MEMBER ACTIVATION (FORM)

//

function checkActivation() {

var controllo;

var email_reg_exp =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;



if (document.activation.email.value==""){

	alert("Enter Your Email!");

	document.activation.email.focus();

	controllo=0;

	return false

}else if (!email_reg_exp.test(document.activation.email.value)) {

	alert("Your Email is wrong!");

	document.activation.email.focus();

	controllo=0;

	return false

}else if (document.activation.password1.value==""){

	alert("Enter a Password!");

	document.activation.password1.focus();

	controllo=0;

	return false

}else if (document.activation.password1.value!=document.activation.password2.value){

	alert("Passwords do not match!");

	document.activation.password2.value="";
	
	document.activation.password2.focus();

	controllo=0;

	return false

}else if (document.activation.webcode.value==""){

	alert("Enter the Web Code!");

	document.activation.webcode.focus();

	controllo=0;

	return false

}else if (document.activation.webcode.value.length!=8){

	alert("The Web Code is wrong!");

	document.activation.webcode.focus();

	controllo=0;

	return false


}else if (document.activation.securitycode.value==""){

	alert("Enter the Security Code!");

	document.activation.securitycode.focus();

	controllo=0;

	return false

}



if(controllo!=0){

	document.activation.action="sql_member_activation.php";

	document.activation.submit();

}

}







//

//CHECK LOST PASSWORD (FORM)

//

function checkLostpassword() {

var controllo;

var email_reg_exp =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;



if (document.lostpassword.email.value==""){

	alert("Enter Your Email!");

	document.lostpassword.email.focus();

	controllo=0;

	return false

}else if (!email_reg_exp.test(document.lostpassword.email.value)) {

	alert("Your Email is wrong!");

	document.lostpassword.email.focus();

	controllo=0;

	return false

}else if (document.lostpassword.securitycode.value==""){

	alert("Enter the Security Code!");

	document.lostpassword.securitycode.focus();

	controllo=0;

	return false

}



if(controllo!=0){

	document.lostpassword.action="sql_lost_password.php";

	document.lostpassword.submit();

}

}
