function gocesnet(){
	ok = true;
	if (empty(document.validarse.USERID.value)) {
		alert("Debe teclear nombre de Usuario");
		ok = false;
	}
	else if (empty(document.validarse.PASSWORD.value)) {
		alert("Debe teclear contraseņa");
		ok = false;
	}
	if (ok == true) {
		var str = "left=0,screenX=0,top=0,screenY=0";
		


		asignarVersionNavegador();
			    
		
		if (window.screen) {
		  var ah = screen.availHeight - 50;
		  var aw = screen.availWidth - 10;
		  str += ",height=" + ah;
		  str += ",innerHeight=" + ah;
		  str += ",width=" + aw;
		  str += ",innerWidth=" + aw;
		  str += ",status=yes";
		} else {
		  str += ",resizable"; 
		}
		function launchFull(url, name) {
		  return window.open('', name, str);
		}
		
		var win = launchFull("", "cesnet");
		document.validarse.submit();		
		
		
	}
}

function empty(inputStr) {
	if (inputStr == "" || inputStr == null) {
		return true
	}
	return false
}



function asignarVersionNavegador()
{
	var b = navigator.appName

	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = ((this.version.indexOf('MSIE 5')>0)||(this.version.indexOf('MSIE 6')>0)||(this.version.indexOf('MSIE 7')>0))
	if (!(this.ie5))
		document.validarse.VERSION_NAVEGADOR.value = 3;	
	if(this.ie4 || this.ns4)
	{
		document.validarse.VERSION_NAVEGADOR.value = 3;	
	}
	else if(this.ie5 || this.ns5)
	{
		document.validarse.VERSION_NAVEGADOR.value = 5;	
	}
	else if((!(this.ns)) || (!(this.ie)))
	{
		document.validarse.VERSION_NAVEGADOR.value = 3;
	}
		
}
