document.write("
"); document.write("
"); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write("
"); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write("
"); document.write("

"); document.write(" Largest selection of Poconos Hotels, Resorts and Lodging in the Poconos

"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write(" "); document.write("
Nights"); document.write(" Adults"); document.write(" "); document.write(" Children"); document.write(" Rooms"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("

Welcome to the "); document.write(" Poconos -Find a place to stay... "); document.write("

"); document.write(" <<< Click a Date

Need Help?"); document.write(" 1-800-805-3559

"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); var previous = ""; var previous_date = null; var previous_nights = null; var month = null; var year = null; var day = null; function update_calendar(m,y) { previous_date = null; previous_nights = null; try { if (window.XMLHttpRequest) { dataRequest = new XMLHttpRequest(); dataRequest.onreadystatechange=response_handler; if(m == 0 && y == 0) dataRequest.open("POST","/reservations/calendar.php",true); else dataRequest.open("POST","/reservations/calendar.php?m="+m+"&y="+y,true); dataRequest.send(null) } else if (window.ActiveXObject) { dataRequest = new ActiveXObject("Microsoft.XMLHTTP") if (dataRequest) { dataRequest.onreadystatechange=response_handler; if(m == 0 && y == 0) dataRequest.open("POST","/reservations/calendar.php",true); else dataRequest.open("POST","/reservations/calendar.php?m="+m+"&y="+y,true); dataRequest.send(null); } } } catch(err) { alert("Javascript Error(submit_form):\r\n"+err.description); } } function response_handler() { if (dataRequest.readyState == 4) { strData = dataRequest.responseText; try { //eval(dataRequest.responseText); document.getElementById('calendar').innerHTML = strData; } catch(err) { } dataRequest = null; } } function update_inventory(m,d,y,a,c,r,n) { document.getElementById('availability').innerHTML = "

Searching...

"; try { if (window.XMLHttpRequest) { dataRequest = new XMLHttpRequest(); dataRequest.onreadystatechange=inventory_handler; dataRequest.open("POST","/reservations/availability.php?m="+m+"&d="+d+"&y="+y+"&a="+a+"&c="+c+"&n="+n+"&r="+r,true); dataRequest.send(null) } else if (window.ActiveXObject) { dataRequest = new ActiveXObject("Microsoft.XMLHTTP") if (dataRequest) { dataRequest.onreadystatechange=inventory_handler; dataRequest.open("POST","/reservations/availability.php?m="+m+"&d="+d+"&y="+y+"&a="+a+"&c="+c+"&n="+n+"&r="+r,true); dataRequest.send(null); } } } catch(err) { alert("Javascript Error(submit_form):\r\n"+err.description); } } function inventory_handler() { if (dataRequest.readyState == 4) { strData = dataRequest.responseText; try { //eval(dataRequest.responseText);alert("back"); document.getElementById('availability').innerHTML = strData; } catch(err) { } dataRequest = null; //document.getElementById('availability').focus(); } } function availability(m,d,y,e) { frm = document.forms['params']; month = m; day = d; year = y; adults = frm.elements['adults'].value; children = frm.elements['children'].value; nights = frm.elements['nights'].value; rooms = frm.elements['rooms'].value; update_inventory(m,d,y,adults,children,rooms,nights); msg = "Checking Inventory:\r\n"; msg += "Date:"+m+"/"+d+"/"+y+"\r\n"; msg += "Adults:"+adults+"\r\n"; msg += "Children:"+children+"\r\n"; msg += "Rooms:"+rooms+"\r\n"; msg += "Nights:"+nights+"\r\n"; //alert(msg); } function date_click(e) { var targ; var l = null; if(e == -1) { targ = previous_date; } else { if(!e) var e = window.event; if(e.target) targ = e.target; else if(e.srcElement) targ = e.srcElement; if(targ.nodeType == 3) targ = targ.parentNode; } if(previous_date != null && previous_nights != null) { l = previous_date; for(i = 0; i < previous_nights; i++) { if(l && l.nodeName == "A") l.style.color = 'blue'; l.parentNode.style.background = '#93E5C7'; try { l = l.parentNode.nextSibling.firstChild; if(l.nodeName != "A") l = l.parentNode.parentNode.nextSibling.firstChild.firstChild; } catch(e) { try { l = l.parentNode.parentNode.nextSibling.firstChild.firstChild; } catch(e) { //if(l.nodeName != "A") break; } // previous_date = targ; // previous_nights = document.forms['params'].elements['nights'].value; } } } previous_date = targ; previous_nights = document.forms['params'].elements['nights'].value; l = targ; //alert(l.nodeName ); for(i = 0; i < document.forms['params'].elements['nights'].value; i++) { if(l && l.nodeName == "A") l.style.color = 'red'; l.parentNode.style.background = '#FFFF99'; try { l = l.parentNode.nextSibling.firstChild; if(l.nodeName != "A") l = l.parentNode.parentNode.nextSibling.firstChild.firstChild; } catch(e) { try { l = l.parentNode.parentNode.nextSibling.firstChild.firstChild; } catch(e) { //if(!l) break; } } } } function change_nights(e) { //alert('here'); date_click(-1); availability(month,day,year,null); } function change_adults() { availability(month,day,year,null); } function change_children() { availability(month,day,year,null); } function change_rooms() { availability(month,day,year,null); } /****************************************************************************************/ function msg_box_open(str,w,h) { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( window.document.body && ( window.document.body.clientWidth || window.document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } obj1 = document.getElementById('msg_window'); obj1.style.height = h; obj1.style.width = w; width = parseInt(obj1.style.width,10); height = parseInt(obj1.style.height,10); otop = ((myHeight/2) + (window.pageYOffset ? window.pageYOffset : document.getElementsByTagName("body")[0].scrollTop)) - (height/2); oleft = ((myWidth/2) + (window.pageXOffset ? window.pageXOffset : document.getElementsByTagName("body")[0].scrollLeft)) - (width/2); frames['msg_window'].document.write("

One Moment...

"); if(str != "") { frames['msg_window'].document.location = str; } obj1.style.visibility = 'visible'; obj1.style.display='block'; obj1.style.left = oleft; obj1.style.top = otop; obj1.style.width = width; obj1.style.height = height; if(!event) var event = window.event; if(event) event.cancelBubble = true; if(event) event.returnValue = false; } /****************************************************************************************/ function msg_box_close() { frames['msg_window'].document.location = "about:blank"; obj = document.getElementById('msg_window'); obj.style.visibility = 'hidden'; obj.location = 'about:blank'; if(!event) var event = window.event; if(event) event.cancelBubble = true; if(event) event.returnValue = false; } /****************************************************************************************/ function insert_msg_box() { document.write(""); //return false; } insert_msg_box();update_calendar(0,0);