// 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

	//FOR COMPAQ HOME PAGE
	//Update each country array value with the appropriate URL to the new Compaq Home page
	//Notice that there will not be a new Home page for all countries. The URL for those DO NOT need
	//to be updated nor removed from this list, as this list is simply a reference for the file
	//cpq_country_list.js
	//Updated July 13, 2007 pabonca

var countrySelect_URLs = new Array();
countrySelect_URLs["en_AA"] = "http://welcome.hp.com/country/emea_africa/en/welcome.html";
countrySelect_URLs["fr_AA"] = "http://welcome.hp.com/country/emea_africa/fr/welcome.html";
countrySelect_URLs["es_AR"] = "http://welcome.hp.com/country/ar/es/welcome.html";
countrySelect_URLs["en_AU"] = "http://h20426.www2.hp.com/campaign/compaq/au/en/index.asp";
countrySelect_URLs["de_AT"] = "http://welcome.hp.com/country/at/de/welcome.html";
countrySelect_URLs["be_BY"] = "http://welcome.hp.com/country/by/ru/welcome.html";
countrySelect_URLs["nl_BE"] = "http://welcome.hp.com/country/be/nl/welcome.html";
countrySelect_URLs["fr_BE"] = "http://welcome.hp.com/country/be/fr/welcome.html";
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://welcome.hp.com/country/cz/cs/welcome.html";
countrySelect_URLs["da_DK"] = "http://www.compaq.dk/";
countrySelect_URLs["es_EC"] = "http://welcome.hp.com/country/ec/es/welcome.html";
countrySelect_URLs["et_EE"] = "http://welcome.hp.com/country/ee/et/welcome.html";
countrySelect_URLs["fi_FI"] = "http://www.compaq.fi/";
countrySelect_URLs["fr_FR"] = "http://www.compaq.fr/";
countrySelect_URLs["de_DE"] = "http://welcome.hp.com/country/de/de/welcome.html";
countrySelect_URLs["el_GR"] = "http://welcome.hp.com/country/gr/el/welcome.html";
countrySelect_URLs["en_HK"] = "http://h20426.www2.hp.com/campaign/compaq/hk/en/index.asp";
countrySelect_URLs["zh_HK"] = "http://h20426.www2.hp.com/campaign/compaq/hk/zh/index.asp";
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://h20426.www2.hp.com/campaign/compaq/id/en/index.asp";
countrySelect_URLs["en_IE"] = "http://welcome.hp.com/country/ie/en/welcome.html";
countrySelect_URLs["he_IL"] = "http://welcome.hp.com/country/il/he/welcome.html";
countrySelect_URLs["it_IT"] = "http://www.compaq.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://welcome.hp.com/country/lv/lv/welcome.html";
countrySelect_URLs["lt_LT"] = "http://welcome.hp.com/country/lt/lt/welcome.html";
countrySelect_URLs["fr_BE"] = "http://welcome.hp.com/country/be/fr/welcome.html";
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.mideast.compaq.com/";
countrySelect_URLs["nl_NL"] = "http://www.compaq.nl/";
countrySelect_URLs["en_NZ"] = "http://h20426.www2.hp.com/campaign/compaq/nz/en/index.asp";
countrySelect_URLs["no_NO"] = "http://www.compaq.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://h20426.www2.hp.com/campaign/compaq/ph/en/index.asp";
countrySelect_URLs["pl_PL"] = "http://welcome.hp.com/country/pl/pl/welcome.html";
countrySelect_URLs["pt_PT"] = "http://welcome.hp.com/country/pt/pt/welcome.html";
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://welcome.hp.com/country/ru/ru/welcome.html";
countrySelect_URLs["sr_YU"] = "http://welcome.hp.com/country/cs/sr/welcome.html";
countrySelect_URLs["en_SG"] = "http://h20426.www2.hp.com/campaign/compaq/sg/en/index.asp";
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://welcome.hp.com/country/za/en/welcome.html";
countrySelect_URLs["es_ES"] = "http://www.compaq.es/";
countrySelect_URLs["sv_SE"] = "http://www.compaq.se/";
countrySelect_URLs["fr_CH"] = "http://welcome.hp.com/country/ch/fr/welcome.html";
countrySelect_URLs["de_CH"] = "http://welcome.hp.com/country/ch/de/welcome.html";
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.tr/";
countrySelect_URLs["uk_UA"] = "http://welcome.hp.com/country/ua/ru/welcome.html";
countrySelect_URLs["en_UK"] = "http://www.compaq.co.uk/";
countrySelect_URLs["en_US"] = "http://h18000.www1.hp.com/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://h20426.www2.hp.com/campaign/compaq/vn/en/index.asp";
countrySelect_URLs["all"] = "http://welcome.hp.com/country/us/en/othercountrieswel.html";

	// 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;
	 }
	}