function availCal_onclick() { var calWidth = 602 var calHeight = 360 browsername=navigator.appName; if (browsername.indexOf("Netscape")!=-1) {browsername="NS"} else {if (browsername.indexOf("Microsoft")!=-1) {browsername="MSIE"} else {browsername="N/A"}}; //detect the browserversion browserversion="0"; if (navigator.appVersion.indexOf("2.")!=-1) {browserversion="2"}; if (navigator.appVersion.indexOf("3.")!=-1) {browserversion="3"}; if (navigator.appVersion.indexOf("4.")!=-1) {browserversion="4"}; if (navigator.appVersion.indexOf("5.")!=-1) {browserversion="5"}; if (navigator.appVersion.indexOf("6.")!=-1) {browserversion="6"}; // set the height and width based on the browser if (browsername=="NS") {calHeight = 400}; if (browsername=="MSIE") { if (browserversion < 6) {calHeight = 400} } if (browsername=="N/A") {calHeight = 400}; var posY = Math.round((screen.availWidth - calWidth) / 2); var posX = Math.round((screen.availHeight - calHeight) / 2); self.name = "reserve"; var newURL = "http://www.inntopia.com/inntopia/templates/search/availabilityss.xml?supplierid=" + document.frmFindRoom.SupplierId.value + "&salesid=" + document.frmFindRoom.salesid.value var options = "status=no, titlebar=no, screenX=" + posX + ", screenY=" + posY + " , top=" + posX + ", left=" + posY + ", sizable=no, width=" + calWidth + ", height=" + calHeight var windowname = "availcal" var command = "window.open('" + newURL + "', '', '" + options + "')"; eval(command); } function inntopiaCheck(flink) { document.write('

'); }