<!--

	// sniff browser
	dom = (document.getElementById) ? true : false;
	ns4 = (document.layers) ? true : false;
	ie 	= (document.all) ? true : false;
	ie4 = ie && !dom;
	ie5 = ie && dom;
	mac = (navigator.appVersion.indexOf("Mac") != -1);
	safari = (navigator.appVersion.indexOf("Safari") != -1);
	macIE5 = ((navigator.appVersion.indexOf("MSIE 5") != -1) && (navigator.appVersion.indexOf("Mac") != -1));
	winIE6 = ((navigator.appVersion.indexOf("MSIE 6") != -1) && (navigator.appVersion.indexOf("Windows") != -1));
	ie4m = ie4 && mac;
	browser = ns4 ? "ns4" : dom ? "dom" : "ie4";
	os = navigator.platform;
	
	function fillWindowHeight(id) 
	{  
		var target = document.getElementById(id);
    	
    	if (document.all) {
    		htmlheight = document.body.offsetHeight;
    		windowheight = document.documentElement.clientHeight;
    	}
		else if (document.layers) {
    		htmlheight = window.innerHeight;
    		windowheight = window.innerHeight;
   	 	}
    	else {
    		htmlheight = document.body.parentNode.scrollHeight;
    		windowheight = window.innerHeight;
    	}
    
    	//alert(htmlheight+'/'+windowheight);
    
    	if ( htmlheight < windowheight ) { 
			document.body.style.height = windowheight + "px"; 
			target.style.height = windowheight + "px";
		}  
		else { 
			document.body.style.height = htmlheight + "px";
			target.style.height = htmlheight + "px";
		}  
	} 
	
	function confirmDelete(url) {
		if(confirm('You are about to delete this record. Continue?'))
			location = url;
		else
			return false;
	}
	
	function addLoadEvent(func) {
  		var oldonload = window.onload;
  		if (typeof window.onload != 'function') {
    		window.onload = func;
  		} else {
    		window.onload = function() {
      			oldonload();
      			func();
   			}
  		}
	}
	
	function rollover(name,img) {
		document.images[name].src = img;
	}
	
//-->

	