function Check_Availability(elID) {
var myWidth = 500;
var myHeight = 450;
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
var ventana = window.open("Availability.aspx?id="+elID,"popup",',left='+myLeft+',top='+myTop+',width='+myWidth+',height='+myHeight+'scrollbars=1');
ventana.focus();
}

function Advert_Availability(elID) {
var myWidth = 550;
var myHeight = 550;
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
var ventana = window.open("AdvertAvailability.aspx?id="+elID,"popup",',left='+myLeft+',top='+myTop+',width='+myWidth+',height='+myHeight+'scrollbars=1');
ventana.focus();
}

function reservar(elID) {
var myWidth = 500;
var myHeight = 550;
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
var ventana = window.open("reservar.aspx?id="+elID,"popup",',left='+myLeft+',top='+myTop+',width='+myWidth+',height='+myHeight+'scrollbars=1');
ventana.focus();
}

function embedFlash(ubicacion,pelicula,ancho,alto){ 
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ancho+'" height="'+alto+'" title=""><param name="menu" value="false" /><param name="movie" value="'+ubicacion+pelicula+'.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" />'); document.write(''); document.write(''); document.write(''); document.write('<embed src="'+ubicacion+pelicula+'.swf" width="'+ancho+'" height="'+alto+'" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent">'); 
document.write('</object>'); 
}

function gotourl(valor) {
window.open(valor, 'paratupc',''); 
}

function showdiv(capa){ 
document.getElementById(capa).style.visibility="visible";
document.getElementById(capa).style.display="block";  
} 
function hidediv(capa){ 
document.getElementById(capa).style.visibility="hidden"; 
document.getElementById(capa).style.display="none";  
}

