﻿var bigpicWin = null;

function AmpliaImg(aImg,aAncho,aAlto){
//url = "../Imagenes/Grande/" + foto
//aImg = "../imagenes/Carteleria/Grande/C001.jpg"
picwidth=aAncho;
picheight=aAlto;

//description="Imagen Ampliada";

if (!bigpicWin || bigpicWin.closed)
{
usrwidth = screen.width;
usrheight = screen.height;
winwidth = picwidth;
winheight = picheight;
var X = (usrwidth - winwidth) / 2;
var Y = (usrheight - winheight) / 2;
properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+winwidth+",height="+winheight+",";
checkie = navigator.appName.indexOf("icrosoft");
if (checkie == -1)
{
properties = properties+"screenX="+X+",screenY="+Y;
}
else
{
properties = properties+"left="+X+",top="+Y;
}
bigpicWin = window.open('','bigpicWin',properties);
bigpicWin.document.open();
bigpicWin.document.write('<HTML><HEAD>');
bigpicWin.document.write('<TITLE>'+description+'</TITLE>');
bigpicWin.document.write('</HEAD>');
bigpicWin.document.write('<BODY MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0">');
bigpicWin.document.write('<A HREF="JavaScript:self.close()"><IMG SRC="'+aImg+'" HSPACE="0" VSPACE="0" BORDER="0"></A>');
bigpicWin.document.write('</BODY>');
bigpicWin.document.write('</HTML>');
bigpicWin.document.close()
bigpicWin.focus();
}
else
{
bigpicWin.focus();
}

}

function focoGanado(campo, valor){
    if(campo.value==valor){
		    campo.value = '';
    }
}
function focoPerdido(campo, valor){
    if(campo.value==''){
			campo.value = valor;
    }
}
	  
	  
function AumentaTexto(aTipo){
 var obj = document.getElementById("frmGeneral");
 var fontsize = obj.style.fontSize;
 fontsize = fontsize.replace('em','');

if (aTipo=="Aumenta"){
    if (fontsize < 1.2){
        fontsize = parseFloat(fontsize) + parseFloat(0.1) ;
    }
}
else{
    if (fontsize > 0.9)
    fontsize = parseFloat(fontsize) - parseFloat(0.1);
}
 
 obj.style.fontSize = fontsize + "em";
}