function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function r_on(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "/es/images/" + i + "_over.gif"; 
    }
  }
}

function r_off(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "/es/images/" + i + ".gif"; 
    }
  }
}

function s_on(i) {
  if (document.images) { 
      document[i].src = "/es/images/s_arrow.gif"; 
  }
}

function s_off(i) {
  if (document.images) { 
      document[i].src = "/es/images/s_blue.gif"; 
  }
}

function poppup(page) {
  popUpWin = window.open(page,'PopWin','resizeable=no,scrollbars=yes,top=0,left=0,width=250,height=250');
}

function open_window(url){
  demo=window.open(url,"demo","width=500,height=400,toolbar=yes,directories=0,status=0,menubar=yes,resizable=yes,scrollbars=yes");
} 

function copyrightDate() {
  var today = new Date();
  year = today.getFullYear();
  document.write(year);
}

function leaveSite3(site) {
  page = "/jump.html?" + site;
  popUpWin = window.open(page,'PopWin','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=790,height=430');
}

// Place Focus into the 1st form field
function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type == "password") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s") && (field.elements[i].type != "submit")) {
document.forms[0].elements[i].focus();
break;
         }
      }
   }
}//placeFocus
