// GRAPHA INTUITIVE www.grapha.net
// Departamento de Desarollo
// Autor: Enrique Valentin Morganizo

var gatorade;
function ventana(URL,caracteristicas,alto2,ancho2){
	var ancho = ancho2;
	var alto = alto2;
	var iMyWidth = (window.screen.width - ancho) /2;
	var iMyHeight = (window.screen.height - alto) / 2;
	if (gatorade){
		if (gatorade.closed){
			gatorade = open(URL,'GATORADE','' + caracteristicas + ',width='+ ancho2 +',height='+ alto2 +',top=' + iMyHeight + ',left=' + iMyWidth + '');
		}else{
			gatorade.close();
			gatorade = open(URL,'GATORADE','' + caracteristicas + ',width='+ ancho2 +',height='+ alto2 +',top=' + iMyHeight + ',left=' + iMyWidth + '');
		}
	}else{
		gatorade = open(URL,'GATORADE','' + caracteristicas + ',width='+ ancho2 +',height='+ alto2 +',top=' + iMyHeight + ',left=' + iMyWidth + '');
	}
	gatorade.focus();
	gatorade.focus();		
}

var gatoradelegal;
function ventana2(URL,caracteristicas,alto2,ancho2){
	var ancho = ancho2;
	var alto = alto2;
	var iMyWidth = (window.screen.width - ancho) /2;
	var iMyHeight = (window.screen.height - alto) / 2;
	if (gatoradelegal){
		if (gatoradelegal.closed){
			gatoradelegal = open(URL,'gatoradelegal','' + caracteristicas + ',width='+ ancho2 +',height='+ alto2 +',top=' + iMyHeight + ',left=' + iMyWidth + '');
		}else{
			gatoradelegal.close();
			gatoradelegal = open(URL,'gatoradelegal','' + caracteristicas + ',width='+ ancho2 +',height='+ alto2 +',top=' + iMyHeight + ',left=' + iMyWidth + '');
		}
	}else{
		gatoradelegal = open(URL,'gatoradelegal','' + caracteristicas + ',width='+ ancho2 +',height='+ alto2 +',top=' + iMyHeight + ',left=' + iMyWidth + '');
	}
	gatoradelegal.focus();
	gatoradelegal.focus();
 	document.f.legal.checked=true;
}