function favoritPage()
{
	var jspTitle = document.title;
	var curUrl = window.location;
	if (window.sidebar) {
		window.sidebar.addPanel(jspTitle, curUrl,"");
	} else if( document.all ) {
		window.external.AddFavorite( curUrl, jspTitle);
	} else if( window.opera && window.print ) {
	return true;
	}
}

function printPage()
{
	
	
	/*var hkey_root,hkey_path,hkey_key
	hkey_root="HKEY_CURRENT_USER"
	hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\"
	//ÉèÖÃÍøÒ³´òÓ¡µÄÒ³Ã¼Ò³½ÅÎª¿Õ
	
	try{
	var RegWsh = new ActiveXObject("WScript.Shell")
	hkey_key="header"
	RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
	hkey_key="footer"
	RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
	}catch(e){}*/	
	
	window.print();
}
var i = 50; 
var j = 15; 
var t=15;
function changeFontSize(curSelected,lanVersion)
{
	if(curSelected=="1"){
		if(lanVersion == "cn")
			document.getElementById('dpmCss').href = '/files/jsp/web/css/dpm_.css';
		else
			document.getElementById('dpmCss').href = '/files/jsp/web_uk/css/dpm_.css';
	}
	if(curSelected=="2"){
		if(lanVersion == "cn")
			document.getElementById('dpmCss').href = '/files/jsp/web/css/dpm.css';
		else
			document.getElementById('dpmCss').href = '/files/jsp/web_uk/css/dpm.css';
	}
	  /* var detailBody = document.getElementById('detailBody');
	   if(!detailBody){
	    return;
	   }
	   var detailBodyChild = detailBody.childNodes;
	   detailBody.style.fontSize = curSelected + 'px';
	  
	   for(var i = 0; i < detailBodyChild.length; i++){
	    if(detailBodyChild[i].nodeType == 1){
	     detailBodyChild[i].style.fontSize = curSelected + 'px';
	    }
	   } */ 
}