function sitchLang(pr) {
	document.location = (pr != null ? pr : "") + "swithLang?lang="
			+ $('juLang').value;
}
function emailEd(manu, refe) {

	x = screen.width / 2 - 250;
	y = screen.height / 2 - 135;
	features = 'scrollbars=yes,width=500,height=320,top=' + y + ',left=' + x;
	window.open('cnf/email.ed?manu=' + manu + '&refe=' + refe, '', features);

}

function printDiv() {

	if(document.getElementById('dvContent') == null)
		return;
	
	var divToPrint = document.getElementById('dvContent');
	 
	 var headTag = "\n<head>";
	 if (document.getElementsByTagName != null) {
		 var headTags = document.getElementsByTagName("head");
		 if (headTags.length > 0)
			 headTag += headTags[0].innerHTML;		 
	 }
	 headTag += "</head>\n";
	 var dvWidth = document.getElementById('dvContent').offsetWidth; 
	 x = screen.width / 2 - (parseInt(dvWidth) / 2);
	 y = screen.height / 2 - 250;
	 features = "scrollbars=yes,menubar=1,width="+dvWidth+",top="+y+",left="+x;	
	
	 var newWin = window.open("", "", features);

	 newWin.document.open();
	 newWin.document.write("<html>"+headTag+'<body dir="'+document.getElementById('tbHome').dir+'">'+divToPrint.innerHTML+"</body></html>");
	 newWin.document.close();
	 newWin.print();
}
/*
window.addEvent('domready', function() {
	showTip();
});
function showTip() {
	if ($$('a.tipz') == "" || $$('a.tipz') == null)
		return;

	var tipz = new Tips('.tipz', {
		className : 'tipz',
		fixed : true,
		hideDelay : 50,
		showDelay : 50
	});

}
*/
