//javascript:
// -----------------------------------------------------------------------
// 1999-2002 Código creado por Manuel de la Herrán Gascón 
// manu@enk3.com,manu@manuherran.com,manu@redcientifica.com
// http://www.enk3.com/ http://www.manuherran.com/ http://www.redcientifica.com/
// -----------------------------------------------------------------------
// abrirVentanaEmuladorWap
// abrirVentanaEnviarArticulo
// abrirVentanaSubirImagen
// abrirVentana
// wTextBox
// wTextBoxGrisViejo
// wBeginHtmlSelect
// wComboBoxItemDefaultOption
// -----------------------------------------------------------------------
function abrirVentanaEmuladorWap(url) {
  window.open('http://www.cocotero.com/cgi-bin/emu/emulador.cgi?adonde='+url,'ventanaEmuladorWap','width=173,height=424,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no')
}
// -----------------------------------------------------------------------
function abrirVentanaEmuladorWapNavegalia(url) {
  window.open('http://www.cocotero.com/cgi-bin/emu/emulador.cgi?navegalia='+url,'ventanaEmuladorWap','width=220,height=525,toolbar=no,location=yes,directories=no,menubar=no,scrollbars=no,resizable=no')
}
// -----------------------------------------------------------------------
function abrirVentanaEnviarArticulo(url) {
  window.open (url,'ventanaEnviarArticulo','toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,status=no,resizable=no,width=430,height=330');
}
// -----------------------------------------------------------------------
function abrirVentanaSubirImagen(url) {
  window.open ('/cgi-bin/upload/upload.php?action=form&doc='+url,'ventanaSubirImagen','toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,status=no,resizable=no,width=500,height=330');
}
// -----------------------------------------------------------------------
function abrirVentana(nombreVentana, url, width, height) {
  // Ejemplos de uso:
  // En href javascript:abrirVentana('rc', 'http://www.mhg71.com/', '430', '330');
  // En href javascript:abrirVentana('enk3', 'http://www.dng81.com/', '560', '430');
  window.open (url,'ventana_'+nombreVentana,'toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,status=no,resizable=no,width='+width+',height='+height);
}
// -----------------------------------------------------------------------
function wTextBox(name, size, maxlength, value) {
  if (navigator.appName == "Netscape") {
    if (size == '21') { size = '12'; }
    if (size == '31') { size = '19'; }
    if (size == '41') { size = '31'; }
    if (size == '51') { size = '41'; }
  }
  document.writeln('<input type="text" name="'+name+'" size="'+size+'" maxlength="'+maxlength+'" value="'+value+'">');
}       
// -----------------------------------------------------------------------
function wTextBoxGrisViejo(name, size, maxlength, value) {
  if (navigator.appName == "Netscape") {
    if (size == '21') { size = '11'; }
    if (size == '31') { size = '19'; }
    if (size == '41') { size = '31'; }
    if (size == '51') { size = '41'; }
  }
  document.writeln('<input type="text" name="'+name+'" size="'+size+'" maxlength="'+maxlength+'" value="'+value+'">');
  ////document.writeln('<input type="text" name="'+name+'" size="'+size+'" maxlength="'+maxlength+'" value="'+value+'" style="background-color:#dddddd;">');
}
// -----------------------------------------------------------------------
function wBeginHtmlSelect(name) {
  if (navigator.appName == "Netscape") {
    document.writeln('<SELECT NAME="'+name+'">');
  } else {
    //document.writeln('<SELECT NAME="'+name+'" style="background-color:#dddddd;">');
    document.writeln('<SELECT NAME="'+name+'">');
  }
}       
// -----------------------------------------------------------------------
function wComboBoxItemDefaultOption(item, defaultItem) {
  if (item == defaultItem) {
    document.writeln('<option value="'+item+'" SELECTED>'+item);
  } else {
    document.writeln('<option value="'+item+'">'+item);
  }
}       
// -----------------------------------------------------------------------

