<!-- Hide script from old browsers

/* loop through each of the rows looking for a link, make tr clickable */
      window.onload = function(){
      	if (document.getElementById("equip_tbl")) {
        	ConvertRowsToLinks("equip_tbl");
      	}
      }
      
      function ConvertRowsToLinks(xTableId){
		
        var rows = document.getElementById(xTableId).getElementsByTagName("tr");
   
        for(i=0;i<rows.length;i++){
          var link = rows[i].getElementsByTagName("a");
          if(link.length == 1){
            rows[i].onclick = new Function("document.location.href='" + link[0].href + "'");
            rows[i].onmouseover = new Function("this.className='highlight'");
            if (rows[i].className == "alt_row") {
            	rows[i].onmouseout = new Function("this.className='alt_row'");
			} else {
				rows[i].onmouseout = new Function("this.className=''");
			}
          }
        }

      }
      
/* handle the pop ups for the enquiry forms */


// These defaults should be changed the way it best fits your site
function isUndefined(v) {
    var undef;
    return v===undef;
}

// These defaults should be changed to fit the needs of the site
var _POPUP_FEATURES = 'location=0,statusbar=0,menubar=0,width=480,height=500,resizable=yes';

function raw_popup(url, target, features) {
    // pops up a window containing url optionally named target, optionally having features
    if (isUndefined(features)) features = _POPUP_FEATURES;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function link_popup(src, features) {
    // to be used in an html event handler as in: <a href="..." onclick="link_popup(this,...)" ...
    // pops up a window grabbing the url from the event source's href
    var link;
    link = src.getAttribute('href') + '&pop=true';
    return raw_popup(link, src.getAttribute('target') || '_blank', features);
}

// End hiding script from old browsers -->