
function noServicio(str){
alert(str);
}

<!-- Abrir ventanas 
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!-- precarga de imagenes
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->

<!-- Validacion de formulario
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' debe contener dirección de e-mail.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' debe contener números.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' debe contener números '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' es requqerido.\n'; }
  } if (errors) alert('Han ocurrido errores:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->

//funcion para abrir un child windows centrada en la pantalla. Se le puden pasar las dimensiones
//en pixels ( siendo estas mayor que uno ) o como porcentaje ( un numero entre 0 y 1) 

function openCenteredWindow(url,width,height,name,parms) 
{
		if(!parms) 
			parms = "status=no,resizable=no,dependent=yes,alwaysRaised=yes,scrollbars=yes";

		//hago el calculo cuando son porcentajes
		if (height <= 1) { height = Math.floor(screen.height * height); }
		if (width <= 1) { width = Math.floor(screen.width * width); }

		var left = Math.floor( (screen.width - width) / 2);
	    var top = Math.floor( (screen.height - height) / 2);
		var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
		if (parms) { winParms += "," + parms; }
		var win = window.open(url, name, winParms);
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		//return win;
}



