var gAutoPrint = true; // Flag for whether or not to automatically call the print function
		
function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
			{
				html += headTags[0].innerHTML;
			}
		}
		html += '\n</HE' + 'AD>\n<BODY style=\"background-color: #FFFFFF;\">\n<img src="/images/design01/print_logo.jpg"><hr size="1" color="#cccccc">\n';
				
		var printReadyElem = document.getElementById("printReady");
				
		if (printReadyElem != null)
		{
			html += printReadyElem.innerHTML;
			html += '\n';
		}
		else
		{
			alert("Could not find the printable section");
			return;
		}	
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
				
		var printWin = window.open("","printSpecial","height=500,width=600,screenX=0,left=0,screenY=0,top=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
		{		
			printWin.print();
		}
	}
	else
	{
		alert("Sorry, the print feature is only available in modern browsers.");
	}
}

function openPopup (url,width,height,scroll) {

if (width == null || width==0) { width = screen.availWidth; LeftPosition=screen.availWidth }

else {LeftPosition = (screen.availWidth) ? (screen.availWidth-width)/2 : 0; }

if (height == null || height==0) { height = screen.availHeight * 0.8; TopPosition=screen.availHeight * 0.1 }

else { TopPosition = (screen.availHeight) ? (screen.availHeight-height)/2 : 0; }

 

if (scroll == null) {

            scroll = 'yes';

}

settings = 'height='+height+',width='+width+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status,resizable';

url = url+'?url='+this.location; 

win = window.open(url,'',settings);

}