function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function Contenet_PrintContent(id,cssFile,printImmediately, headerHTML, footerHTML) { //v1.0
  var contentID = unescape(id);
  var cssFile = unescape(cssFile);
  var headerHTML = unescape(headerHTML);
  var footerHTML = unescape(footerHTML);
    if (document.getElementById) 
      var contentTag = document.getElementById(id); 
    else if (document.all) 
      var contentTag = document.all[id]; 
    else if (document.layers) 
      var contentTag = document.layers[id]; 

	if (! contentTag) contentTag = document.body;
	printWin = window.open('','','')
	printWin.document.writeln('<html><head>');
	printWin.document.writeln('<title>Print</title>');
	if (cssFile){
		printWin.document.writeln('<link href="'+cssFile+'" rel="stylesheet" type="text/css" />')	;
	}
	printWin.document.writeln('</head><body>');
	printWin.document.writeln(headerHTML);
	printWin.document.writeln(contentTag.innerHTML)
	printWin.document.writeln(footerHTML);
	printWin.document.writeln('</body></html>')	;
	printWin.document.close();
	if(window.focus) printWin.focus(); 
	if(printImmediately) printWin.print();
}