<!--
function popup(url, w, h, scrollbars) {
	day = new Date();
	id = day.getTime();
	windowX = (window.screen.width - w)/2;
	windowY = (window.screen.height - h)/2;
	eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=' + scrollbars + ',location=0,statusbar=0,menubar=0,resizable=0,width=" + w + ",height=" + h + ",left=" + windowX + ",top=" + windowY + "');");
}

function cambiaclasse(elemento, classe) {
	//alert("Ciao");
	document.getElementById(elemento).attributes['class'].value = classe;
}

function GoAndClose(strUrl) {
	//window.alert(strUrl);
	window.opener.location=strUrl;
	window.close();
}

function getObject(obj) {  var theObj;  if(document.all) {    if(typeof obj=="string") {      return document.all(obj);    } else {      return obj.style;    }  }  if(document.getElementById) {    if(typeof obj=="string") {      return document.getElementById(obj);    } else {      return obj.style;    }  }  return null;}

function Contar(entrada,caracteres) {  var entradaObj=getObject(entrada);  var longitud=caracteres - entradaObj.value.length;  if(longitud <= 0) {    longitud=0;    entradaObj.value=entradaObj.value.substr(0,caracteres);  }}
//-->