function PopupSSL() 
{
	popupWinSSL = window.open('https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=www.hotelplanner.com&lang=en', 'SSL','location=yes,scrollbars=yes,width=560,height=555,resizable=yes'); 
} 
function PopupTripadvisor() 
{
	popupTripA = window.open('http://www.tripadvisor.com', 'TA','location=yes,scrollbars=yes,width=1000,height=700,resizable=yes'); 
} 
function Rcertify() 
{
	popupWinBBB = window.open('http://www.bbbonline.org/cks.asp?id=103112112331237107', 'Participant','location=yes,scrollbars=yes,width=600,height=600'); 
}
function addToFavorites(urlAddress, pageName) 
{
	if (window.external)
		window.external.AddFavorite(urlAddress,pageName);
	else 
		alert("Sorry! Your browser doesn't support this function."); 
}


function show(idLayer) 
{
	cLayer=bVer.dom?document.getElementById(idLayer).style:bVer.ie4?document.all[idLayer].style:bVer.ns4?idParent?document[idParent].document[idLayer]:document[idLayer]:0;
	cLayer.display='block';
}

function hide(idLayer) 
{
	cLayer=bVer.dom?document.getElementById(idLayer).style:bVer.ie4?document.all[idLayer].style:bVer.ns4?idParent?document[idParent].document[idLayer]:document[idLayer]:0;
	cLayer.display='none';
}

function chkBrowser() 
{
	this.ver=navigator.appVersion;
	this.dom=document.getElementById?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bVer=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
	return this;
}
bVer=new chkBrowser();
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
bVerOK = ((document.all)? true:false)

function change(id, newClass) 
{
	identity=document.getElementById(id);
	identity.className=newClass;
}

function setIdProperty(id,property,value) {
	var styleObject = document.getElementById( id );
	if (styleObject != null) {
		styleObject = styleObject.style;
		styleObject[ property ] = value;
	}
}

function switchDisplay(thisId,value) {
	if (document.layers) {
		document.layers[thisId].display = value;
	} else if(document.getElementById) {
		setIdProperty(thisId,"display",value);
	} else {
		document.all[thisId].style.display = value;
	}
}

function checkScreen()
{
	try
    {
		var screenHttp;
		if (window.XMLHttpRequest)
		{
		  // code for IE7+, Firefox, Chrome, Opera, Safari
		  screenHttp=new XMLHttpRequest();
		}
		else if (window.ActiveXObject)
		{
		  // code for IE6, IE5
		  screenHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		else
		{
		  return;
		}
		if (typeof('screen.width') != "undefined")
		{
			screenHttp.open("GET","/RecordScreen.cfm?ScreenWidth="+screen.width+"&ScreenHeight="+screen.height,true);
			screenHttp.send(null);
		}
    }
	catch(err)
    { }		
}
