// JavaScript Document
function trapKeypress(e, theKey) {
 var iKeyCode = 0;
 if (window.event) iKeyCode = window.event.keyCode
 else if (e) iKeyCode = e.which;
 return (iKeyCode != theKey);
}

function clickButton(e, buttonid){ 
      var bt = document.getElementById(buttonid); 
      if (typeof bt == 'object'){ 
            if(navigator.appName.indexOf("Netscape")>(-1)){ 
                  if (e.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
            if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
                  if (event.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
      } 
} 

function openindex(prodRecId) { 
OpenWindow=window.open("imagepopup.aspx?p=" + prodRecId, "newwin", "height=540, width=650,toolbar=No,menubar=no,resizable=yes,status=no");
OpenWindow.focus();
OpenWindow.document.close()
self.name="main" }
	 
function ChangeColor(tableRow, highLight)  
{
      if (highLight)
	        {
			        tableRow.style.backgroundColor = '#EEEEEE';
			}      
	   else
	        {
			        tableRow.style.backgroundColor = 'white';
			}
}

function ChangeRowColor(tableRow, rowColour)  
{
     
			        tableRow.style.backgroundColor = rowColour;
}	