function abreVentana(login, clave){
	if(document.entrada.login.value != ""){
		document.entrada.submit();
	}else{
		alert("Debe rellenar el campo 'Usuario'");
	}
}


function nueva_ventana(url, ancho, alto, barra, name) {
	izquierda = (screen.width) ? (screen.width-ancho)/2 : 100
	arriba = (screen.height) ? (screen.height-alto)/2 : 100
	opciones = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + barra + ',resizable=0,width=' + ancho + ',height=' + alto + ',left=' + izquierda + ',top=' + arriba + ''
	window.open(url, name, opciones)
}
