<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

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 una dirección de correo válida.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' debe ser un dato numérico.\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 un número entre '+min+' y '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' es requerido.\n'; }
  } if (errors) alert('No se puede enviar, verifique lo siguiente:\n\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function tmt_winLoad(id,u){
	var d=eval(id)==null||eval(id+".closed");
	if(!d){eval(id+".location.href='"+u+"'")}
}
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function flvFTFO1(){//v1.11
// Copyright 2003, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
if (!document.layers){var v1=arguments,v2=MM_findObj(v1[0]),v3,v4,v5,v6,v7,v8,v9,v10;if (v2){for (v3=1;v3<v1.length;v3++){v6=v1[v3].split(",");v7=v6[0];v8=v6[1];v10=false;for (v4=0;v4<v2.length;v4++){v5=v2[v4];if (v5.id==v7||v5.name==v7){v10=true;break;}}if (!v10){v5=MM_findObj(v7);v10=(!v5)?false:true;}if (v10){if (v8=="t"){v5.disabled=!v5.disabled;}else {v9=(v8=="e")?false:true;v5.disabled=v9;}}}}}}

if (top.location != self.location){
	top.location = self.location;
}
function checkKey(oEvent){
	var oEvent = (oEvent)? oEvent : event;
	var oTarget =(oEvent.target)? oEvent.target : oEvent.srcElement;
	oType = oTarget.type;
	if ( (oType == "text" || oType == "password" || oType == "radio" || oType == "checkbox" || oType == "select") && oEvent.keyCode==13 ) {
		oEvent.keyCode = 9;
	}
}
document.oncontextmenu = new Function("return false");
document.onkeydown = checkKey;
if (document.all){
    document.onkeydown = checkKey; // IE
}else{
    document.addEventListener('keydown', checkKey, false); // Mozilla
}
function tmt_confirm(msg){
	document.MM_returnValue=(confirm(unescape(msg)));
}
function XMCheckTextarea(val,num,msg){
	if (val.value.length>num) {
		val.value=val.value.substring(0,num);
		alert(unescape(msg))
	}
}
function getObject(idObj){
	var obj = document.getElementById(idObj);
	return obj;
}
function getComboValue(idObj){
	var cmb = getObject(idObj);
	var value = cmb.options[cmb.selectedIndex].value;
	return value;
}
function showObj(idObj,flag){
	if (flag){
		clase = "";
	}else{
		clase = "oculto";
	}
	document.getElementById(idObj).className = clase;
}
function toogleObj(idObj){
	var obj = getObject(idObj);
	var clase = (obj.className=='oculto') ? '' : 'oculto' ;
	obj.className = clase;
}

//-->