function printerfriendly()
{
	document.write ("<img src=\"http://welcome.hp-ww.com/img/hpweb_1-2_prnt_icn.gif\" width=\"19\" height=\"13\" alt=\"可打印版本\" border=\"0\"><a href=\"http://www.hp.com/cgi-bin/pf-new.cgi?in=" + location.href + "\" class=\"udrlinebold\">可打印版本</a>");
}

function highlight(name)
{
	if (global == name)
		document.write ("<b>" + name + "</b>");
	else
		document.write (name);
}

function outofsite(url,cty)
{
		window.location.href="/other/resources/hk/zh/outofsite.asp?url=" + url + "&cty=" + cty;
}

function jump() 
{
	//var index = document.dropdown.language.selectedIndex;
	//url = eval("document.dropdown.language.options[" + index + "].value");
	//window.location.href=(url);

        var index = document.dropdown.language.selectedIndex;
	var path = location.pathname;
	var url = "";

	if (path.search(/en/) == -1)
		url = path.replace(/zh/,"en");
	else
		url = path.replace(/en/,"zh");
				
	window.location.href=(url);

}

var rnd_efficiency = new Array();
rnd_efficiency[1] = "<a href='http://h20423.www2.hp.com/program/printefficiency/hk/zh/print_efficiency.asp'><img src='/index/images_oov/hk/zh/print_eff_chiclet_01.gif' width='148' height='110' border='0' alt='了解HP在效率上所具備的競爭優勢，如何助您節省墨水及金錢'></a>";
rnd_efficiency[2] = "<a href='http://h20423.www2.hp.com/program/printefficiency/hk/zh/print_efficiency.asp'><img src='/index/images_oov/hk/zh/print_eff_chiclet_02.gif' width='148' height='110' border='0' alt='了解HP打印系統如何有效率地助您節省墨水及金錢'></a>";

function randomizer(category) {
	rndimagenum = Math.ceil(Math.random() * (eval("rnd_" + category + ".length") - 1));
	eval ("items = rnd_" + category + "[" + rndimagenum + "];");
	rndswf = items;
	
	document.write(rndswf);
}