// JavaScript Document

function ventana(URL)
{
	var tb = 'no';
	var lc = 'no';
	var dr = 'no';
	var st = 'no';
	var mb = 'no';
	var sb = 'no';
	var rz = 'no';
	var ch = 'no';
	var wd = 550;
	var hg = 400;
	var lf = (screen.width) ? (screen.width - wd) / 2 : 100;
	var tp = (screen.height) ? (screen.height - hg) / 2 : 100;
	var at = 'toolbar='+tb+',location='+lc+',directories='+dr+',status='+st+',menubar='+mb+',scrollbar='+sb+',resizable='+rz+',copyhistory='+ch+',width='+wd+',height='+hg+',left='+lf+', top='+tp+'';
	window.open(URL, "Mail",at);
}

function ventanamail(URL)
{
	var tb = 'no';
	var lc = 'no';
	var dr = 'no';
	var st = 'no';
	var mb = 'no';
	var sb = 'no';
	var rz = 'no';
	var ch = 'no';
	var wd = 550;
	var hg = 400;
	var lf = (screen.width) ? (screen.width - wd) / 2 : 100;
	var tp = (screen.height) ? (screen.height - hg) / 2 : 100;
	var at = 'toolbar='+tb+',location='+lc+',directories='+dr+',status='+st+',menubar='+mb+',scrollbar='+sb+',resizable='+rz+',copyhistory='+ch+',width='+wd+',height='+hg+',left='+lf+', top='+tp+'';
	window.open(URL, "Mail",at);
}

function fecha()
{
var mes = new Array( "Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var dia = new Array( "Domingo","Lunes","Martes","Miercoles","Jueves","Viernes", "S&aacute;bado")
var dt = new Date();
document.write("Grocio Prado, " + dia[dt.getDay()] + " " +dt.getDate() + " de " + mes[dt.getMonth()] + " de " + dt.getYear());
}

document.oncontextmenu = function(){return false;};
document.onselectstart = function(){return false;};
window.onmousedown = function(){return false;};















function expandingWindow(website) {
	var winwidth = 550//window.screen.availWidth - leftdist;
	var winheight = 400//window.screen.availHeight - topdist;
	var heightspeed = 10; // vertical scrolling speed (higher = slower)
	var widthspeed = 10; // horizontal scrolling speed (higher = slower)
	var leftdist = (screen.width) ? (screen.width - winwidth) / 2 : 100;
	var topdist = (screen.height) ? (screen.height - winheight) / 2 : 100;
	if (document.all) {
		var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes");
		for (sizeheight = 1; sizeheight <winheight; sizeheight += heightspeed) {
			sizer.resizeTo("1", sizeheight);
		}
		for (sizewidth = 1; sizewidth <winwidth; sizewidth += widthspeed) {
			sizer.resizeTo(sizewidth, sizeheight);
		}
		sizer.location = website;
	}
	else
		window.location = website;
}




