// ********************************* //
//									 //
// Javascript for SYBA.COM website	 //
// Created: Mar 2004				 //
// Updated: May 04, 2004			 //
//									 //
// ********************************* //


// ****************************************************************************
// Function to jump to a URL in a <select> menu
// The name of the array containing the URLs is determined based on the name of the pulldown menu.
// ****************************************************************************

//  Store URLs in an array. These must match the elements in the pulldown.
//  The first element is the pulldown says 'Select a URL', thus countrySelect_URLs[0] contains an empty
//  string. Note in this case that the name of the URL array is mapped to that of the Menu.
//  This is assumed in the function below.
var countrySelect_URL = new Array();
countrySelect_URL[0] = "";
countrySelect_URL[1] = "http://www.syba.com/";		// United States - English //
countrySelect_URL[2] = "http://www.syba.com/";		// Hong Kong - English, Traditional Chinese //
countrySelect_URL[3] = "http://www.syba.com/cn/";		// China - Simplfied Chinese, English //
countrySelect_URL[4] = "http://www.syba.jp/";		// Japan - Japanese, English //



//  Download section #71-xxxx (Product family #41-xxxx)
var downloadSelect_710000_URL = new Array();
downloadSelect_710000_URL[0] = "";
downloadSelect_710000_URL[1] = "71-0100-1.html";	
downloadSelect_710000_URL[2] = "71-0200-1.html";
downloadSelect_710000_URL[3] = "71-0300-1.html";
downloadSelect_710000_URL[4] = "71-0400-1.html";
downloadSelect_710000_URL[5] = "71-0500-1.html";
downloadSelect_710000_URL[6] = "71-0600-1.html";

//  Download section #71-01xx (Product series #41-01xx)
var downloadSelect_710100_URL = new Array();
downloadSelect_710100_URL[0] = "";
downloadSelect_710100_URL[1] = "71-0101-1.html";	
downloadSelect_710100_URL[2] = "71-0102-1.html";
downloadSelect_710100_URL[3] = "71-0103-1.html";
downloadSelect_710100_URL[4] = "71-0104-1.html";
downloadSelect_710100_URL[5] = "71-0105-1.html";

//  Download section #71-02xx (Product series #41-02xx)
var downloadSelect_710200_URL = new Array();
downloadSelect_710200_URL[0] = "";
downloadSelect_710200_URL[1] = "71-0201-1.html";	
downloadSelect_710200_URL[2] = "71-0202-1.html";
downloadSelect_710200_URL[3] = "71-0203-1.html";
downloadSelect_710200_URL[4] = "71-0204-1.html";
downloadSelect_710200_URL[5] = "71-0205-1.html";


//  Download section #71-03xx (Product series #41-03xx)
var downloadSelect_710300_URL = new Array();
downloadSelect_710300_URL[0] = "";
downloadSelect_710300_URL[1] = "71-0302-1.html";	
downloadSelect_710300_URL[2] = "71-0303-1.html";


//  Download section #71-04xx (Product series #41-04xx)
var downloadSelect_710400_URL = new Array();
downloadSelect_710400_URL[0] = "";
downloadSelect_710400_URL[1] = "71-0401-1.html";	
downloadSelect_710400_URL[2] = "71-0402-1.html";

//  Download section #71-05xx (Product series #41-05xx)
var downloadSelect_710500_URL = new Array();
downloadSelect_710500_URL[0] = "";
downloadSelect_710500_URL[1] = "71-0501-1.html";	
downloadSelect_710500_URL[2] = "71-0502-1.html";

//  Download section #71-06xx (Product series #41-06xx)
var downloadSelect_710600_URL = new Array();
downloadSelect_710600_URL[0] = "";
downloadSelect_710600_URL[1] = "71-0601-1.html";	
downloadSelect_710600_URL[2] = "71-0602-1.html";



//  Download section #72-xxxx (Product family #42-xxxx)
var downloadSelect_720000_URL = new Array();
downloadSelect_720000_URL[0] = "";
downloadSelect_720000_URL[1] = "72-0100-1.html";	
downloadSelect_720000_URL[2] = "72-0200-1.html";
downloadSelect_720000_URL[3] = "72-0300-1.html";
downloadSelect_720000_URL[4] = "72-0400-1.html";
downloadSelect_720000_URL[5] = "72-0500-1.html";

//  Download section #72-01xx (Product series #42-01xx)
var downloadSelect_720100_URL = new Array();
downloadSelect_720100_URL[0] = "";
downloadSelect_720100_URL[1] = "72-0101-1.html";	
downloadSelect_720100_URL[2] = "72-0102-1.html";
downloadSelect_720100_URL[3] = "72-0103-2.html";

//  Download section #72-02xx (Product series #42-02xx)
var downloadSelect_720200_URL = new Array();
downloadSelect_720200_URL[0] = "";
downloadSelect_720200_URL[1] = "72-0201-1.html";	
downloadSelect_720200_URL[2] = "72-0202-1.html";
downloadSelect_720200_URL[3] = "72-0203-1.html";

//  Download section #72-03xx (Product series #42-03xx)
var downloadSelect_720300_URL = new Array();
downloadSelect_720300_URL[0] = "";
downloadSelect_720300_URL[1] = "72-0301-1.html";

//  Download section #72-04xx (Product series #42-04xx)
var downloadSelect_720400_URL = new Array();
downloadSelect_720400_URL[0] = "";
downloadSelect_720400_URL[1] = "72-0401-1.html";

//  Download section #72-05xx (Product series #42-05xx)
var downloadSelect_720500_URL = new Array();
downloadSelect_720500_URL[0] = "";
downloadSelect_720500_URL[1] = "72-0501-1.html";
downloadSelect_720500_URL[2] = "72-0502-1.html";



//  Download section #73-xxxx (Product family #43-xxxx)
var downloadSelect_730000_URL = new Array();
downloadSelect_730000_URL[0] = "";
downloadSelect_730000_URL[1] = "73-0100-1.html";	
downloadSelect_730000_URL[2] = "73-0200-1.html";
downloadSelect_730000_URL[3] = "73-0300-1.html";
downloadSelect_730000_URL[4] = "73-0400-1.html";
downloadSelect_730000_URL[5] = "73-0500-1.html";
downloadSelect_730000_URL[6] = "73-0600-1.html";
downloadSelect_730000_URL[7] = "73-0700-1.html";
downloadSelect_730000_URL[8] = "73-0800-1.html";
downloadSelect_730000_URL[9] = "73-0900-1.html";
downloadSelect_730000_URL[10] = "73-1000-1.html";
downloadSelect_730000_URL[11] = "73-1100-1.html";
downloadSelect_730000_URL[12] = "73-1200-1.html";
downloadSelect_730000_URL[13] = "73-1300-1.html";
downloadSelect_730000_URL[14] = "73-1400-1.html";

//  Download section #73-01xx (Product series #43-01xx)
var downloadSelect_730100_URL = new Array();
downloadSelect_730100_URL[0] = "";
downloadSelect_730100_URL[1] = "73-0101-1.html";	
downloadSelect_730100_URL[2] = "73-0102-1.html";
downloadSelect_730100_URL[3] = "73-0103-1.html";
downloadSelect_730100_URL[4] = "73-0104-1.html";
downloadSelect_730100_URL[5] = "73-0105-1.html";
downloadSelect_730100_URL[6] = "73-0106-1.html";
downloadSelect_730100_URL[7] = "73-0107-1.html";
downloadSelect_730100_URL[8] = "73-0108-1.html";
downloadSelect_730100_URL[9] = "73-0109-1.html";
downloadSelect_730100_URL[10] = "73-0110-1.html";
downloadSelect_730100_URL[11] = "73-0111-1.html";
downloadSelect_730100_URL[12] = "73-0117-1.htm";

//  Download section #73-02xx (Product series #43-02xx)
var downloadSelect_730200_URL = new Array();
downloadSelect_730200_URL[0] = "";
downloadSelect_730200_URL[1] = "73-0201-1.html";	
downloadSelect_730200_URL[2] = "73-0202-1.html";
downloadSelect_730200_URL[3] = "73-0203-1.html";
downloadSelect_730200_URL[4] = "73-0204-1.html";
downloadSelect_730200_URL[5] = "73-0205-1.html";

//  Download section #73-03xx (Product series #43-03xx)
var downloadSelect_730300_URL = new Array();
downloadSelect_730300_URL[0] = "";
downloadSelect_730300_URL[1] = "73-0301-1.html";	

//  Download section #73-04xx (Product series #43-04xx)
var downloadSelect_730400_URL = new Array();
downloadSelect_730400_URL[0] = "";
downloadSelect_730400_URL[1] = "73-0401-1.html";	
downloadSelect_730400_URL[2] = "73-0402-1.html";
downloadSelect_730400_URL[3] = "73-0403-1.html";
downloadSelect_730400_URL[4] = "73-0404-1.html";
downloadSelect_730400_URL[5] = "73-0405-1.html";
downloadSelect_730400_URL[6] = "73-0406-1.html";
downloadSelect_730400_URL[7] = "73-0407-1.html";
downloadSelect_730400_URL[8] = "73-0408-1.html";
downloadSelect_730400_URL[9] = "73-0409-1.html";

//  Download section #73-05xx (Product series #43-05xx)
var downloadSelect_730500_URL = new Array();
downloadSelect_730500_URL[0] = "";
downloadSelect_730500_URL[1] = "73-0501-1.html";	
downloadSelect_730500_URL[2] = "73-0502-1.html";
downloadSelect_730500_URL[3] = "73-0503-1.html";
downloadSelect_730500_URL[4] = "73-0504-1.html";
downloadSelect_730500_URL[5] = "73-0505-1.html";
downloadSelect_730500_URL[6] = "430507.html";

//  Download section #73-06xx (Product series #43-06xx)
var downloadSelect_730600_URL = new Array();
downloadSelect_730600_URL[0] = "";
downloadSelect_730600_URL[1] = "73-0601-1.html";
downloadSelect_730600_URL[2] = "73-0602-1.html";	

//  Download section #73-07xx (Product series #43-07xx)
var downloadSelect_730700_URL = new Array();
downloadSelect_730700_URL[0] = "";
downloadSelect_730700_URL[1] = "73-0701-1.html";	
downloadSelect_730700_URL[2] = "73-0702-1.html";
downloadSelect_730700_URL[3] = "73-0703-1.html";

//  Download section #73-08xx (Product series #43-08xx)
var downloadSelect_730800_URL = new Array();
downloadSelect_730800_URL[0] = "";
downloadSelect_730800_URL[1] = "73-0801-1.html";	
downloadSelect_730800_URL[2] = "73-0802-1.html";

//  Download section #73-09xx (Product series #43-09xx)
//   Transfer to 73-0500 series

//  Download section #73-10xx (Product series #43-10xx)
var downloadSelect_731000_URL = new Array();
downloadSelect_731000_URL[0] = "";
downloadSelect_731000_URL[1] = "73-1001-1.html";	
downloadSelect_731000_URL[2] = "73-1002-1.html";
downloadSelect_731000_URL[3] = "73-1003-1.html";

//  Download section #73-11xx (Product series #43-11xx)
var downloadSelect_731100_URL = new Array();
downloadSelect_731100_URL[0] = "";
downloadSelect_731100_URL[1] = "73-1101-1.html";	
downloadSelect_731100_URL[2] = "73-1102-1.html";
downloadSelect_731100_URL[3] = "73-1103-1.html";
downloadSelect_731100_URL[4] = "73-1104-1.html";

//  Download section #73-12xx (Product series #43-12xx)
var downloadSelect_731200_URL = new Array();
downloadSelect_731200_URL[0] = "";
downloadSelect_731200_URL[1] = "73-1201-1.html";	
downloadSelect_731200_URL[2] = "73-1202-1.html";
downloadSelect_731200_URL[3] = "73-1203-1.html";
downloadSelect_731200_URL[4] = "73-1204-1.html";

//  Download section #73-13xx (Product series #43-13xx)
var downloadSelect_731300_URL = new Array();
downloadSelect_731300_URL[0] = "";
downloadSelect_731300_URL[1] = "73-1301-1.html";	

//  Download section #73-14xx (Product series #43-14xx)
var downloadSelect_731400_URL = new Array();
downloadSelect_731400_URL[0] = "";
downloadSelect_731400_URL[1] = "73-1401-1.html";	




//  Download section #74-xxxx (Product family #44-xxxx)
var downloadSelect_740000_URL = new Array();
downloadSelect_740000_URL[0] = "";
downloadSelect_740000_URL[1] = "74-0100-1.html";	
downloadSelect_740000_URL[2] = "74-0200-1.html";	
downloadSelect_740000_URL[3] = "74-0300-1.html";	
downloadSelect_740000_URL[4] = "74-0400-1.html";	

//  Download section #74-01xx (Product series #44-01xx)
var downloadSelect_740100_URL = new Array();
downloadSelect_740100_URL[0] = "";
downloadSelect_740100_URL[1] = "74-0101-1.html";	
downloadSelect_740100_URL[2] = "74-0102-1.html";
downloadSelect_740100_URL[3] = "74-0103-1.html";
downloadSelect_740100_URL[4] = "74-0104-1.html";



//  Download section #75-xxxx (Product family #45-xxxx)
var downloadSelect_750000_URL = new Array();
downloadSelect_750000_URL[0] = "";
downloadSelect_750000_URL[1] = "75-0100-1.html";	
downloadSelect_750000_URL[2] = "75-0200-1.html";	
downloadSelect_750000_URL[3] = "75-0300-1.html";	
downloadSelect_750000_URL[4] = "75-0400-1.html";
downloadSelect_750000_URL[5] = "75-0500-1.html";	
downloadSelect_750000_URL[6] = "75-0600-1.html";	
downloadSelect_750000_URL[7] = "75-0700-1.html";	
downloadSelect_750000_URL[8] = "75-0800-1.html";
downloadSelect_750000_URL[9] = "75-0900-1.html";	
downloadSelect_750000_URL[10] = "75-1000-1.html";	
downloadSelect_750000_URL[11] = "75-1100-1.html";

//  Download section #75-01xx (Product series #45-01xx)
var downloadSelect_750100_URL = new Array();
downloadSelect_750100_URL[0] = "";
downloadSelect_750100_URL[1] = "75-0101-1.html";	
downloadSelect_750100_URL[2] = "75-0102-1.html";


//  Download section #75-02xx (Product series #45-02xx)
var downloadSelect_750200_URL = new Array();
downloadSelect_750200_URL[0] = "";
downloadSelect_750200_URL[1] = "75-0201-1.html";	
downloadSelect_750200_URL[2] = "75-0202-1.html";
downloadSelect_750200_URL[3] = "75-0203-1.html";
downloadSelect_750200_URL[4] = "75-0204-1.html";
downloadSelect_750200_URL[5] = "75-0205-1.html";

//  Download section #75-03xx (Product series #45-03xx)
var downloadSelect_750300_URL = new Array();
downloadSelect_750300_URL[0] = "";
downloadSelect_750300_URL[1] = "75-0301-1.html";	

//  Download section #75-04xx (Product series #45-04xx)
var downloadSelect_750400_URL = new Array();
downloadSelect_750400_URL[0] = "";
downloadSelect_750400_URL[1] = "75-0401-1.html";	

//  Download section #75-05xx (Product series #45-05xx)
var downloadSelect_750500_URL = new Array();
downloadSelect_750500_URL[0] = "";
downloadSelect_750500_URL[1] = "75-0501-1.html";

//  Download section #75-06xx (Product series #45-06xx)
var downloadSelect_750600_URL = new Array();
downloadSelect_750600_URL[0] = "";
downloadSelect_750600_URL[1] = "75-0601-1.html";	

//  Download section #75-07xx (Product series #45-07xx)
var downloadSelect_750700_URL = new Array();
downloadSelect_750700_URL[0] = "";
downloadSelect_750700_URL[1] = "75-0701-1.html";

//  Download section #75-08xx (Product series #45-08xx)
var downloadSelect_750800_URL = new Array();
downloadSelect_750800_URL[0] = "";
downloadSelect_750800_URL[1] = "75-0801-1.html";	
downloadSelect_750800_URL[2] = "75-0802-1.html";

//  Download section #75-09xx (Product series #45-09xx)
var downloadSelect_750900_URL = new Array();
downloadSelect_750900_URL[0] = "";
downloadSelect_750900_URL[1] = "75-0901-1.html";

//  Download section #75-10xx (Product series #45-10xx)
var downloadSelect_751000_URL = new Array();
downloadSelect_751000_URL[0] = "";
downloadSelect_751000_URL[1] = "75-1001-1.html";
downloadSelect_751000_URL[2] = "75-1002-1.html";

//  Download section #75-11xx (Product series #45-11xx)
var downloadSelect_751100_URL = new Array();
downloadSelect_751100_URL[0] = "";
downloadSelect_751100_URL[1] = "75-1101-1.html";	




function jumpToURL( formName, selectName ) {
 var obj = eval( "document." + formName + "." + selectName );
 var index = obj.selectedIndex;
 var url = eval( selectName + "_URL[" + index + "]" );
 if (url != "") { 
   location.href=url;
 }
}

	
function jumpToURL2( formName, selectName ) {
 var obj = eval( "document." + formName + "." + selectName );
 var index = obj.value;
 var url = eval( selectName + "_URL[" + index + "]" );
 if (url != "") { 
   location.href=url;
 }
}





// ****************************************************************************
// Function to open a new window of 400 by 300 pixel
// ****************************************************************************
function OpenWindow450x400( htmlpage ) {
 window.open(htmlpage,'popup','toolbar=no,location=no, directories=no, status=yes, menubar=no, resizable=yes, copyhistory=no, scrollbars=no, width=450, height=400');
}



// ****************************************************************************
// Function to open a new window of width by height pixel
// ****************************************************************************
function OpenWindow( htmlpage, width, height ) {
 window.open(htmlpage,'popup','toolbar=no,location=no, directories=no, status=yes, menubar=no, resizable=yes, copyhistory=no, scrollbars=no, width='+width+', height='+height);
}





// ****************************************************************************
// Function to show today's date
// ****************************************************************************

var months=new Array(13);
 months[1]="January";
 months[2]="February";
 months[3]="March";
 months[4]="April";
 months[5]="May";
 months[6]="June";
 months[7]="July";
 months[8]="August";
 months[9]="September";
 months[10]="October";
 months[11]="November";
 months[12]="December";

function CurrentDate() {
 var time=new Date();
 var lmonth=months[time.getMonth() + 1];
 var date=time.getDate();
 var year=time.getYear();
 if (year < 2000)
 year = year + 1900;
 document.write(lmonth + " " + date + ", " + year);
}



// ****************************************************************************
// Function to show random horizontal banner on the top of the page
// ****************************************************************************
var banner=new Array(2);
 banner[0] = "<img src=images/ad/t01.jpg>" 
 banner[1] = "<img src=images/ad/t02.jpg>" 

function RandomBanner() {
 index = Math.floor(Math.random() * banner.length) 
 document.write("<center>" + banner[index] + "</center><p>") 
}



