
<!-- hide script from old browsers

	function openWinZoom(theURL,iWidth,iHeight) {
	  if (iWidth == -1) iWidth = 580;	  
	  if (iHeight == -1) iHeight = 500;
	  	  
	  newWin = window.open(theURL,'zoom','width=' + iWidth.toString() +',height=' + iHeight.toString() + ',directories=no,location=no,resizable=yes,menubar=no,scrollbars=yes,status=no,toolbar=no');
	  newWin.focus();
	}

	function display(message) { 
		var risposta = window.confirm(message);
		return risposta;
	} 

	function winStandard(sPercorso,sName,sOptions) {
	  winNew = open(sPercorso,sName,sOptions);
	  winNew.location.href = sPercorso;
	}

	function onKeyPressOnlyNumbers(e, bDec, bPunto, bMeno) {
		var key = window.event ? e.keyCode : e.which;
		var keychar = String.fromCharCode(key);
		
		if (bPunto == undefined) { bPunto = false; }
		if (bMeno == undefined) { bMeno = false; }
		
		var bCtrlKey = e.ctrlKey;
		if ((bCtrlKey == true) && ((keychar.toLowerCase() == "v") || (keychar.toLowerCase() == "x") || (keychar.toLowerCase() == "c"))) {
			return true; //ctrl+v; ctrl+x; ctrl+c
		}
		
		if ((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27)) { // control keys
		  return true;
		} else if ((("0123456789").indexOf(keychar) > -1)) { // numbers
		  return true;
		} else if ((bDec == true) && (keychar == ",")) { // decimal point jump
		  return true;
		} else if ((bDec == true) && (keychar == ".") && (bPunto == true)) { // decimal point jump
		  return true;
		} else if ((bMeno == true) && (keychar == "-")) { // meno
		  return true;
		} else {
		  return false;
		}
	}
	
//-->

