function print(){
	window.location = "http://h41320.www4.hp.com/cgi-bin/pf-utf8.cgi?in="+escape(window.location);
}

function check_language_content(the_form) {
	var the_element = the_form.altLangSelect;
	var h = location.href;
	if (h.indexOf(".html") < 1) {
		// this is the live CDA - pick up redirect URL from the option
		if (the_element.options[the_element.selectedIndex].value==-1 || the_element.options[the_element.selectedIndex].value=='') {
			for ( i=0; i<the_element.options.length; i++	) {
				if ( the_element.options[i].id=='en_UK' ) {
					location.href=the_element.options[i].value;
					return false;
				}
			}
			var msg ='Please select a country';
			the_form.Country.focus();
			alert(msg);
			return false;
		}else{
			location.href=the_element.options[the_element.selectedIndex].value;
			return false;
		}
	} else {
		// this is the static site
		var my_page = h.substr(h.lastIndexOf('/')+1);
		var url_base = h.substr(0, h.lastIndexOf('/')-6);

		// pick up new locale from the selected value parameter
		if (the_element.options[the_element.selectedIndex].value==-1 || the_element.options[the_element.selectedIndex].value=='') {
			new_locale = 'en_UK';
		} else {
			new_locale = the_element.options[the_element.selectedIndex].id;
		}
		new_locale = new_locale.toLowerCase();

		new_url = '/' + new_locale.substr(3,2) + '/' + new_locale.substr(0,2) + '/' + my_page;

		location.href = url_base + new_url;
	}
}

function check_language_home(the_form) {
	var the_element = the_form.Country;
	var h = location.href;
	if (h.indexOf(".html") < 1) {
		// this is the live CDA - pick up redirect URL from the option
		if (the_element.options[the_element.selectedIndex].value==-1 || the_element.options[the_element.selectedIndex].value=='') {
			for ( i=0; i<the_element.options.length; i++	) {
				if ( the_element.options[i].id=='en_UK' ) {
					location.href=the_element.options[i].value;
					return false;
				}
			}
			var msg ='Please select a country';
			the_form.Country.focus();
			alert(msg);
			return false;
		}else{
			location.href=the_element.options[the_element.selectedIndex].value;
			return false;
		}
	} else {
		// this is the static site
		var my_page;
//		for ( i=0; i<the_element.options.length; i++	) {
//			if ( the_element.options[i].value.indexOf(".html") > 0 ) {
//				my_page = the_element.options[i].value;
//				break;
//			}
//		}
		my_page='2-3.html';
		var url_base = h.substr(0, h.lastIndexOf('/')-6);

		// pick up new locale from the selected value parameter
		if (the_element.options[the_element.selectedIndex].value==-1 || the_element.options[the_element.selectedIndex].value=='') {
			new_locale = 'en_UK';
		} else {
			new_locale = the_element.options[the_element.selectedIndex].id;
		}
		new_locale = new_locale.toLowerCase();
		new_url = '/' + new_locale.substr(3,2) + '/' + new_locale.substr(0,2) + '/' + my_page;

		location.href = url_base + new_url;
	}
}
// ezBuy - display DIV
function ezOn(partnr) {
	if (document.layers) { // old NS browsers
		document.getElementById(partnr).visibility='show';
	} else {
		document.getElementById(partnr).style.visibility='visible';
	}
}

function ezClose(partnr) {
	if (document.layers) { // old NS browsers
		document.getElementById(partnr).visibility='hide';
	} else {
		document.getElementById(partnr).style.visibility='hidden';
	}
}

function whichBrs() {
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1) return 'opera';
if (agt.indexOf("staroffice") != -1) return 'staroffice';
if (agt.indexOf("beonex") != -1) return 'beonex';
if (agt.indexOf("chimera") != -1) return 'chimera';
if (agt.indexOf("netpositive") != -1) return 'netpositive';
if (agt.indexOf("phoenix") != -1) return 'phoenix';
if (agt.indexOf("firefox") != -1) return 'firefox';
if (agt.indexOf("safari") != -1) return 'safari';
if (agt.indexOf("skipstone") != -1) return 'skipstone';
if (agt.indexOf("msie") != -1) return 'msie';
if (agt.indexOf("netscape") != -1) return 'netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'netscape';} else if (agt.indexOf(' ') != -1)
return navigator.userAgent.substr(0,agt.indexOf(' '));
else return navigator.userAgent;
}
