	/*
	 *	the print icon on the panel calls this function. check browser
	 *	if it is IE have to use the widget and a new window: getPrintPanelLink()
	 *	if anything but IE use the dom manipulation to print the panel: printThePanel()
	 */
	var checkPrintPanel = function()
	{
		var theBrowser = detectBrowser();
		if( theBrowser[0].toLowerCase() == 'microsoft internet explorer' )
			getPrintPanelLink();
			else
			printThePanel();
	}
	var getPrintPanelLink = function()
	{
		var theTextForm = DOM.get('print_text');
		theTextForm.value = theText;
		var thePrintTitleForm = DOM.get('print_title');
		var theHeaderDiv = DOM.get('popupPanel_h');
		thePrintTitleForm.value = theHeaderDiv.innerHTML;
		document.panelPrintForm.submit();
	}
	var printThePanel = function()
	{
		DOM.addClass('main_header', 'hidden_for_printing');
		DOM.addClass('main_body', 'hidden_for_printing');
		DOM.addClass('main_footer', 'hidden_for_printing');
		var menub = DOM.get('menubrowser_popuppanel');
		if(menub) menub.style.display = 'none';
		var thePrintDiv = DOM.get('popupPanel_c');
		var theXY = DOM.getXY('popupPanel_c'); //get current location of panel
		var newXY = new Array(10,10); //coords for new location of panel for printing
		DOM.setXY('popupPanel_c', newXY, false); //set to new coords
		window.print();
		alert("Click ok after the document has been sent to the printer."); //need to pause...
		DOM.setXY('popupPanel_c', theXY, false); //set coords back to where they were
		DOM.removeClass('main_header', 'hidden_for_printing');
		DOM.removeClass('main_body', 'hidden_for_printing');
		DOM.removeClass('main_footer', 'hidden_for_printing');
		if(menub) menub.style.display = 'block';
	}

