<!--
    function AddLoadEvent(func) {
        var oldonload = window.onload;
        if (typeof window.onload != 'function') {
            window.onload = func;
        } else {
            window.onload = function() {
                if (oldonload) {
                    oldonload();
                }
                func();
            }
        }
    }
    function showhide(div,style) {
		if (document.getElementById(div)) {
		    if (document.getElementById(div).style.display == 'none') {
			    document.getElementById(div).style.display = style;
		    } else {
			    document.getElementById(div).style.display = 'none';
		    }
		}
	}

	function confirmDelete() {
		return confirm('Are you sure you want to delete this? ')
	}
    function showWaitingIcon(element){
        var waitingSpan = document.createElement('span');
        var waitingImg = document.createElement('img');
        waitingImg.src = '/_img/loading.gif';
        waitingImg.setAttribute('width', 20);
        waitingImg.setAttribute('height', 20);
        waitingSpan.appendChild(waitingImg);
        waitingSpan.appendChild(document.createTextNode(' Please wait '));
        element.parentNode.insertBefore(waitingSpan, element);
        element.style.display = 'none';
    }
    function showWaitingIconMini(element){
        var waitingSpan = document.createElement('span');
        var waitingImg = document.createElement('img');
        waitingImg.src = '/_img/loading-sml.gif';
        waitingImg.setAttribute('width', 16);
        waitingImg.setAttribute('height', 16);
        waitingSpan.appendChild(waitingImg);
        waitingSpan.appendChild(document.createTextNode(''));
        element.parentNode.insertBefore(waitingSpan, element);
        element.style.display = 'none';
    }
    function AddLoadingIcon(elementID) {
        $('#' + elementID).show();
    }
    
    /* Script to enable Cookie Detection */
            
    function CheckCookiesEnabled() {  			
		SetCookie('varCook','True','','/','','');
   		return (GetCookie() == "True")
    } 
    function GetCookie() {
		var strName = "varCook";
		if (document.cookie.indexOf(strName) == -1) {
   			return false;
		} else {
		    cookieStart = document.cookie.indexOf(strName);
		    cookieValStart = (document.cookie.indexOf("=", cookieStart) + 1);
		    cookieValEnd = document.cookie.indexOf(";", cookieStart);
		    if (cookieValEnd == -1) {
			    cookieValEnd = document.cookie.length;
		    }
		    cookieValue = document.cookie.substring(cookieValStart, cookieValEnd);
		}
		if (cookieValue = "True") {
			return ("True");
		}
	}
	function SetCookie(name,value,expires,path,domain,secure) {
		var strDNS = GetDNS();
	    	document.cookie = name + "=" +escape(value) +
	        ( (expires) ? ";expires=" + expires.toGMTString() + 1000*60*20 : "") +
        	( (path) ? ";path=" + path : "") +
	        //( (domain) ? ";domain=" + domain : "") +
        	( (domain) ? ";domain=" + strDNS : "") +
	        ( (secure) ? ";secure" : "");
		    return true
	}
	function GetDNS() {
		cookieDomain = document.location.hostname;
	}
	
	function CreateBookmarkLink(title, url) {
      var ua=navigator.userAgent.toLowerCase();
      var isKonq=(ua.indexOf('konqueror')!=-1);
      var isSafari=(ua.indexOf('webkit')!=-1);
      var isMac=(ua.indexOf('mac')!=-1);
      var buttonStr=isMac?'Command/Cmd':'CTRL';
      
      if (window.sidebar) { // Mozilla Firefox Bookmark
         window.sidebar.addPanel(title, url,"");
      } 
      else if( window.external ) { // IE Favorite
         window.external.AddFavorite( url, title); 
      }
      else if(isKonq) {
         alert('You need to press CTRL + B to bookmark our site.');
      }
      else if(window.home || isSafari) { // Safari
         alert('You need to press '+buttonStr+' + D to bookmark our site.');
      }
      else if(isMac) { // Mac
         alert('You need to press Command/Cmd + D to bookmark our site.');
      }
      else if(window.opera && window.print) { // Opera Hotlist
         return true; 
      }
      return false; 
   }
-->