function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }document.body.className = document.body.className + ' claro';dojo.require("dijit.form.DateTextBox");dojo.require("dijit.form.Button");dojo.require("dijit.form.FilteringSelect");var sessionID = readCookie('THORsessionID'); if (!sessionID){ var sessionID = Math.floor(Math.random()*999999) document.cookie = 'THORsessionID = ' + sessionID + ';' } function thgieh_robertsbrook1178(){ //alert('wtfxxxrobertsbrookguesthouse.co.uk'); var params = window.location.search.substring( 1 ).split( '&' ); var height; var thorID; for( var i = 0, l = params.length; i < l; ++i ) { var parts = params[i].split( '=' ); switch( parts[0] ) { case 'height': height = parseInt( parts[1] ); break; case 'thorID': thorID = parts[1]; break; } } if( typeof( height ) == 'number' && thorID == 'robertsbrook1178' ) { height = height + 20; window.parent.parent.updateIFRM_availability_robertsbrook1178( height ); } else{window.updateIFRM_availability_robertsbrook1178( 0 );} } function updateIFRM_availability_robertsbrook1178( height ) { // alert('wtf2xxxrobertsbrookguesthouse.co.uk'); var height_px = height + 'px'; var thor_iframe = document.getElementById( 'frame_availability_robertsbrook1178' ); // thor_iframe.setAttribute( 'height', height ); thor_iframe.style.height = height_px; if (height != 0){ document.getElementById('availability_robertsbrook1178').scrollIntoView(true); //alert(height); document.getElementById('avform_robertsbrook1178').style.display = 'none'; } } function display_thor_availability_robertsbrook1178 (){ var open = readCookie('THOR_open'); var containerDiv = document.getElementById('availability_robertsbrook1178'); var numOfLinks = 0; var linkingcode = containerDiv.getElementsByTagName("a"); for (var i=0; i'; }else {searchbarHTML += '
';searchbarHTML += '
';searchbarHTML += '
';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '
';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '';searchbarHTML += '
';searchbarHTML += '
';searchbarHTML += '
';searchbarHTML += '';searchbarHTML += '
';searchbarHTML += '';}}containerDiv.innerHTML = searchbarHTML;}function sendUiMessage_robertsbrook1178 (form){ // document.getElementById('avform').innerHTML = 'checking'; document.getElementById('wait').style.display = 'block'; // var roomVar = form.room.value; var dateVar = dijit.byId('THORdate_robertsbrook1178').attr('value'); dateVar = dojo.date.stamp.toISOString(dateVar, {selector: 'date'}); var nightsVar = form.nights.value; var thorIDVar = form.thorID.value; var styleVar = form.domain.value; var sizeVar = form.size.value; var selflocation = self.location; var selflocation = String(selflocation); var selflocation = selflocation.replace("http://", ""); //alert('sendUi4'); document.getElementById('frame_availability_robertsbrook1178').src = "http://www.thor.org.uk/widget/availability/v2/basic.php?" + "date=" + dateVar + "&nights=" + nightsVar + "&thorID=" + thorIDVar + "&domain=" + styleVar + "&size=" + sizeVar + "&selflocation=" + selflocation + "&sessionID=" + sessionID;}