// Universal way to get element by id.  Only known failure is in IE3.  (If you steal please rehost.)
// Use: 
//
//     < script language="javascript" type="text/javascript" 
//              src="http://www.visibone.com/javascript/element.js" >< / script >
//
// without the spaces of course.  Or https:... in pages themselves accessed via https.

function element(id) { 
     if (document.getElementById != null) {      // 1st choice
          return document.getElementById(id);    // no N4,IE4
     }
     if (document.all != null) {                 // 2nd choice
          return document.all[id];               // IE only
     }
     if (document.layers != null) {              // 3rd choice
          return document.layers[id];            // N4 only
     }
     return null;                                // give up
}
