<!--
function viewphoto(form) {
	filename = eval("picture = form.tpicture.value;")
	if (filename != "") 
	window.open(filename,"name","status=no,toolbar=no,menu=no,scrollbars=yes,resizable=yes,width=500,height=400");
}

function openhotelpicview(thotelid) {
    var popurl="hotel_moreinfo_selectpic.cfm?hotelid=" + thotelid
	editwin=window.open(popurl,"hotelpicwindow","width=520,height=380,scrollbars=yes");
}

function openwindow(page) {
    var popurl=page
	editwin=window.open(popurl,"showwindow","width=550,height=380,scrollbars=yes");
}

function openwindowsize(page, twidth, theight) {
    var popurl=page;
	var option = "width="+twidth+",height="+theight+",scrollbars=yes"
	editwin=window.open(popurl,"showwindow",option);
}

function opennewwin(page, winname, twidth, theight) {
    var popurl=page;
	var option = "width="+twidth+",height="+theight+",scrollbars=yes"
	var full = "fullscreen,scrollbars=yes"
	editwin=window.open(popurl,winname ,option);
}

function callcancelselect()
{	
	document.body.onselectstart=cancelselect;
}	

function cancelselect(){return false}

function submitresult(gourl){
	document.form1.action=gourl;
	document.form1.submit();		
}

var statusmsg=""

function hidestatus(){
window.status=statusmsg
return true
}




//checks if browser is Netscape 2.0 since the options array properties don't work with Netscape 2.0x
function isBrowserSupp() 
{
if (((navigator.appVersion.indexOf("2.0")) != -1) && (navigator.appName.indexOf("Netscape") != -1))
        {
        return false;
        }
else 
        {
        return true;
        }
}

function openWindow(page, winname, twidth, theight) { //v2.0
//window.open(theURL,winName,features);
var popurl=page;
var option = "width="+twidth+",height="+theight+",scrollbars=yes"
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7;  // horizontal scrolling speed (higher = slower)
var leftdist = 0;    // distance to left edge of window
var topdist = 0;     // distance to top edge of window
if (document.all) {
var winwidth = twidth; //window.screen.availWidth - leftdist;
var winheight = theight; //window.screen.availHeight - topdist;
var sizer = window.open(popurl,winname,"left=" + leftdist + ",top=" + topdist + ",width=1,height=1,resizable=yes,scrollbars=yes");
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
sizer.resizeTo("1", sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
sizer.resizeTo(sizewidth, sizeheight);
}
//sizer.location = theURL;
}
else
//window.location = website;
window.open(popurl,winname ,option);
}

//-->
