function msj(s){
	window.status=s;
	return true;
}	

// fechas
var mydate=new Date();
var year=mydate.getYear();
if (year < 1000) year+=1900;
var day=mydate.getDay();
var month=mydate.getMonth();
var daym=mydate.getDate();
if (daym<10) daym="0"+daym;
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
//document.write("<small><p align=right>"+dayarray[day]+", "+daym+" de "+montharray[month]+" de "+year+"</small></p>");


function inicio_zona_scroll(top,left,clipx,clipy){
	if(typeof(bw)=='undefined') return;
	if(bw.ns4) {
		document.write('<ilayer name="contenedor" left="'+left+'" top="0" width="'+clipx+'" height="'+clipy+'" visibility="show" clip="'+clipx+','+clipy+'" id="contenedor">');
		document.write('<layer name="contenido" visibility="show" id="contenido">');
	} else {
		document.write('<div id="contenedor" name="contenedor" style="top:'+top+'px;">');
		document.write('<div name="contenido" id="contenido">');
	}
}

function fin_zona_scroll(){
	if(typeof(bw)=='undefined') return;
	if(bw.ns4) document.write('</layer></ilayer>');
	else document.write('</div></div>');
}

function precargar() {
	if(document.images) {
	var s=precargar.arguments;
	if(document.precargadas==null)
	 document.precargadas = new Array();
	var i=document.precargadas.length;
	with(document)
	 for(var j=0;j<s.length;j++,i++){
	   precargadas[i] = new Image;
	   precargadas[i].src = s[j];
	  }
	}
}

function d_obj(id){
	var o;
	if (document.all) o = document.all(id);
	else if (document.getElementById) o = document.getElementById(id); 
	else if (document.layers) o = document.layers[id];
	if (o) return(o);
	return(null);
}

function vcreditos(){
	var w=window.open('/creditos.htm','creditos','width=214,height=232,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,resizeable=no,directories=no');
	w.focus;
}

function checkForEnter(evt) {
	evt = (evt) ? evt : event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if (charCode == 13) return false;
	return true;
}

function ir_a_inp(evt,s){
	evt = (evt) ? evt : event
	var charCode = (evt.which) ? evt.which : evt.keyCode
	if (charCode == 13) {
		foco_en_inp(s);
		return false;
	}
	return true;
}

function foco_en_inp(s){
	var o=eval('document.formulario.'+s);
	if(document.formulario && o) o.focus();
}

function select_inp(s){
	var o=eval('document.formulario.'+s);
	if(document.formulario && o) o.select();
}