
Array.prototype.push = function() {
    var n = this.length >>> 0;
    for (var i = 0; i < arguments.length; i++) {
      this[n] = arguments[i];
      n = n + 1 >>> 0;
    }
    this.length = n;
    return n;
};

Array.prototype.pop = function() {
    var n = this.length >>> 0, value;
    if (n) {
      value = this[--n];
      delete this[n];
    }
    this.length = n;
    return value;
};

// Called: var x = new getObj('layername');
// From: http://www.quirksmode.org/js/dhtmloptions.html
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}


function define(word,def)
{
   var ret="<span class='definition' title='"+def+"'>"+word+"</span>";
   document.write(ret);
}


function contact(nm,dn,tl,tx) {
   var m2 = new Array();
   m2[4] = "t";   m2[6] = ":";
   m2[3] = "l";   m2[1] = "a";   
   m2[5] = "o";   m2[2] = "i";
   m2[0] = "m";   

   exp="<a href='";
   for (i=0; i<m2.length; i++) exp+=m2[i];
   exp+=nm+"&#064";
   exp+=dn+"."+tl
   exp+="'>"+tx+"</a>";
   return(exp);
}

function display_contact(nm,dn,tl,tx) {
   str = contact(nm,dn,tl,tx);
   document.write(str);
}



