// Library with scripts used for the homepage of
// William L.B.J. Dekker, PA0WLB
// http://home.planet.nl/~pa0wlb/

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

	var message="";
	
	function clickIE() {if (document.all) {(message);return false;}}
	function clickNS(e) {if
	(document.layers||(document.getElementById&&!document.all)) {
	if (e.which==2||e.which==3) {(message);return false;}}}
	if (document.layers)
	{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
	else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
	
	document.oncontextmenu=new Function("return false")
	
//Disable browser cut and paste in IE4+ and NS6
	
	function disableselect(e){return false}
	function reEnable(){return true}
	
	if (top.ie4plus) {
		document.onselectstart=new Function ("return false") 
		document.ondragstart=new Function ("return false") 
	}
	else if (top.ns6) {

//		document.onmousedown=disableselect

		document.onmousedown = function () { return false; } // mozilla
		
	}

	function chgPic(name,pic,msg) {
		if (document.images){
			document.images[name].src= eval(pic + ".src");
		}
		window.status=msg;
		return true
	}

// function to scroll to the top of a page 

	function goToTop() {
		window.scroll(0,0);
	}

//----end of library----------------------------------------------

