<!--
/**
 * bookmarkPage - adds url with title to users favorites or bookmarks
 * title - title of bookmark
 * url - url of bookmark
 */
function bookmarkPage(title, url){
  if (document.all) {
    window.external.AddFavorite(url, title);
  } else if (window.sidebar) {
    window.sidebar.addPanel(title, url, "");
  }
}

/**
 * popUp - pops up url
 * URL - url to pop up
 */
function popUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=400,left = 362,top = 234');");
}

/**
 * popUp2 - pops up url at defined height
 * URL - url to pop up
 * width - width to make popup
 * height - height to make popup
 */
function popUp2(URL, width, height) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' + width + ',height=' + height + ',left = 362,top = 234');");
}

/**
 * copy - copies customer billing form elements to the shipping form elements
 * URL - url to pop up
 * width - width to make popup
 * height - height to make popup
 */
function copy() {
  if(document.getElementById('makeBillShip').checked == true) {
    var billingTable = document.getElementById("billingTable");
    var nodes = billingTable.getElementsByTagName("input");
    for(var i = 0; i < nodes.length; i++) {
      parts = nodes[i].id.split("_");
      var copyTo = "s_" + parts[1];
      document.getElementById(copyTo).value = document.getElementById(nodes[i].id).value;
    }
    
  } else {
    var shippingTable = document.getElementById("shippingTable");
    var nodes2 = shippingTable.getElementsByTagName("input");
    for(var ii = 0; ii < nodes2.length; ii++) {
      document.getElementById(nodes2[ii].id).value ='';
    }
  }
}

/**
 * textCounter - counts remaining characters for text areas
 * field - field obj
 * cntfield - the cntfield ob
 * maxlimit - max length of chars
 */
<!-- Limit the number of characters per textarea -->
function textCounter(field,cntfield,maxlimit) {
  if (field.value.length > maxlimit) {
    // if too long...trim it!
    field.value = field.value.substring(0, maxlimit);
    // otherwise, update 'characters left' counter
  } else {
    cntfield.value = maxlimit - field.value.length;
  }
}

/**
 * showHint - displays password hint for user
 */
function showHint(){
  var un = document.getElementById('cUn').value;
  toggle('hint');
  if(document.getElementById('hint').className == 'show') {
    var hint = showPwdHint(un, "type=r"); //type=r means you get the returned value of the funtion
    document.getElementById('hint').innerHTML = hint;
  }
}

/**
 * toggle - show or hide element with id
 */
function toggle(id) {
  if(document.getElementById(id).className == "hide") {
    document.getElementById(id).className="show";
  } else {
    document.getElementById(id).className="hide";
  };
}
-->