// COMPAQ JAVASCRIPT cpq_country_pulldown.js VERSION 1.0

// Based on HP hpweb_country_pulldown.js - moved the language cookie setting function call to the HTML file

	// Store URLs in an array. Match the country code to 
	// the corresponding option value on the welcome.html page.  
	// More than one option value on the welcome page may reference 
	// a single value on this page.  
	// Updated 5/3/06 mbrunot


var countrySelect_URLs = new Array();
countrySelect_URLs["en_AA"] = "http://www.compaq.com/country/emea_africa/en";
countrySelect_URLs["fr_AA"] = "http://www.compaq.com/country/emea_africa/fr";
countrySelect_URLs["es_AR"] = "http://welcome.hp.com/country/ar/es/welcome.html";
countrySelect_URLs["en_AU"] = "http://www.compaq.com.au/";
countrySelect_URLs["de_AT"] = "http://www.compaq.com/country/at/de";
countrySelect_URLs["ru_BY"] = "http://www.compaq.com/country/by/ru";
countrySelect_URLs["nl_BE"] = "http://www.compaq.com/country/be/nl";
countrySelect_URLs["fr_BE"] = "http://www.compaq.com/country/be/fr";
countrySelect_URLs["es_BO"] = "http://welcome.hp.com/country/bo/es/welcome.html";
countrySelect_URLs["pt_BR"] = "http://welcome.hp.com/country/br/pt/welcome.html";
countrySelect_URLs["bg_BG"] = "http://welcome.hp.com/country/bg/bg/welcome.html";
countrySelect_URLs["en_CA"] = "http://www.compaq.ca/";
countrySelect_URLs["fr_CA"] = "http://www.compaq.ca/french/index.html";
countrySelect_URLs["en_CB"] = "http://welcome.hp.com/country/lamerica_nsc_carib/en/welcome.html";
countrySelect_URLs["es_NS"] = "http://welcome.hp.com/country/lamerica_nsc_cnt_amer/es/welcome.html";
countrySelect_URLs["es_CL"] = "http://welcome.hp.com/country/cl/es/welcome.html";
countrySelect_URLs["zh_CN"] = "http://welcome.hp.com/country/cn/zh/welcome.html";
countrySelect_URLs["es_CO"] = "http://welcome.hp.com/country/co/es/welcome.html";
countrySelect_URLs["hr_HR"] = "http://welcome.hp.com/country/hr/hr/welcome.html";
countrySelect_URLs["el_GR"] = "http://welcome.hp.com/country/gr/el/welcome.html";
countrySelect_URLs["cs_CZ"] = "http://www.compaq.com/country/cz/cs";
countrySelect_URLs["da_DK"] = "http://www.compaq.com/country/dk/da";
countrySelect_URLs["es_EC"] = "http://welcome.hp.com/country/ec/es/welcome.html";
countrySelect_URLs["et_EE"] = "http://www.compaq.com/country/ee/et";
countrySelect_URLs["fi_FI"] = "http://www.compaq.com/country/fi/fi";
countrySelect_URLs["fr_FR"] = "http://www.compaq.com/country/fr/fr";
countrySelect_URLs["de_DE"] = "http://www.compaq.com/country/de/de";
countrySelect_URLs["el_GR"] = "http://www.compaq.com/country/gr/el";
countrySelect_URLs["en_HK"] = "http://www.compaq.com.hk/en/";
countrySelect_URLs["zh_HK"] = "http://www.compaq.com.hk/";
countrySelect_URLs["hu_HU"] = "http://welcome.hp.com/country/hu/hu/welcome.html";
countrySelect_URLs["en_IN"] = "http://www.compaq.co.in/";
countrySelect_URLs["en_ID"] = "http://www.compaq.co.id/";
countrySelect_URLs["en_IE"] = "http://www.compaq.com/country/ie/en";
countrySelect_URLs["he_IL"] = "http://www.compaq.com/country/il/he";
countrySelect_URLs["it_IT"] = "http://www.compaq.com/country/it/it";
countrySelect_URLs["ja_JP"] = "http://welcome.hp.com/country/jp/ja/welcome.html";
countrySelect_URLs["ru_KZ"] = "http://welcome.hp.com/country/kz/ru/welcome.html";
countrySelect_URLs["ko_KR"] = "http://welcome.hp.com/country/kr/ko/welcome.html";
countrySelect_URLs["lv_LV"] = "http://www.compaq.com/country/lv/lv";
countrySelect_URLs["lt_LT"] = "http://www.compaq.com/country/lt/lt";
countrySelect_URLs["en_MY"] = "http://h20426.www2.hp.com/campaign/compaq/my/en/index.asp";
countrySelect_URLs["es_MX"] = "http://welcome.hp.com/country/mx/es/welcome.html";
countrySelect_URLs["en_ME"] = "http://www.compaq.com/country/emea_middle_east/en";
countrySelect_URLs["nl_NL"] = "http://www.compaq.com/country/nl/nl";
countrySelect_URLs["en_NZ"] = "http://www.compaq.co.nz/";
countrySelect_URLs["no_NO"] = "http://www.compaq.com/country/no/no";
countrySelect_URLs["es_PY"] = "http://welcome.hp.com/country/py/es/welcome.html";
countrySelect_URLs["es_PE"] = "http://welcome.hp.com/country/pe/es/welcome.html";
countrySelect_URLs["en_PH"] = "http://www.compaq.com.ph/";
countrySelect_URLs["pl_PL"] = "http://www.compaq.com/country/pl/pl";
countrySelect_URLs["pt_PT"] = "http://www.compaq.com/country/pt/pt";
countrySelect_URLs["es_PR"] = "http://welcome.hp.com/country/pr/es/welcome.html";
countrySelect_URLs["ro_RO"] = "http://welcome.hp.com/country/ro/ro/welcome.html";
countrySelect_URLs["ru_RU"] = "http://www.compaq.com/country/ru/ru";
countrySelect_URLs["sr_YU"] = "http://welcome.hp.com/country/cs/sr/welcome.html";
countrySelect_URLs["en_SG"] = "http://www.compaq.com.sg/";
countrySelect_URLs["sk_SK"] = "http://welcome.hp.com/country/sk/sk/welcome.html";
countrySelect_URLs["sl_SI"] = "http://welcome.hp.com/country/si/sl/welcome.html";
countrySelect_URLs["en_ZA"] = "http://www.compaq.com/country/za/en";
countrySelect_URLs["es_ES"] = "http://www.compaq.com/country/es/es";
countrySelect_URLs["sv_SE"] = "http://www.compaq.com/country/se/sv";
countrySelect_URLs["fr_CH"] = "http://www.compaq.com/country/ch/fr";
countrySelect_URLs["de_CH"] = "http://www.compaq.com/country/ch/de";
countrySelect_URLs["zh_TW"] = "http://welcome.hp.com/country/tw/zh/welcome.html";
countrySelect_URLs["en_TH"] = "http://h20426.www2.hp.com/campaign/compaq/th/en/index.asp";
countrySelect_URLs["tr_TR"] = "http://www.compaq.com/country/tr/tr";
countrySelect_URLs["ru_UA"] = "http://www.compaq.com/country/ua/ru";
countrySelect_URLs["en_UK"] = "http://www.compaq.com/country/uk/en";
countrySelect_URLs["en_US"] = "http://www.compaq.com/country/index.html";
countrySelect_URLs["es_UY"] = "http://welcome.hp.com/country/uy/es/welcome.html";
countrySelect_URLs["es_VE"] = "http://welcome.hp.com/country/ve/es/welcome.html";
countrySelect_URLs["en_VN"] = "http://welcome.hp.com/country/vn/en/welcome.html";
countrySelect_URLs["all"] = "http://welcome.hp.com/country/us/en/othercountrieswel.html";
countrySelect_URLs["ar_AR"] = "http://www.compaq.com/country/emea_middle_east/ar/";



	// Function to jump to a URL in a <select> menu
	//  In this case, the name of the array containing the URLs
	//  is determined based on the option value of the pulldown menu selection.
	function jumpToURL(formName,menuName) {
	
	 var obj = eval("document." + formName + "." + menuName);
	 var index = obj.value;
	 
	 var url = eval(menuName + "_URLs[index]");
	 if (index != "") {
	   location.href=url;
	 }
	}