﻿// 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; 
                  } 
            } 
      } 
} 
function PreloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=PreloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}