	var chat_url = "http://www.plazatecnologica.com/pt/X7Chat/index.php";
	var mail_url = "http://www.plazatecnologica.com/pt/Intranet/PlazaMail.php";
        var StandarFeatures = "scrollbars=yes,resizable=yes";
	var ChatFeatures = StandarFeatures + ",width=760,height=500,top=0";
	var ChatTittle = "Plaza Tecnologica - Area de Chat";
	var MailFeatures = StandarFeatures + ",width=760,height=500,top=0";
	var MailTittle = "Plaza Tecnologica - Email de Usuarios";

function check_the_form() { 
	var the_error='';
	var the_person=document.login.user1.value;
	var the_password=document.login.pass.value;
	var validperson="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
	var validpassword="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
	if (the_person.length < 1){
		the_error = the_error + "-El alias debe tener al menos 1 caracter\n";
	}
	for (var i=0; i<the_person.length; i++) {
		if (validperson.indexOf(the_person.charAt(i)) < 0) {
			the_error = the_error + "-No use espacios, acentos, ni caracteres especiales en el alias\n";
		}
	}

	for (var i=0; i<the_password.length; i++) {
		if (validpassword.indexOf(the_password.charAt(i)) < 0) {
			the_error = the_error + "-Lo sentimos, debe ingresar la clave para darle acceso\n";
		}
	}
	if (the_error!=''){
		alert('Por favor:\t\t\t\t\t\n\n'+the_error)
	}
	document.return_the_value = (the_error=='');
}

function MM_openBrWindow(theURL,winName) { //v2.0
	//var NewWin;
	window.open(theURL,winName,"scrollbars=yes,resizable=yes,width=760,height=500,top=0,left=20");
	//NewWin.focus();
}

function ventana_nueva(url,titulo, ancho, alto, scroll){
	if( window.screen.availWidth && window.screen.availHeight ){
		posy = window.screen.availHeight;
		posy = (posy - alto) / 2
		posx = window.screen.availWidth;
		posx = (posx - ancho) / 2
	}
	window.open(url, titulo,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scroll + ',resizable=yes,width=' + ancho + ',height=' + alto + ',top='+ posy +',left='+ posx );
}

function OutputTitle(){
	if (document.title != '' ){
	document.formemail.PageTitle.value = document.title;
	}
return;
}
function pago_sunat(){
   window.open("http://www.sunat.gob.pe/orientacion/cronogramas/2003/setiembre/setiembre.html", "Menu", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=700, height=200")
}
