<!--
    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.alt = 'Please wait';
        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.gif';
        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;
	}
-->
