function openCalendarWindow(_form,_name1){ var url = "/hotelinfo/bsrch/calendarHelp.do?opForm=" + _form + "&opName=" + _name1; url+="&checkin=" + $('checkin').value; url+="&checkout=" + $('checkout').value; subWindow = window.open(url, "cal", "width=600,height=300,resizable=yes,scrollbars=yes,directories=no,menubar=no,location=no"); subWindow.focus(); } function doGetCheckout(){ if($('checkin').value!="" && $('nights').value!=""){ var url = "/hotelinfo/bsrch/rsv/steprsvutil.do?checkin=" + $('checkin').value + "&nights=" + $('nights').value; new Ajax.Request(url,{ onSuccess : function(transport){ var msg = transport.responseText || "no response text"; msg = msg.replace(/^\s+|\s+$/g, ""); if(msg!=""){ var obj = eval("(" + msg + ")"); $('checkout').update(obj.checkout); if(obj.checkout==""){ $('checkoutArea0').style.display='none'; $('checkoutArea1').style.display='none'; }else{ $('checkoutArea0').style.display=''; $('checkoutArea1').style.display=''; } } } }); } }