function pagePrint() {
	var pageUrl = document.location.href;
	var tPrintLink = '' + pageUrl + ( ( pageUrl.indexOf('?') > 0 ) ? '&' : '?' ) + '_view=print';
	var tWin = window.open( tPrintLink, 'print', 'scrollbars=yes,status=no,width=800,height=850' );
}



function mmenu(id, display, stayActive) {
	if ( ('#'+id).length > 0 ) {
		document.getElementById(id).style.display=display;
		if(display=='block') {
			document.getElementById('mm'+id.substr(2)).className='active';
		}
		else {
			if(stayActive)
				document.getElementById('mm'+id.substr(2)).className='active';
			else
				document.getElementById('mm'+id.substr(2)).className='';
		}
	}
}

function ShowHideLayer(divID) {
	var box = document.getElementById(divID);	
		
	if(box.style.display == "none" || box.style.display=="") {
		box.style.display = "block"; 		
	}
	else {
		box.style.display = "none";		
	}
}
