function printPage(strId, strColor)
{
        var strWinHTML = "";
	if (!document.getElementById(strId)) {return;}
	if (document.getElementById("contentCellSpecial")) {strWinHTML = document.getElementById("contentCellSpecial").innerHTML;}
	else {strWinHTML = document.getElementById(strId).innerHTML;}
	var winprint=window.open("","Print"); 
	winprint.document.open();
	winprint.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Print</title><link href="cms/GF/GF.css" type="text/css" rel="stylesheet">');
	switch (strColor.toLowerCase()) 
	{
		case "orange": winprint.document.write('<link rel="stylesheet" href="cms/GF/orange.css" type="text/css" />'); break;
		case "blue": winprint.document.write('<link rel="stylesheet" href="cms/GF/blue.css" type="text/css" />'); break;
		case "black": winprint.document.write('<link rel="stylesheet" href="cms/GF/black.css" type="text/css" />'); break;
		case "grey": winprint.document.write('<link rel="stylesheet" href="cms/GF/grey.css" type="text/css" />'); break;
		case "lightgrey": winprint.document.write('<link rel="stylesheet" href="cms/GF/lightgrey.css" type="text/css" />'); break;
		default: ; break;
	}	
	winprint.document.write('</head><body onload="javascript:window.print()"><div style="width: 600px;">'); 
	winprint.document.writeln("<script type='text/javascript'>");
	winprint.document.writeln("function handleErrors() {");
	winprint.document.writeln("return true;");
	winprint.document.writeln("}");
	winprint.document.writeln("window.onerror = handleErrors;");
	winprint.document.writeln("</script>");
	winprint.document.write("<div class='logo'><img src='cms/GF/images/1px.gif' border='0' alt='Logo' width='97' height='82' /></div><br />");
	if (document.getElementById("headingCell")) {winprint.document.write('<br /><br />' + document.getElementById('headingCell').innerHTML + '<br /><br /><br />');}
	winprint.document.write(strWinHTML);          
	winprint.document.write('</div></body></html>'); 
	winprint.document.close(); 
}

function printPageJurist(strId, strColor)
{
        var strWinHTML = "";
	if (!document.getElementById(strId)) {return;}
	if (document.getElementById("contentCellSpecial")) {strWinHTML = document.getElementById("contentCellSpecial").innerHTML;}
	else {strWinHTML = document.getElementById(strId).innerHTML;}
	var winprint=window.open("","Print"); 
	winprint.document.open();
	winprint.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Print</title><link href="cms/GF/GF.css" type="text/css" rel="stylesheet">');
	switch (strColor.toLowerCase()) 
	{
		case "orange": winprint.document.write('<link rel="stylesheet" href="cms/GF/orange.css" type="text/css" />'); break;
		case "blue": winprint.document.write('<link rel="stylesheet" href="cms/GF/blue.css" type="text/css" />'); break;
		case "black": winprint.document.write('<link rel="stylesheet" href="cms/GF/black.css" type="text/css" />'); break;
		case "grey": winprint.document.write('<link rel="stylesheet" href="cms/GF/grey.css" type="text/css" />'); break;
		case "lightgrey": winprint.document.write('<link rel="stylesheet" href="cms/GF/lightgrey.css" type="text/css" />'); break;
		default: ; break;
	}	
	winprint.document.write('</head><body onload="javascript:window.print()"><div style="width: 600px;">'); 
	winprint.document.writeln("<script type='text/javascript'>");
	winprint.document.writeln("function handleErrors() {");
	winprint.document.writeln("return true;");
	winprint.document.writeln("}");
	winprint.document.writeln("window.onerror = handleErrors;");
	winprint.document.writeln("</script>");
	winprint.document.write("<div style=''><img src='cms/GF/images/logo_green.gif' border='0' alt='Logo' width='97' height='82' /></div><br />");
	if (document.getElementById("headingCell")) {winprint.document.write('<br /><br />' + document.getElementById('headingCell').innerHTML + '<br /><br /><br />');}
	winprint.document.write(strWinHTML);          
	winprint.document.write('</div></body></html>'); 
	winprint.document.close(); 
}



function changecss(theClass,element,value) 
{ 
	if( document.styleSheets[0].cssRules ) 
	{
		//Firefox browser
		for (var S = 0; S < document.styleSheets.length; S++)
		{ 
			for (var R = 0; R < document.styleSheets[S].cssRules.length; R++) { 
				if (document.styleSheets[S].cssRules[R].selectorText == theClass) {document.styleSheets[S].cssRules[R].style[element] = value; } 
			} 
		} 
	} 
	else 
	{
		//Explorer browser
		for (var S = 0; S < document.styleSheets.length; S++)
		{ 
			for (var R = 0; R < document.styleSheets[S].rules.length; R++) { 
				if (document.styleSheets[S].rules[R].selectorText == theClass) {document.styleSheets[S].rules[R].style[element] = value; } 
			} 
		} 						
	} 
}			


function checkPngIsOk()
{
    if (navigator.appVersion.indexOf("MSIE")!=-1)
    {
        //OK, we got an Internet Explorer browser. Check version.
        temp = navigator.appVersion.split("MSIE");
        version = parseFloat(temp[1]);
        if (version < 7)
        {
            //Old IE browser, so replace png image with gif image
            return false;
        }
    }
    return true;
}