﻿// JScript File
function open_window(file,width,height)
{
	options = "history=0,resizable=1,scrollbars=1,top=0,left=0,width="+width+",height="+height;
	window.open(file,'newwin',options);
}
function open_brand_window(brandlist)
{
    if ((brandlist.options[brandlist.selectedIndex].value.substring(0,4)) == 'http') {
	    options = "history=0,resizable=1,scrollbars=1,top=0,left=0,width=1000,height=800";
	    window.open(brandlist.options[brandlist.selectedIndex].value,'newwin',options);
	}
	else {
	    window.location.href = brandlist.options[brandlist.selectedIndex].value;
	}	
}
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; 
                  } 
            } 
      } 
} 