//<script language="Javascript">
var debug=false;
document.onkeydown=function() { 
 if (!debug){
 if (window.event && window.event.keyCode=='116') {
  alert('La tecla F5 está desactivada');
  window.event.keyCode='';
  return false;
 }
 if (window.event && window.event.keyCode=='115') {
  alert('La tecla F4 está desactivada');
  window.event.keyCode='';
  return false;
 }
 if (window.event && window.event.keyCode=='114') {
  alert('La tecla F3 está desactivada');
  window.event.keyCode='';
  return false;
 }
 if (window.event && window.event.keyCode=='113') {	 
  alert('La tecla F2 está desactivada');
  window.event.keyCode='';
  return false;
 }
 if (window.event && window.event.keyCode=='122') {	 
  alert('La tecla F11 está desactivada');
  window.event.keyCode='';
  return false;
 }
 
 if (window.event && window.event.ctrlKey && window.event.keyCode=='78') {
  alert('La tecla Control + N está descactivada');
  window.event.keyCode='';
  return false;
 }
 if (window.event && window.event.ctrlKey && window.event.keyCode=='85') {
  alert('La tecla Control + U está descactivada');
  window.event.keyCode='';
  return false;
 }
 if (window.event && window.event.altKey && window.event.keyCode=='37'){	
		alert('La tecla Alt + <- está desactivada')
	
 }
 if (window.event && window.event.altKey && window.event.keyCode=='39'){	
		alert('La tecla Alt + -> está desactivada')
	
 }
 }//if !debug
}
function normalizar(precio) {
	var precio2="";
	if (precio=="") {
		alert("");
		return false;
	} else {
		//precio=precio.replace(",",".");
		if (isNaN(precio)) {
			alert("Introduzca un importe válido");
			document.formul.Ds_Merchant_Amount.focus();
			document.formul.Ds_Merchant_Amount.focus();
			return false;
		} else {
			if (precio.indexOf(".") == -1){
					precio2 = precio + "00";
		   }  else if (precio.indexOf(".") != -1){				
					decimales = precio.substring(1+precio.indexOf("."),precio.length);
					precio2 = precio.substring(0,precio.indexOf(".")) + (decimales.length < 2 ? (decimales.length==0 ? "00":decimales + "0") : decimales.substring(0,2) );
		   }
		 }
	}
	return precio2;
}

//</script>
