function showDHTML(param,type,path){
	var browserName=navigator.appName; 
	if (browserName=="Microsoft Internet Explorer"){
		var width='564px';
		var height= '532px';
	}
	else{
		var width='573px';
		var height= '548px';
	}
	if (type==1){
		var url1 = escape('map_hotel.php?info='+param) ;	
	}
	else if (type==2){	
		var url1 = escape('https://www.parksleepfly.com/reservation/hotel_details.php?hotelID='+param) ;	
	}	
	else if (type==3){	
		var url1 = escape('feed.php') ;	
		var width='580px';
		var height= '345px';
	}	
	else if (type==4){	
		var url1 = escape('mail_to_friend.php') ;	
		var width='585px';
		var height= '345px';
	}	
	else{
		return ;
	}
	var url = 'iframe.php?info='+url1+'&width='+width+'&height='+height+'&bn='+browserName ;	
	window.oWindow = dhtmlmodal.open("oWindow", "iframe", url, "", "width="+width+",height="+height+",center=1,resize=0,scrolling=0", "recal") ;
	window.oWindow.statusarea.style.display = 'none' ;
	window.oWindow.handle.style.display = 'none' ;
	window.oWindow.contentarea.style.paddingTop = '0px' ;
	window.oWindow.contentarea.style.paddingLeft = '0px' ;
	window.oWindow.contentarea.style.paddingRight = '0px' ;
	window.oWindow.contentarea.style.paddingBottom = '0px' ; 
	window.oWindow.contentarea.style.borderStyle = 'none' ;  
	window.oWindow.style.borderStyle = 'none' ; 
	return false ;
}
function createCenterWindow(Url, WindowName, Features, W, H){	
		var top = 0 ;
		var left = 0 ;
		var hToWin = null ;
		
		if (screen.availWidth) left = (screen.availWidth/2) - (W/2)
		if (screen.availHeight) top = (screen.availHeight/2) - (H/2)
		
		FeaturesArray = Features.split(",") ;
		FeaturesArray[FeaturesArray.length] = "width=" + W ;
		FeaturesArray[FeaturesArray.length] = "height=" + H ;		
		FeaturesArray[FeaturesArray.length] = "top=" + top ;
		FeaturesArray[FeaturesArray.length] = "left=" + left ;
		hToWin = window.open('Loading.html', WindowName, FeaturesArray.join(",")) ;
		try{hToWin.document.open(); hToWin.document.title='Loading...'; hToWin.document.close();}catch(err){}
		hToWin.location.href=Url;
		return hToWin;
}

function createWindow(Url, WindowName, Features, W, H){	
		var top = 0 ;
		var left = 0 ;
		var hToWin = null ;
		
		FeaturesArray = Features.split(",") ;
		FeaturesArray[FeaturesArray.length] = "width=" + W ;
		FeaturesArray[FeaturesArray.length] = "height=" + H ;		
		FeaturesArray[FeaturesArray.length] = "top=" + top ;
		FeaturesArray[FeaturesArray.length] = "left=" + left ;
		hToWin = window.open('Loading.html', WindowName, FeaturesArray.join(",")) ;
		try{hToWin.document.open(); hToWin.document.title='Loading...'; hToWin.document.close();}catch(err){}
		hToWin.location.href=Url;
		return hToWin;
}

function printReservation(res){
	var w = screen.availWidth ;
	var h = screen.availHeight ;
	var htw = createCenterWindow('printReservation.php?res='+res, '', 'alwaysRaised=yes,titlebar=no,modal=yes,centerscreen=yes,chrome=yes,fullscreen=no,minimizable=no,dialog=yes,dependent=yes,personalbar=no,statusbar=no,status=no,toolbar=no,location=no,menubar=yes,directories=no,resizable=no,scrollbars=yes', w, h) ;
	if(htw.focus)htw.focus();
}

function openAirport(url){
	var w = 400 ;
	var h = 500 ;
	var htw = createWindow('http://www.airportparkingreservations.com/ParkingLotInfo?'+url, '', 'alwaysRaised=yes,titlebar=no,modal=yes,centerscreen=yes,chrome=yes,fullscreen=no,minimizable=no,dialog=yes,dependent=yes,personalbar=no,statusbar=no,status=no,toolbar=no,location=no,menubar=no,directories=no,resizable=no,scrollbars=yes', w, h) ;
	if(htw.focus)htw.focus();
}