
function orbot_textFocus(el,val){return;}
function orbot_textBlur(el,val){return;}
var orbot_onbox="";var orbot_onsearch="";function orbot_boxon(v){if(document.all)document.all[v].style.display="block";if(document.layers)document.layers[v].display="block";if(document.getElementById)document.getElementById(v).style.display="block";}
function orbot_boxoff(v){if(document.all)document.all[v].style.display="none";if(document.layers)document.layers[v].display="none";if(document.getElementById)document.getElementById(v).style.display="none";}
function orbot_swapto(v){orbot_caloff();if(orbot_onbox!="")orbot_boxoff(orbot_onbox);orbot_boxon(v);orbot_onbox=v;}
function orbottab(v,expanded){orbot_swapto("orbot_"+v+"_"+expanded);if(expanded=="true"){if(v=="flights"){document.flightsnavform.rad[0].checked=true;farecastsearch("fc_roundtrip_search");orbotsearch("farecast_flight_search");}
else if(v=="vacations"){document.vacationsnavform.rad[0].checked=true;orbotsearch("orbot_flighthotel_search");}
else if(v=="hotels"){document.hotelsnavform.rad[0].checked=true;orbotsearch("orbot_hotel_search");}
else if(v=="cars"){document.carsnavform.rad[0].checked=true;orbotsearch("orbot_car_search");}
else if(v=="cruises")
{orbotsearch("orbot_cruise_search");}}
else orbotsearch("");}
function orbotsearch(v)
{if(orbot_onsearch!="")orbot_boxoff(orbot_onsearch);if(v!="")orbot_boxon(v);orbot_onsearch=v;}
var orbot_phase="";var orbot_leavedatestr="mm/dd/yy";var orbot_targetmonth=0;var orbot_targetday=0;var orbot_targetyear=0;var orbot_leavedate=new Date();var orbot_returndate=new Date();var orbot_now=new Date();function orbot_hidedivlist(){if(document.getElementById){document.getElementById('hd4').style.visibility="hidden";document.getElementById('hd5').style.visibility="hidden";document.getElementById('hd6').style.visibility="hidden";document.getElementById('hd7').style.visibility="hidden";document.getElementById('hd8').style.visibility="hidden";document.getElementById('hd9').style.visibility="hidden";document.getElementById('hd10').style.visibility="hidden";document.getElementById('fccablbl').style.visibility="hidden";document.getElementById('fccabin').style.visibility="hidden";document.getElementById('orbhcguest').style.visibility="hidden";document.getElementById('orbhcrooms').style.visibility="hidden";}}
function orbot_showdivlist(){if(document.getElementById){document.getElementById('hd4').style.visibility="visible";document.getElementById('hd5').style.visibility="visible";document.getElementById('hd6').style.visibility="visible";document.getElementById('hd7').style.visibility="visible";document.getElementById('hd8').style.visibility="visible";document.getElementById('hd9').style.visibility="visible";document.getElementById('hd10').style.visibility="visible";document.getElementById('fccablbl').style.visibility="visible";document.getElementById('fccabin').style.visibility="visible";document.getElementById('orbhcguest').style.visibility="visible";document.getElementById('orbhcrooms').style.visibility="visible";}}
function orbot_getcalmonth(datestr){var r=0;if(datestr.indexOf("/")!=-1){r=parseInt(datestr,10);if(r>12)r=0;}
return(r);}
function orbot_getcalday(datestr){var r=0;if(datestr.indexOf("/")!=-1){z=datestr.substring(datestr.indexOf("/")+1);r=parseInt(z,10);}
return(r);}
function orbot_getcalyear(datestr){var r=0;if(datestr.indexOf("/")!=-1){z=datestr.substring(datestr.indexOf("/")+1);if(z.indexOf("/")!=-1){z=z.substring(z.indexOf("/")+1);r=parseInt(z,10);if((r>0)&&(r<1000))r=r+2000;}}
return(r);}
function orbot_getMonthName(month){var mns=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");return(mns[month]);}
function orbot_getrealyear(year){if(year<1000)year=year+1900;return(year);}
function orbot_leapYear(year){if(year%4==0)return true
else return false}
function orbot_getDays(month,year){dys=31;if((month==3)||(month==5)||(month==8)||(month==10))dys=30;else if(month==1){if(orbot_leapYear(year))dys=29;else dys=28;}
return(dys);}
function orbot_setcal(datestr,p){orbot_targetmonth=orbot_getcalmonth(datestr);orbot_targetday=orbot_getcalday(datestr);orbot_targetyear=orbot_getcalyear(datestr);orbot_phase=p;orbot_hidedivlist();if((p=="return")&&(datestr=="mm/dd/yy"))datestr=orbot_leavedatestr;orbot_calon(datestr);}
function orbot_calon(datestr){orbot_calonfat(datestr);}
function orbot_calonfat(datestr){var calmonth=orbot_getcalmonth(datestr);var calday=orbot_getcalday(datestr);var calyear=orbot_getcalyear(datestr);if(calyear<orbot_getrealyear(orbot_now.getYear()))calyear=0;if((calyear==orbot_getrealyear(orbot_now.getYear()))&&((calmonth-1)<orbot_now.getMonth()))calyear=0;ty=orbot_getrealyear(orbot_now.getYear());tm=orbot_now.getMonth()+12;if(tm>12){tm=tm-12;ty++;}
if(new Date(calyear,calmonth,1)>new Date(ty,tm,1))calyear=0;if(!((calmonth>0)&&(calday>0)&&(calyear>0))){calmonth=orbot_now.getMonth()+1;calday=orbot_now.getDate();calyear=orbot_getrealyear(orbot_now.getYear());}
initPath();var divhtml="<a href=javascript:orbot_caloff()><img src=\"";divhtml=divhtml+g_StaticImagePath;divhtml=divhtml+"orb/0805_msn_cal_close.gif\" border=\"0\" style='display: block; margin: 0; padding: 0;'></a>";divhtml=divhtml+orbot_calhtmlfat(calmonth,calday,calyear);divhtml=divhtml+"<img src=\"";divhtml=divhtml+g_StaticImagePath;divhtml=divhtml+"orb/lil66cc33.gif\" width=\"140\" height=\"2\" style='display: block; margin: 0; padding: 0;'>";if(document.getElementById){dref=document.getElementById('cal');dref.innerHTML=divhtml;dref.style.visibility="visible";}}
function orbot_calhtmlfat(calmonth,calday,calyear){var html="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"2\" bgcolor=\"#66cc33\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" width=\"2\" height=\"22\" style='display: block; margin: 0; padding: 0;'></td><td width=\"17\" bgcolor=\"#66cc33\">";if(new Date(calyear,calmonth-1,1)>orbot_now){prmonth=calmonth-1;pryear=calyear
if(prmonth==0){prmonth=12;pryear=pryear-1;}
html=html+"<a href=javascript:orbot_calon('"+prmonth+"/"+calday+"/"+pryear+"')><img src=\"";html=html+g_StaticImagePath;html=html+"orb/0805_msn_cal_arrow_back.gif\" border=\"0\" style='display: block; margin: 0; padding: 0;'></a>";}
else
{html=html+"<img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" style='display: block; margin: 0; padding: 0;'>";}
html=html+"</td><td width=\"102\" align=\"center\" bgcolor=\"#66cc33\"><span class=\"cal_header\">";html=html+orbot_getMonthName(calmonth-1)+" "+calyear+"</span><br></td><td width=\"19\" bgcolor=\"#66cc33\">";if(new Date(calyear,calmonth,1)<new Date(orbot_getrealyear(orbot_now.getYear())+1,orbot_now.getMonth(),1)){nxmonth=calmonth+1;nxyear=calyear;if(nxmonth==13){nxmonth=1;nxyear++;}
html=html+"<a href=javascript:orbot_calon('"+nxmonth+"/"+calday+"/"+nxyear+"')><img src=\"";html=html+g_StaticImagePath;html=html+"orb/0805_msn_cal_arrow_next.gif\" border=\"0\" style='display: block; margin: 0; padding: 0;'></a>";}
else
{html=html+"<img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" style='display: block; margin: 0; padding: 0;'>";}
html=html+"</td></tr></table>";html=html+"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"cal_day\"><tr>";html=html+"<td width=\"2\" bgcolor=\"#66cc33\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" width=\"2\" height=\"14\" style='display: block; margin: 0; padding: 0;'></td>";html=html+"<td width=\"18\" align=\"center\" bgcolor=\"#66cc33\"><span class=\"cal_days\">S</span><br></td><td width=\"20\" align=\"center\" bgcolor=\"#66cc33\"><span class=\"cal_days\">M</span><br></td><td width=\"20\" align=\"center\" bgcolor=\"#66cc33\"><span class=\"cal_days\">T</span><br></td><td width=\"20\" align=\"center\" bgcolor=\"#66cc33\"><span class=\"cal_days\">W</span><br></td><td width=\"20\" align=\"center\" bgcolor=\"#66cc33\"><span class=\"cal_days\">T</span><br></td><td width=\"20\" align=\"center\" bgcolor=\"#66cc33\"><span class=\"cal_days\">F</span><br></td><td width=18 align=\"center\" bgcolor=\"#66cc33\"><span class=\"cal_days\">S</span><br></td>";html=html+"<td width=\"2\" bgcolor=\"#66cc33\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" width=\"1\" height=\"14\" style='display: block; margin: 0; padding: 0;'></td></tr></table>";html=html+"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"cal_day\">";var firstday=new Date(calyear,calmonth-1,1).getDay()+1;var daysthismonth=orbot_getDays(calmonth-1,calyear);var digit=1;var curcell=1;for(row=1;row<=Math.ceil((daysthismonth+firstday-1)/7);row++)
{html=html+"<tr><td width=\"2\" bgcolor=\"#66cc33\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" width=\"2\" style='vertical-align: bottom;'><br></td>";for(col=1;col<=7;col++)
{colw=20;if((col==1)||(col==7))colw=18;if(curcell<firstday)
{lastmonth=calmonth-1;if(lastmonth==0)lastmonth=12;lastmonthlength=orbot_getDays(lastmonth-1);html=html+"<td width="+colw+" bgcolor=\"#ffffff\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" style='vertical-align: bottom;'><br></td>";curcell++;}
else{if((digit==orbot_now.getDate())&&((calmonth-1)==orbot_now.getMonth())&&(calyear==orbot_getrealyear(orbot_now.getYear()))){html=html+"<td width="+colw+" align=\"center\" bgcolor=\"#ffffff\"><div style='width: "+colw+"px; height: 15px; border: solid 1px #66cc33;'><a href=javascript:orbot_selectdate("+calmonth+","+digit+","+calyear+")>"+digit+"</a><br></div></td>";}
else if((digit==orbot_targetday)&&(calmonth==orbot_targetmonth)&&(calyear==orbot_targetyear)){html=html+"<td width="+colw+" align=\"center\" bgcolor=\"#66cc33\"><a href=javascript:orbot_selectdate("+calmonth+","+digit+","+calyear+")><font color=\"#ffffff\">"+digit+"</font></a><br></td>";}
else if((digit<orbot_now.getDate())&&((calmonth-1)==orbot_now.getMonth())&&(calyear==orbot_getrealyear(orbot_now.getYear()))){html=html+"<td width="+colw+" align=\"center\" bgcolor=\"#ffffff\">"+digit+"<br></td>";}
else if(digit>daysthismonth){html=html+"<td width="+colw+" bgcolor=\"#ffffff\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" style='vertical-align: bottom;'><br></td>";}
else if((orbot_phase=="leave")&&(digit==orbot_returndate.getDate())&&((calmonth-1)==orbot_returndate.getMonth())&&(calyear==orbot_getrealyear(orbot_returndate.getYear()))){html=html+"<td width="+colw+" align=\"center\" bgcolor=\"#66cc33\"><a href=javascript:orbot_selectdate("+calmonth+","+digit+","+calyear+")><font color=\"#ffffff\">"+digit+"</font><br></td>";}
else if((orbot_phase=="return")&&(digit==orbot_leavedate.getDate())&&((calmonth-1)==orbot_leavedate.getMonth())&&(calyear==orbot_getrealyear(orbot_leavedate.getYear()))){html=html+"<td width="+colw+" align=\"center\" bgcolor=\"#66cc33\"><a href=javascript:orbot_selectdate("+calmonth+","+digit+","+calyear+")><font color=\"#ffffff\">"+digit+"</font><br></td>";}
else if((new Date(calyear,calmonth-1,digit)>orbot_leavedate)&&(new Date(calyear,calmonth-1,digit)<orbot_returndate)){html=html+"<td width="+colw+" align=\"center\" bgcolor=#ffffcc><a href=javascript:orbot_selectdate("+calmonth+","+digit+","+calyear+")>"+digit+"<br></td>";}
else if((orbot_phase=="return")&&(orbot_leavedate>new Date(calyear,calmonth-1,digit))){html=html+"<td width="+colw+" align=\"center\" bgcolor=\"#ffffff\">"+digit+"<br></td>";}
else{html=html+"<td width="+colw+" align=\"center\" bgcolor=\"#ffffff\" id=c"+calmonth+"_"+digit+"><a href=javascript:orbot_selectdate("+calmonth+","+digit+","+calyear+") onMouseover=orbot_cell_on('c"+calmonth+"_"+digit+"') onMouseout=orbot_cell_off('c"+calmonth+"_"+digit+"')>"+digit+"</a><br></td>";}
digit++;}}
html=html+"<td width=\"2\" bgcolor=\"#66cc33\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" width=\"2\" style='vertical-align: bottom;'><br></td></tr>";if(row<Math.ceil((daysthismonth+firstday-1)/7))
{html=html+"<tr><td width=\"2\" bgcolor=\"#66cc33\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" style='display: block; margin: 0; padding: 0;'></td><td width=\"136\" colspan=7 bgcolor=\"#66cc33\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" style='display: block; margin: 0; padding: 0;'></td><td width=\"2\" bgcolor=\"#66cc33\"><img src=\"";html=html+g_StaticImagePath;html=html+"orb/lilshimmy.gif\" style='display: block; margin: 0; padding: 0;'></td></tr>";}}
html=html+"</table>";return(html);}
function orbot_selectdate(pm,pd,py){datestr=pm+"/"+pd+"/";zy=""+py;datestr=datestr+zy.substring(2);if(orbot_phase=="leave"){orbot_leavedate=new Date(py,pm-1,pd);orbot_leavedatestr=datestr;document.farecast.elements['slice1:dateTime:date'].value=datestr;document.hotelonly.elements['startDate:date'].value=datestr;document.caronly.elements['startDate:date'].value=datestr;document.fhotel.elements['slice1:dateTime:date'].value=datestr;document.fcar.elements['slice1:dateTime:date'].value=datestr;document.hotelcar.elements['startDate:date'].value=datestr;document.fhc.elements['slice1:dateTime:date'].value=datestr;}
else{orbot_returndate=new Date(py,pm-1,pd);document.farecast.elements['slice2:dateTime:date'].value=datestr;document.hotelonly.elements['endDate:date'].value=datestr;document.caronly.elements['endDate:date'].value=datestr;document.fhotel.elements['slice2:dateTime:date'].value=datestr;document.fcar.elements['slice2:dateTime:date'].value=datestr;document.hotelcar.elements['endDate:date'].value=datestr;document.fhc.elements['slice2:dateTime:date'].value=datestr;}
orbot_caloff();}
function orbot_caloff(){if(document.getElementById)document.getElementById('cal').style.visibility="hidden";orbot_showdivlist();}
function orbot_cell_off(v){document.getElementById(v).style.backgroundColor="ffffff";}
function orbot_cell_on(v){document.getElementById(v).style.backgroundColor="ffffdd";}
var orbot_departure="<select name=Month class=orbotselectinput style='width: 140px;'>";orbot_depmon=orbot_now.getMonth()+1;orbot_depyear=orbot_getrealyear(orbot_now.getYear());for(i=0;i<18;i++){orbot_departure=orbot_departure+"<option value="+orbot_depmon+"/1/"+orbot_depyear+">";orbot_departure=orbot_departure+orbot_getMonthName(orbot_depmon-1)+" "+orbot_depyear;orbot_depmon++;if(orbot_depmon>12){orbot_depmon=1;orbot_depyear++;}}
orbot_departure=orbot_departure+"</select><br>"
function orbot_namecontainschange(frm,v){if(v!="Hotel name contains")document.forms[frm].elements['nameContainsPIB'].value=v;}
function orbot_figurechildren(frm)
{if(document.forms[frm].elements['children']!=null&&document.forms[frm].elements['pkgchildage1']!=null)
{document.forms[frm].elements['children'].value="0";document.forms[frm].elements['pkgchildage1'].value="0";document.forms[frm].elements['pkgchildage2'].value="0";document.forms[frm].elements['pkgchildage3'].value="0";document.forms[frm].elements['pkgchildage1u2'].value="";document.forms[frm].elements['pkgchildage2u2'].value="";document.forms[frm].elements['pkgchildage3u2'].value="";var child=parseInt(document.forms[frm].elements['fakechildren'].value,10);var inflap=parseInt(document.forms[frm].elements['fakeinlap'].value,10);var infseat=parseInt(document.forms[frm].elements['fakeinseat'].value,10);var kids=child+inflap+infseat;document.forms[frm].elements['children'].value=kids;if(kids<4){var j=1;for(i=0;i<child;i++){document.forms[frm].elements['pkgchildage'+j].value=6;j++;}
for(i=0;i<inflap;i++){document.forms[frm].elements['pkgchildage'+j].value=1;document.forms[frm].elements['pkgchildage'+j+'u2'].value="lap";j++;}
for(i=0;i<infseat;i++){document.forms[frm].elements['pkgchildage'+j].value=1;document.forms[frm].elements['pkgchildage'+j+'u2'].value="seat";j++;}}}}