function showSignUpblk(str){var hidechk=document.getElementById('hidebackSignup').style.display;if(hidechk=='none'){document.getElementById('hidebackSignup').style.display='block';}else{document.getElementById('hidebackSignup').style.display='none';}
var chk=document.getElementById('showSignUp').style.display;if(chk=='none'){document.getElementById('showSignUp').style.display='block';}else{document.getElementById('showSignUp').style.display='none';}
window.scrollTo(0,0)}
function showForgetPassMsg(str){var hidechk=document.getElementById('hidebackSignup').style.display;if(hidechk=='none'){document.getElementById('hidebackSignup').style.display='block';}else{document.getElementById('hidebackSignup').style.display='none';}
document.getElementById('showSignUp').style.display='none';var chk=document.getElementById('forgetpassword').style.display;if(chk=='none'){document.getElementById('forgetpassword').style.display='block';}else{document.getElementById('forgetpassword').style.display='none';}
if(str=='close'){document.getElementById('fPageDestinationSelect').style.display="block";document.getElementById('fPagedurationSelect').style.display="block";document.getElementById('fPageDateSelect').style.display="block";document.getElementById('fPageCruseLineSelect').style.display="block";}}
function showSignUpblkFrPage(str){var hidechk=document.getElementById('hidebackSignup').style.display;if(hidechk=='none'){document.getElementById('hidebackSignup').style.display='block';}else{document.getElementById('hidebackSignup').style.display='none';}
var chk=document.getElementById('showSignUp').style.display;if(chk=='none'){document.getElementById('showSignUp').style.display='block';}else{document.getElementById('showSignUp').style.display='none';}
if(str=='show'){if(document.getElementById('fPageDestinationSelect'))document.getElementById('fPageDestinationSelect').style.display="none";if(document.getElementById('fPagedurationSelect'))document.getElementById('fPagedurationSelect').style.display="none";if(document.getElementById('fPageDateSelect'))document.getElementById('fPageDateSelect').style.display="none";if(document.getElementById('fPageCruseLineSelect'))document.getElementById('fPageCruseLineSelect').style.display="none";}else{if(document.getElementById('fPageDestinationSelect'))document.getElementById('fPageDestinationSelect').style.display="block";if(document.getElementById('fPagedurationSelect'))document.getElementById('fPagedurationSelect').style.display="block";if(document.getElementById('fPageDateSelect'))document.getElementById('fPageDateSelect').style.display="block";if(document.getElementById('fPageCruseLineSelect'))document.getElementById('fPageCruseLineSelect').style.display="block";}}
function changeSignType(id){if(id=="signIndiv"){document.getElementById("signIndiv").style.display="block";document.getElementById("signupdiv").style.display="none";}else if(id=="signupdiv"){document.getElementById("signupdiv").style.display="block";document.getElementById("signIndiv").style.display="none";}}
function showSearchblk(str){var hint=str;if(hint=='redefine'){document.getElementById('changemsg').innerHTML="";}
var hidechk=document.getElementById('hideback').style.display;if(hidechk=='none'){document.getElementById('hideback').style.display='block';}else{document.getElementById('hideback').style.display='none';}
var chk=document.getElementById('showSearch').style.display;if(chk=='none'){document.getElementById('showSearch').style.display='block';}else{document.getElementById('showSearch').style.display='none';}
window.scrollTo(0,0)}
function showMyAccountblkFrPage(str){var activeCls=document.getElementById('cssHistory');activeCls.className="active";var activeCls=document.getElementById('cssPdata');activeCls.className="tempCls";var activeCls=document.getElementById('cssAlerts');activeCls.className="tmepCls";document.getElementById("popUpMsgNew").style.display="none";document.getElementById("pricealert").style.display="none";document.getElementById('sHistory').style.display="block";var hidechk=document.getElementById('hidebackMyAccount').style.display;if(hidechk=='none'){document.getElementById('hidebackMyAccount').style.display='block';}else{document.getElementById('hidebackMyAccount').style.display='none';}
var chk=document.getElementById('showMyAccount').style.display;if(chk=='none'){document.getElementById('showMyAccount').style.display='block';}else{document.getElementById('showMyAccount').style.display='none';}
if(str=='show'){document.getElementById('fPageDestinationSelect').style.display="none";document.getElementById('fPagedurationSelect').style.display="none";document.getElementById('fPageDateSelect').style.display="none";document.getElementById('fPageCruseLineSelect').style.display="none";xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="myAcSearchInclude.php"
url=url+"?sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState<4){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("sHistory").innerHTML="<div style='position:absolute;top:100px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
else{document.getElementById("sHistory").innerHTML="<div style='position:absolute;top:200px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}}
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("sHistory1").innerHTML="";document.getElementById("sHistory").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
else{document.getElementById('fPageDestinationSelect').style.display="block";document.getElementById('fPagedurationSelect').style.display="block";document.getElementById('fPageDateSelect').style.display="block";document.getElementById('fPageCruseLineSelect').style.display="block";}}
function showMyAccountblk(str){var activeCls=document.getElementById('cssHistory');activeCls.className="active";var activeCls=document.getElementById('cssPdata');activeCls.className="tempCls";var activeCls=document.getElementById('cssAlerts');activeCls.className="tmepCls";document.getElementById("popUpMsgNew").style.display="none";document.getElementById("pricealert").style.display="none";document.getElementById('sHistory').style.display="block";var hidechk=document.getElementById('hidebackMyAccount').style.display;if(hidechk=='none'){document.getElementById('hidebackMyAccount').style.display='block';}else{document.getElementById('hidebackMyAccount').style.display='none';}
var chk=document.getElementById('showMyAccount').style.display;if(chk=='none'){document.getElementById('showMyAccount').style.display='block';}else{document.getElementById('showMyAccount').style.display='none';}
if(str=='show'){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="myAcSearchInclude.php"
url=url+"?sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState<4){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("sHistory").innerHTML="<div style='position:absolute;top:100px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
else{document.getElementById("sHistory").innerHTML="<div style='position:absolute;top:200px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}}
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("sHistory1").innerHTML="";document.getElementById("sHistory").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}}
function delUserSearch(str){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="deleteUserSearch.php"
url=url+"?id="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedPopup
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function showPdata(str){var activeCls=document.getElementById('cssPdata');activeCls.className="active";var activeCls=document.getElementById('cssHistory');activeCls.className="tempCls";var activeCls=document.getElementById('cssAlerts');activeCls.className="tmepCls";document.getElementById("pricealert").style.display="none";document.getElementById('sHistory').style.display="none";document.getElementById("popUpMsgNew").style.display="block";xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="editUserInfo.php"
url=url+"?id="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("popUpMsgNew1").innerHTML=""
document.getElementById("popUpMsgNew").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function showSHistory(){var activeCls=document.getElementById('cssHistory');activeCls.className="active";var activeCls=document.getElementById('cssAlerts');activeCls.className="tmepCls";var activeCls=document.getElementById('cssPdata');activeCls.className="tempCls";document.getElementById("popUpMsgNew").style.display="none";document.getElementById("pricealert").style.display="none";document.getElementById('sHistory').style.display="block";xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="myAcSearchInclude.php"
url=url+"?sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState<4){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("sHistory").innerHTML="<div style='position:absolute;top:100px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
else{document.getElementById("sHistory").innerHTML="<div style='position:absolute;top:200px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}}
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("sHistory1").innerHTML="";document.getElementById("sHistory").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function showPriceData(){var activeCls=document.getElementById('cssAlerts');activeCls.className="active";var activeCls=document.getElementById('cssHistory');activeCls.className="tempCls";var activeCls=document.getElementById('cssPdata');activeCls.className="tempCls";xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
document.getElementById("popUpMsgNew").style.display="none";document.getElementById("pricealert").style.display="block";document.getElementById('sHistory').style.display="none";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState<4){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("pricealert").innerHTML="<div style='position:absolute;top:100px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
else{document.getElementById("pricealert").innerHTML="<div style='position:absolute;top:200px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}}
if(xmlHttp.readyState==4){document.getElementById("pricealert1").innerHTML="";document.getElementById("pricealert").innerHTML=xmlHttp.responseText;}}
var url="getprice.php?type=displayprice";xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function editUserInfo(str){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="editUserInfo.php"
url=url+"?id="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState<4){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("popUpMsgNew").innerHTML="<div style='position:absolute;top:100px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
else{document.getElementById("popUpMsgNew").innerHTML="<div style='position:absolute;top:200px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}}
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("sHistory").style.display="none";document.getElementById("popUpMsgNew").style.display="block";document.getElementById("popUpMsgNew").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function saveUserInfo(id,name,email,pass,ulang,ucon){var alertvalue=document.getElementById('alertvalues').value;splitalert=alertvalue.split("?");if(document.popUpUserInfoEdit.uname.value=="")
{document.getElementById('alertmsg').innerHTML='';document.getElementById('alertmsg').innerHTML=splitalert[0];document.popUpUserInfoEdit.uname.focus();return false;}
if(document.popUpUserInfoEdit.email.value=="")
{document.getElementById('alertmsg').innerHTML='';document.getElementById('alertmsg').innerHTML=splitalert[1];document.popUpUserInfoEdit.email.focus();return false;}
if(document.popUpUserInfoEdit.email.value!=""&&document.popUpUserInfoEdit.pass.value=="")
{apos=email.indexOf("@");dotpos=email.lastIndexOf(".");if(apos<1||dotpos-apos<2)
{document.getElementById('alertmsg').innerHTML='';document.getElementById('alertmsg').innerHTML=splitalert[2];document.popUpUserInfoEdit.email.focus();return false;}
else
{if(document.popUpUserInfoEdit.pass.value=="")
{document.getElementById('alertmsg').innerHTML='';document.getElementById('alertmsg').innerHTML=splitalert[3];document.popUpUserInfoEdit.pass.focus();return false;}}}
if(document.popUpUserInfoEdit.email.value!="")
{apos=email.indexOf("@");dotpos=email.lastIndexOf(".");if(apos<1||dotpos-apos<2)
{document.getElementById('alertmsg').innerHTML='';document.getElementById('alertmsg').innerHTML=splitalert[2];document.popUpUserInfoEdit.email.focus();return false;}}
var unewslr=1;xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
document.getElementById("pricealert").style.display="none";document.getElementById('sHistory').style.display="none";document.getElementById("popUpMsgNew").style.display="block";var url="saveUserInfo.php"
url=url+"?id="+id
url=url+"&name="+name
url=url+"&email="+email
url=url+"&pass="+pass
url=url+"&prelang="+ulang
url=url+"&precurrency="+ucon
url=url+"&newsopt="+unewslr
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){if(xmlHttp.responseText){window.location.reload(true);}
document.getElementById("popUpMsgNew1").innerHTML=""
document.getElementById("popUpMsgNew").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function saveUserInfoPA(id,name,email,pass,ulang,ucon){var alertvalue=document.getElementById('alertvaluespa').value;splitalert=alertvalue.split("?");if(document.popUpUserInfoEdit.uname.value=="")
{document.getElementById('alertmsgpa').innerHTML='';document.getElementById('alertmsgpa').innerHTML=splitalert[0];document.popUpUserInfoEdit.uname.focus();return false;}
if(document.popUpUserInfoEdit.email.value=="")
{document.getElementById('alertmsgpa').innerHTML='';document.getElementById('alertmsgpa').innerHTML=splitalert[1];document.popUpUserInfoEdit.email.focus();return false;}
if(document.popUpUserInfoEdit.email.value!=""&&document.popUpUserInfoEdit.pass.value=="")
{apos=email.indexOf("@");dotpos=email.lastIndexOf(".");if(apos<1||dotpos-apos<2)
{document.getElementById('alertmsgpa').innerHTML='';document.getElementById('alertmsgpa').innerHTML=splitalert[2];document.popUpUserInfoEdit.email.focus();return false;}
else
{if(document.popUpUserInfoEdit.pass.value=="")
{document.getElementById('alertmsgpa').innerHTML='';document.getElementById('alertmsgpa').innerHTML=splitalert[3];document.popUpUserInfoEdit.pass.focus();return false;}}}
if(document.popUpUserInfoEdit.email.value!="")
{apos=email.indexOf("@");dotpos=email.lastIndexOf(".");if(apos<1||dotpos-apos<2)
{document.getElementById('alertmsgpa').innerHTML='';document.getElementById('alertmsgpa').innerHTML=splitalert[2];document.popUpUserInfoEdit.email.focus();return false;}}
var unewslr=1;xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
document.getElementById("pricealert1").style.display="none";document.getElementById('sHistory1').style.display="none";document.getElementById('priceArea1').style.display='none';document.getElementById("popUpMsgNew1").style.display="block";var url="saveUserInfoPA.php"
url=url+"?id="+id
url=url+"&name="+name
url=url+"&email="+email
url=url+"&pass="+pass
url=url+"&prelang="+ulang
url=url+"&precurrency="+ucon
url=url+"&newsopt="+unewslr
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){if(xmlHttp.responseText){window.location.reload(true);}
document.getElementById("popUpMsgNew").innerHTML=""
document.getElementById("popUpMsgNew1").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function SetPriceAlert(ItineraryID,userId,cabin,pricealert){var palert=pricealert;document.getElementById('hidebackPricePopUp').style.display='block';document.getElementById('PricePopUp').style.display='block';document.getElementById("pricealert1").style.display="block";document.getElementById("popUpMsgNew1").style.display="none";document.getElementById('sHistory1').style.display="none";document.getElementById('priceArea1').style.display='none';var activeCls=document.getElementById('cssHistorySA');activeCls.className="tempCls";var activeCls=document.getElementById('cssPdataSA');activeCls.className="tmepCls";var newPriceAlert=palert.replace(' ','_');var dispPriceAlert=palert.replace('_',' ');document.getElementById('priceshow').innerHTML='<a href="#" id="cssAlertsSA" class="active"   onclick=SetPriceAlert('+ItineraryID+','+userId+',"Inside","'+newPriceAlert+'"); >'+dispPriceAlert+'</a>';showPriceData1(ItineraryID,userId,cabin);}
function showPdata1(str){var activeCls=document.getElementById('cssPdataSA');activeCls.className="active";var activeCls=document.getElementById('cssHistorySA');activeCls.className="tempCls";var activeCls=document.getElementById('cssAlertsSA');activeCls.className="tmepCls";document.getElementById('sHistory1').style.display="none";document.getElementById("popUpMsgNew1").style.display="block";document.getElementById('priceArea1').style.display='none';document.getElementById("pricealert1").style.display="none";xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="editUserInfoPA.php"
url=url+"?id="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState<4){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("popUpMsgNew1").innerHTML="<div style='position:absolute;top:100px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
else{document.getElementById("popUpMsgNew1").innerHTML="<div style='position:absolute;top:200px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}}
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("popUpMsgNew").innerHTML=""
document.getElementById("popUpMsgNew1").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function showSHistory1(){var activeCls=document.getElementById('cssHistorySA');activeCls.className="active";var activeCls=document.getElementById('cssAlertsSA');activeCls.className="tmepCls";var activeCls=document.getElementById('cssPdataSA');activeCls.className="tempCls";document.getElementById("popUpMsgNew1").style.display="none";document.getElementById("pricealert1").style.display="none";document.getElementById('priceArea1').style.display='none';document.getElementById('sHistory1').style.display="block";xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="myAcSearchInclude.php"
url=url+"?sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState<4){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("sHistory1").innerHTML="<div style='position:absolute;top:100px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
else{document.getElementById("sHistory1").innerHTML="<div style='position:absolute;top:200px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}}
if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("sHistory").innerHTML="";document.getElementById("sHistory1").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function showPriceData1(ItineraryID,userId,cabin){var activeCls=document.getElementById('cssAlerts');activeCls.className="active";var activeCls=document.getElementById('cssHistory');activeCls.className="tempCls";var activeCls=document.getElementById('cssPdata');activeCls.className="tempCls";xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState<4){if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("pricealert1").innerHTML="<div style='position:absolute;top:100px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
else{document.getElementById("pricealert1").innerHTML="<div style='position:absolute;top:200px;left:300px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration: blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}}
if(xmlHttp.readyState==4){document.getElementById('pricealert').innerHTML="";document.getElementById('pricealert1').innerHTML=xmlHttp.responseText;}}
var url="getprice.php?type=displayalertprice"+"&itineraryid="+ItineraryID+"&cabin_type="+cabin;xmlHttp.open("GET",url,true)
xmlHttp.send(null)
window.scrollTo(0,0)}
function DeletePrice1(id,itiId,userId,cabin){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){showPriceData1(itiId,userId,cabin);}}
document.getElementById('priceArea1').style.display='none';var url="getprice.php?type=delete"+"&id="+id;xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function ClosePricePopUp(){document.getElementById('hidebackPricePopUp').style.display='none';document.getElementById('PricePopUp').style.display='none';}
function SubmitPrice(ItinerID,UserID){var cabinSize=document.roomtype.stateRoomSA.length;var Cabin;var Price;for(var k=0;k<cabinSize;k++){if(document.roomtype.stateRoomSA[k].checked){Cabin=document.roomtype.stateRoomSA[k].id;Price=document.roomtype.stateRoomSA[k].value;}}
xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){document.getElementById('priceArea1').innerHTML='';document.getElementById('priceArea1').style.display='block';document.getElementById('priceArea1').innerHTML="<span style='font-size:15px;'>"+xmlHttp.responseText+"</span>";showPriceData1(ItinerID,UserID,Cabin);}}
var url="getprice.php?type=store"+"&itineraryid="+ItinerID+"&cabin_type="+Cabin+"&userid="+UserID+"&price="+Price;xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function DeletePrice(id){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){showPriceData();}}
var url="getprice.php?type=delete"+"&id="+id;xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function WishListLAert(itinerID,userid,cabin){var html;document.getElementById('hidebackPricePopUp').style.display='block';document.getElementById('PricePopUp').style.display='block';html='<a href="#" onClick="ClosePricePopUp();" style="z-index:8;"> <img src="images/closebut.png" border="0" align="right" style="margin-top:3px; <?php echo $clsBtn; ?>" /> </a> <br/><br/><br/><br/>'
html+="<form name='roomtype1'><table width='100%'> ";html+='<tr><td style="font-size:15px;"><b>Choose Cabin Type</b></td></tr>';html+='<tr> <td style="font-size:13px;padding-left:30px;"><input type="radio" name="stateRoom1" id="Inside" value="Inside" checked="checked" > Inside  </td> <td class="priceTd2"></td> </tr>';html+='<tr> <td style="font-size:13px;padding-left:30px;"><input type="radio" name="stateRoom1" id="Outside" value="Outside"  > Outside</td> </tr> ';html+='<tr> <td style="font-size:13px;padding-left:30px;"><input type="radio" name="stateRoom1" id="Balcony" value="Balcony"  > Balcony </td> </tr> ';html+='<tr> <td style="font-size:13px;padding-left:30px;"><input type="radio" name="stateRoom1" id="Suite" value="Suite" > Suite </td></tr> ';html+='<tr><td id="submit" style="font-size:13px;padding-top:60px;padding-left:100px;"><input type="button" id="ok"  value="Ok" onclick=SubmitWishList('+itinerID+','+userid+')></td></tr>';html+='</table></form>';document.getElementById('PricePopUp').innerHTML=html;}
function SubmitWishList(itiID,usrID){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){document.getElementById('PricePopUp').innerHTML='';document.getElementById('PricePopUp').innerHTML="<span style='font-size:15px;'>"+xmlHttp.responseText+"</span>";}}
var len=document.roomtype1.stateRoom1.length;for(var i=0;i<len;i++){if(document.roomtype1.stateRoom1[i].checked==true){var cabin_typ=document.roomtype1.stateRoom1[i].value;}}
var url="getprice.php?type=wishlist"+"&iti_id="+itiID+"&usrid="+usrID+"&cabin_typ="+cabin_typ;xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function showShipDetails(id){var tblId='shipDetails'+id;var tbl=document.getElementById(tblId);var state=tbl.style.display;if(state=='none'){tbl.style.display='block';document.getElementById('expImg'+id).innerHTML="<img src='images/reduce.png'  />";}
if(state=='block'){tbl.style.display='none';document.getElementById('expImg'+id).innerHTML="<img src='images/expandbtn.png'  />";}}
function showCabinPrice(price,sign,soldout){if(price!=0||price=="")
{document.getElementById('sroomPrice').innerHTML=sign+price;}
else
{document.getElementById('sroomPrice').innerHTML="<span style='font-size:22;letter-spacing:-2px;'>"+soldout+"</span>";}}
function deleteSearchModifyPopup(id){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="deleteSearchPopup.php"
url=url+"?id="+id
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("popUpRecentSearch").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function deleteSearchMyAcPopup(id){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="deleteSearchMyAcPopup.php"
url=url+"?id="+id
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("popUpRecentMyAcSearch").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function DeletePriceFrontPageMyAc(id){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="deleteSearch.php"
url=url+"?id="+id
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var res=xmlHttp.responseText;if(res.search(/cutting edge/)>0){}
document.getElementById("fPageRecentSearch").innerHTML=xmlHttp.responseText}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function showforgetpassdiv(){var disp=document.getElementById("forgetpassdiv").style.display;if(disp=='none'){document.getElementById("forgetpassdiv").style.display="block";}else{document.getElementById("forgetpassdiv").style.display="none";}}
function checkUseremail(){var email=document.getElementById('fpemail').value;xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="checkusermail.php"
url=url+"?email="+email
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var restxt=xmlHttp.responseText
if(restxt.search(/rec/)>0){document.getElementById("msg").innerHTML="There is no user account for this mailid.";}
if(restxt.search(/available/)>0){document.getElementById('hidebackSignup').style.display='none';showForgetPassMsg();}}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function showNewsLetterPopup(){var hidechk=document.getElementById('hidebackNewsLetterSignup').style.display;if(hidechk=='none'){document.getElementById('hidebackNewsLetterSignup').style.display='block';}else{document.getElementById('hidebackNewsLetterSignup').style.display='none';}
var chk=document.getElementById('showNewsLetterSignUp').style.display;if(chk=='none'){document.getElementById('showNewsLetterSignUp').style.display='block';}else{document.getElementById('showNewsLetterSignUp').style.display='none';}
window.scrollTo(0,0)}
function showNewsLetterSignIn(str){if(str=='show'){document.getElementById('hidebackNewsLetterSignup').style.display='block';}else{document.getElementById('hidebackNewsLetterSignup').style.display='none';}
document.getElementById('showNewsLetterSignUp').style.display='none';var chk=document.getElementById('showNewsLetterSignIn').style.display;if(chk=='none'){document.getElementById('showNewsLetterSignIn').style.display='block';}else{document.getElementById('showNewsLetterSignIn').style.display='none';}}
function registernewletteruser(signType){var uName;var uMail;var uPass;if(signType=='signUp'){uName=document.getElementById('nlrUserName').value;uMail=document.getElementById('nlremail').value;uPass=document.getElementById('nlrpassword').value;}
if(signType=='signIn'){uMail=document.getElementById('nlrsinemail').value;uPass=document.getElementById('nlrsinpass').value;}
xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url="checkUser_popup.php"
url=url+"?email="+uMail
url=url+"&name="+uName
url=url+"&pass="+uPass
url=url+"&signType="+signType
url=url+"&prelang=english"
url=url+"&precurrency=USA-USD"
url=url+"&newsopt=1"
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=function stateChangedSignIn(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var reply=xmlHttp.responseText
if(reply.search(/Registered/)>0){CookieSet();window.location.reload(true);}else{if(reply.search(/different/)>0){var id='msgsignUpnlr';}
if(reply.search(/incorrect/)>0){var id='msgsignInlr';}
document.getElementById(id).innerHTML=xmlHttp.responseText}}}
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function show_graph(Itiner_id,Price_type){var http_request;http_request=new GetXmlHttpObject();if(http_request==null){alert("Browser does not support HTTP Request");return;}
http_request.onreadystatechange=function(){if(http_request.readyState<4){document.getElementById('hidebackgraph').style.display="block";document.getElementById('showgraph').style.display="block";document.getElementById('graph_area').innerHTML="<div style='position:absolute;top:200px;left:400px;'><img src='images/loadingbg.png' border='0'><div style='position: absolute; top: 50px; left: 60px; font-size: 14px; text-decoration:blink;color:grey;font-weight:bold;color:gray;'>Loading...</div></div>";}
if(http_request.readyState==4){check_result=http_request.responseText;document.getElementById('graph_area').innerHTML=http_request.responseText;}}
url="graph_data.php?iti_id="+Itiner_id+"&p_type="+Price_type;http_request.open("GET",url,true);http_request.send(null);window.scrollTo(0,0)}
function close_graph(){document.getElementById('hidebackgraph').style.display="none";document.getElementById('showgraph').style.display="none";}