// Library with common functions
// Author : William L.B.J. Dekker
// (C) 2004, axcessPro
// http://www.axcesspro.com/

//Disable right click script

	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.onclick=reEnable
	}

// function to change rollover images

	function chgImg(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----------------------------------------------
