<!--

	//---------Function to control size of page image
	function enlargeImage(id, newwidth){ //enlarge database display image
		var strHtml = document.getElementById(id).src;	
		document.getElementById(id).src = strHtml.substring(0,(strHtml.length - 3)) + newwidth;
	}
	
	function isNull(a) { //bool - check whether an item exists in the document.getElementById collection
	    return typeof a == 'object' && !a;
	}

	//---------Function to control the navigation
	activateMenu = function(nav) {
		if (document.all && document.getElementById(nav).currentStyle) {  
	        var navroot = document.getElementById(nav);
	        var lis=navroot.getElementsByTagName("LI");  
	        for (i=0; i<lis.length; i++) {
	            if(lis[i].lastChild.tagName=="UL"){
	             	lis[i].onmouseover=function() {	
	                   this.lastChild.style.display="block";
	                }
	                lis[i].onmouseout=function() {
	                   this.lastChild.style.display="none";
	                }
	            }
	        }
	    }
		if (document.all&&document.getElementById) {
			highlightnavRoot = document.getElementById("page-navigation");
			for (i=0; i<highlightnavRoot.childNodes.length; i++) {
				node = highlightnavRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
		  			}
		  			node.onmouseout=function() {
		  				this.className=this.className.replace(" over", "");
		   			}
		   		}
				
		  	}
		}
	}
	
	/*window.onload= function(){
		activateMenu("page-navigation");
	}*/

	var message="Function Disabled";
	var highlighted = "Image0";
	var imageNumber = '0';
	
	//---------Function to STOP users Retreving the view source
	function click(e) {
		/*if (document.all) {
			if (event.button == 2) {
				alert(message);
				return false;
			}
		}
		if (document.layers) {
			if (e.which == 3) {
				alert(message);
				return false;
			}
		}*/
	}
	
	if (document.layers) {
		//document.captureEvents(Event.MOUSEDOWN);
	}
	
	//document.onmousedown=click;
	
	//---------Function To change Images with a 2 roll over state
	function exchange(imagename,picture){
		if ((document.images) && (imagename!=highlighted)){
		    document.images[imagename].src=picture;
	    }
	}
	
	//---------Function to keep a roll over image in 2nd rollover state
	function highlight(imagename, picture){
		if (document.images){
		    if (highlighted != "Image0"){
		        document.images[highlighted].src= imageNumber + ".gif";
	        }
		    highlighted=imagename;
		    imageNumber = picture;
		    document.images[imagename].src= picture + "_s.gif";
	    }
	}
	
	function BadCharsOut(fieldValue){
		var result
		
		result = ReplaceStrip(fieldValue, "'", "&rsquo;");
		result = ReplaceStrip(result, "’", "&rsquo;");
		result = ReplaceStrip(result, "\"", "&quot;");
		
		return result;
	}
	
	function createArray(n, init){
		var i = 0;
		
		this.length = n;
		for(i = 0; i < n; i++){
			this[i] = init;
		}
		
		return this;
	}
	
	function multiDimentionsArray(n, n2, init) { 
		var i = 0;
		var array1 = new createArray(n, '');
		
		for (i = 0 ; i < n ; i++) {
			array1[i] = new createArray(n2, init);
		}
		
		return array1;
	}
	
	//getProperties(objLayer, "NewsLayer");
	function getProperties(obj,objName) { 
	    var properties = ""; 
	    var newWindow = window.open("","","HEIGHT=400,WIDTH=350,status=1,resizable=1,scrollbars=1");
	
		newWindow.document.write("<HTML><HEAD><TITLE>"+objName+"</TITLE></HEAD></HTML>")
		
		properties = '<HTML><BODY><TABLE BORDER="2" WIDTH="90%" COLS="2">';
	    properties += '<TR ALIGN="left" BGCOLOR="lightgrey"><TH>Property</TH><TH>Value</TH></TR>';
	    
	    for (var propName in obj) { 
	   		properties +="<TR><TD>"+propName+"</TD><TD>"+obj[propName]+"&nbsp;</TD></TR>";
	    } 
	    properties +="</TABLE></BODY></HTML>";
		
		newWindow.document.write(properties);
		newWindow.document.close();
	} 
	
	function openWin( windowURL, windowName, windowFeatures ) { 
		window.open( windowURL, windowName, windowFeatures ) ; 
	}
//-->