<!--
function ampliar_imagen(url, anchura, altura) {
	opciones = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + (anchura) + ",height=" + (altura + 95);
	imgWindow = window.open(url, "PopUpImgGen", opciones);
	imgWindow.resizeTo(anchura + 7, altura + 95);
	imgWindow.focus();
}

function ampliar_banner(url, anchura, altura) {
	opciones = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + (anchura) + ",height=" + (altura + 29);
	banWindow = window.open(url, "PopUpBanGen", opciones);
	banWindow.resizeTo(anchura + 10, altura + 29);
	banWindow.focus();
}

function openPopUp(url, name, ancho, alto, scrollbars) {
	opciones = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scrollbars + ",resizable=no,width=" + ancho + ",height=" + alto + ",left=" + ((screen.width - ancho) / 2) + ",top=" + ((screen.height - alto) / 3);
	window.name = "contPopUp" + name;
	eval("contentPopUp" + name + " = window.open(url, 'cont" + name + "', opciones)");
	eval("contentPopUp" + name + ".focus();");
}

function openWin(url, name, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable) {
	var finalWidth  = (width  > screen.width ) ? screen.width  : width;
	var finalHeight = (height > screen.height) ? screen.height : height;
	strOptions  = "toolbar="     + ((toolbar     == 1) ? "yes" : "no") + ","
	strOptions += "location="    + ((location    == 1) ? "yes" : "no") + ","
	strOptions += "directories=" + ((directories == 1) ? "yes" : "no") + ","
	strOptions += "status="      + ((status      == 1) ? "yes" : "no") + ","
	strOptions += "menubar="     + ((menubar     == 1) ? "yes" : "no") + ","
	strOptions += "scrollbars="  + ((scrollbars  == 1) ? "yes" : "no") + ","
	strOptions += "resizable="   + ((resizable   == 1) ? "yes" : "no") + ","
	strOptions += "width="       + finalWidth  + ","
	strOptions += "height="      + finalHeight + ","
	strOptions += "left="        + ((screen.width  - finalWidth ) / 2) + ","
	strOptions += "top="         + ((screen.height - finalHeight) / 3)
	eval("win" + name + " = window.open(url, '" + name + "', strOptions)");
	eval("win" + name + ".focus();");
}
//-->
