<!--
function resalta(obj) {
	obj.style.fontWeight = "bold";
}

function noresalta(obj) {
	obj.style.fontWeight = "normal";
}

function buscarRef(){

	validaRef(document.forms["busRef"].claveRef.value,'/ATREA/public/UCAFichaOfertaBasica.jsp');
}

function warnInvalid (f, msg) {
	f.focus(); 
	f.select();
	alert(msg);
	return false;
}

function isEmpty(s) {return ((s	== null) || (s.length == 0));}

function isWhitespace(s) {	
	var whitespace = " \\t\\n\\r";
	if (isEmpty(s))	return true;
	for (var i=0; i	< s.length; i++){
			var c =	s.charAt(i);
			if (whitespace.indexOf(c) == -1) return false;
		}
		return true;
}

function Login() {
	if( isWhitespace( formLogin.usuario.value )){
		warnInvalid( formLogin.usuario,"Por favor, indique el identificador de usuario" );
		formLogin.usuario.focus();
		return false;
	}
	if( isWhitespace( formPass.valor.value )){
		warnInvalid( formPass.valor,"Por favor, indique la contraseņa" );
		formPass.valor.focus();
		return false;
	}
	formLogin.password.value = formPass.valor.value;
	formLogin.submit();
}

function gohome() {
	top.document.location = "/ATREA/public/A3/home.jsp";
}

function showComprar()
{
}

function showAlquilar()
{
}
//-->
