// JavaScript Document


function openWin(pag,nomVentana, ancho, alto, posx, posy, propiedades) {
	//si left y top llegan en blanco, hay que centrarlo
	
	if (posx== 99) {
		//calculo de las coordenadas para centrar el popup
		//gets top and left positions based on user's resolution so hint window is centered.
		posx = (window.screen.width/2) - (ancho/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	}

	if (posy == 99)	{
		//calculo de las coordenadas para centrar el popup
		//gets top and left positions based on user's resolution so hint window is centered.
		posy = (window.screen.height/2) - (alto/2 + 30); //half the screen height minus half the new window height (plus title and status bars).
	}

	stringCaracteristicas=""
	stringCaracteristicas += "width=" + ancho 
	stringCaracteristicas += " ,height=" + alto
	stringCaracteristicas += propiedades
	stringCaracteristicas += " ,left=" + posx
	stringCaracteristicas += " ,top=" + posy
	stringCaracteristicas += " ,screenX=" + posx
	stringCaracteristicas += " ,screenY=" + posy
		 
	myWin=open(pag,nomVentana,stringCaracteristicas);
}
function requerimientos(){
	//alert("requerimientos");
	openWin('includes/requerimientos.php','MadDigital',431,242,99,99,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,titlebar=no')
}
function produccion(){
	//alert("produccions");
	openWin('includes/produccion.php','MadDigital',431,245,99,99,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,titlebar=no')
}
function terminos(){
	//alert("produccions");
	openWin('includes/terminos.php','MadDigital',431,180,99,99,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,titlebar=no')
}
function vervideo(id){
	//alert("id"+id);
	openWin('vervideo.php?id='+id,'MadDigital',425,500,99,99,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,titlebar=no')
}