<!--
// Ubicado en js. 


var Opciones_1 = new Array();
var Opciones_url_1 = new Array();
Opciones_1[0] = "Home";
Opciones_1[1] = "First announcement";
Opciones_1[2] = "Pre-registration";
Opciones_1[3] = "Registration";
Opciones_1[4] = "Abstract submission";
Opciones_1[5] = "Venue";
Opciones_1[6] = "Accommodation";
Opciones_1[7] = "Maps and directions";
Opciones_1[8] = "Local information";
Opciones_1[9] = "Conference program";
Opciones_1[10] = "Latest news<br><span class=actualizacion>(updated Aug 25, 2003)</span>";


Opciones_url_1[0] = "<a class=mn href=/info/empgm/index.htm>";
Opciones_url_1[1] = "<a class=mn href=/info/empgm/first.htm>";
//Opciones_url_1[2] = "";
Opciones_url_1[2] = "<a class=mn href=/info/empgm/preregistration1.html>";
Opciones_url_1[3] = "<a class=mn href=/info/empgm/registration.htm>";
//Opciones_url_1[4] = "";
Opciones_url_1[4] = "<a class=mn href=/info/empgm/abstract.htm>";
Opciones_url_1[5] = "<a class=mn href=/info/empgm/venue.htm>";
Opciones_url_1[6] = "<a class=mn href=/info/empgm/accommodation.htm>";
Opciones_url_1[7] = "<a class=mn href=/info/empgm/maps.htm>";
Opciones_url_1[8] = "<a class=mn href=/info/empgm/local.htm>";
Opciones_url_1[9] = "<a class=mn href=/info/empgm/program.htm>";
Opciones_url_1[10] = "<a class=mn href=/info/empgm/news.htm>";

function MenusPrincipales (opcion) {
wref = window.texto;
for (var j = 1; j < 2; j++) {
   var opt = eval("Opciones_" + j);
   var url = eval("Opciones_url_" + j);
   document.write('<table border=0 cellpadding=0 cellspacing=0 width=100%>' +      '<tr><td><img src="/info/empgm/imagenes/p_trans.gif" width=1 height=10></td></tr>');
for (var i = 0; i < opt.length; i++) {
if (opcion == i) {
    var za = "elegida";
    var zzz = '<tr><td align=right class=elegida>' + opt[i] + '</td></tr>'
} else {
    var za = "mn";
    var zzz = '<tr><td align=right class=mn>' + url[i] + opt[i] + '</a></td></tr>'
}
document.write( 
'<tr>' +
'      <tr><td class=' + za + '><img src="imagenes/p_trans.gif" width=1 height=10></td></tr>' +
 zzz +
'      <tr><td align=right bgcolor=#aaaaaa><img src="imagenes/p_trans.gif" width=1 height=1></td></tr>');
}
   document.write('<tr><td><img src="/info/empgm/imagenes/p_trans.gif" width=1 height=50></td></tr></table>');
}
}

function MM_findObj(n, d) { //v3.0

  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); return x;

}



function MM_validateForm() { //v3.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+' must contain an e-mail address.\n';

      } else if (test!='R') { num = parseFloat(val);

        if (val!=''+num) errors+='- '+nm+' must contain a number.\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+' must contain a number between '+min+' and '+max+'.\n';

    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

  } if (errors) alert('The following error(s) occurred:\n'+errors);

  document.MM_returnValue = (errors == '');

}

function MM_validateFormA() { //v3.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateFormA.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+' must contain an e-mail address.\n';

      } else if (test!='R') { num = parseFloat(val);

        if (val!=''+num) errors+='- '+nm+' must contain a number.\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+' must contain a number between '+min+' and '+max+'.\n';

    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

  }

  var em = MM_findObj("E-mail");
  var cuantos = em.value.split('@');
  if (cuantos.length > 2) {
    errors += '- Please only one e-mail address per line';
  }

 if (errors) alert('The following error(s) occurred:\n'+errors);

  document.MM_returnValue = (errors == '');

}

function MM_validateFormB() { //v3.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateFormB.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+' must contain an e-mail address.\n';

      } else if (test!='R') { num = parseFloat(val);

        if (val!=''+num) errors+='- '+nm+' must contain a number.\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+' must contain a number between '+min+' and '+max+'.\n';

    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

  }

  var Zap = MM_findObj("Amount of payment");
  var Zpm = MM_findObj("Payment method");
  var Zpms = true;
  var Zaps = false;
  for (var h = 0; h < Zpm.length; h++) {
           if (Zpm[h].checked) var Zpms = true;
  }
  for (var h = 0; h < Zap.length; h++) {
           if (Zap[h].checked) var Zaps = true;
  }
  if (!Zaps) {
     errors += '- Please select amount of payment\n';
  }
  if (!Zpms) {
     errors += '- Please select preferred method of payment\n';
  }

 if (errors) alert('The following error(s) occurred:\n'+errors);

  document.MM_returnValue = (errors == '');

}


function SacaEmail(e) {
  var sep = new Array(" ",",",";");
  var em = e.value;
  for (var i = 0;i<sep.length;i++) {
     var lineas = em.split("\r");
     var pal = lineas[0].split(sep[i]);
     lineas[0] = pal.join('\r');
     em = lineas.join('\r');
  }
  e.value = em;
  var lineas = em.split("\r");
  var des = MM_findObj("E-mail");
  des.value = lineas[0];
//  if (lineas[0].indexOf(' ')) {
//     var pal = lineas[0].split(" ");
//     lineas[0] = pal.join('\r');
//     e.value=lineas.join('\r');
//     SacaEmail(e);
//  }
//  if(!vacio(subp[2])) {
//    alert("Please only one e-mail address per line");
//  }
}

function vacio(s) {
    if (s == null || s == "" || esblanco(s))
       return true;
    return false;
}

function esblanco(s) {
    for (var i = 0; i < s.length; i++) {
       var c = s.charAt(i);
       if ((c != ' ') && (c != '\n') && (c != '\t')) return false; 
    }
    return true;
}


// -->

