var message="The content (being graphics, text, sound, video, and applications) of this website is sole property of Shalom Learning Center unless otherwise noted and is protected by copyright laws. It could be viewed, printed in unaltered form with copyright noted, however it cannot be copied, reproduced, sold, or licensed in any way in any medium without prior expressed written consent of Shalom Learning Center."; 
function trapIE4(){ 
if (event.button==2){ alert(message); 
return false; 
} 
} 
function trapNS4(e){ 
if (document.getElementById&&!document.all||document.layers){ 
if (e.which==2||e.which==3){ alert(message); 
return false; }
}
}
if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=trapNS4; 
} 
else if (document.all&&!document.getElementById){ document.onmousedown=trapIE4; 
} 
document.oncontextmenu=new Function("alert(message);return false")
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();
}