function popup(url, w, h) {
	var neu = window.open(url, 'popup', 'width='+w+', height='+h+', top=20, left=20, scrollbars=yes');
	neu.focus();
}

function sh(lay) {
	var el = document.getElementById(lay);

	if (el.style.display == 'block') {
		document.getElementById(lay).style.display = "none";
	}else {
		document.getElementById(lay).style.display = "block";
	}
	
}

function readCookie(cName) {
	var cContent = document.cookie.split(";");
            for (i=0; i<cContent.length; i++) {
                cParts = cContent[i].split("=");
                if (cParts[0].charAt(0) == ' ') {
                    cParts[0] = cParts[0].substring(1, cParts[0].length);
                }
                if (cParts[0] == cName) {
                    return unescape(cParts[1]);
                }
            }
            return "null";
        }
        
function writeCookie(cName, cContent, cDuration) {
            tempStr = cName + "=" + escape(cContent);
            if (cDuration) {
                var cDate = new Date();
                cDate.setTime(cDate.getTime() + cDuration);
                tempStr += "; expires=" + cDate.toGMTString() + "; path=/";
            }
            document.cookie = tempStr;
        }



