// JavaScript Document

     window.onload = function(){
        ConvertRowsToLinks("Table1");
        ConvertRowsToLinks("Table2");
        ConvertRowsToLinks("Table3");
      }
      
      function ConvertRowsToLinks(xTableId){

        var rows = document.getElementById(xTableId).getElementsByTagName("tr");
        var links = document.getElementById(xTableId).getElementsByTagName("a");
   
        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='nav_link_hover'");
            rows[i].onmouseout = new Function("this.className='nav_link'");
          }
        }

      }

// Chat Script
function open_chat( ){
    var url = "http://customercare.trinsic.com/ccwa/Chat.do?custType=trinsic_res"
    window.open( url , "enterinfo", "height=645,width=520,resizable=yes,left=300,top=50");
  }
  function newWindow(url,H,W)
 {
    if (!url) return false;
    if (!H) H = 325;
    if (!W) W = 425;

	var X = (screen.width/2)-(W/2);
	var Y = (screen.height/2)-(H/2);

	var winPref = "width=" + W + ",height=" + H
			+ ",innerWidth=" + W + ",innerHeight=" + H
			+ ",left=" + X + ",top=" + Y
			+ ",screenX=" + X + ",screenY=" + Y
			+ ",dependent=yes,titlebar=yes,scrollbars=yes,resizable=yes";

	var zPop = top.open(url,"zPop",winPref);

	if ( !zPop.opener )
		zPop.opener = top;

	zPop.focus();
	return false;
 }
 function stripNonDigits(element)
  {
     element.value = element.value.replace(/[^\d]*/gi,"");
  }

  function shiftFocus(fromElement,toElement)
  {
     stripNonDigits(fromElement);

     if ( fromElement.value.length == 1*fromElement.maxLength )
     {
        if (toElement.select) toElement.select();
        toElement.focus();
     }
  }

