<!--
function pageInit() {
	if (document.body.clientHeight) {
		cross('div_ehf').style.height = document.body.clientHeight - 255;
		cross('div_cl').style.height = document.body.clientHeight - 255;
		cross('div_ec').style.height = document.body.clientHeight - 255;
		cross('div_act').style.height = document.body.clientHeight - 255;
	}
}

function setTimeStamp()
{
	var now = new Date();
	var h = now.getHours();
	var m = now.getMinutes();
	var s = now.getSeconds();
	var ts = h + ':' + m + ':' + s;
	bakeCookie('timestamp', ts, 36000000, '.ehf.eu');
	bakeCookie('timestamp', ts, 36000000, '.ehf');
	bakeCookie('timestamp', ts, 36000000, '.ehf.test');
	bakeCookie('timestamp', ts, 36000000, '.test');
	bakeCookie('xxlheight', clHeight(), 36000000, '.ehf.eu');
	bakeCookie('xxlheight', clHeight(), 36000000, '.ehf');
	bakeCookie('xxlheight', clHeight(), 36000000, '.ehf.test');
	bakeCookie('xxlheight', clHeight(), 36000000, '.test');
}

function clHeight() { return document.body.scrollHeight; }
function getRealLeft(element) { xPos = element.offsetLeft; tempElement = element.offsetParent; while (tempElement != null) { xPos += tempElement.offsetLeft; tempElement = tempElement.offsetParent; } return xPos; } 
function getRealTop(element) { yPos = element.offsetTop; tempElement = element.offsetParent; while (tempElement != null) { yPos += tempElement.offsetTop; tempElement = tempElement.offsetParent; } return yPos; } 
function AddZero(num) { if (parseInt(num) < 10) { return "0" + num; } else { return num; } }
function y2k(number) { return (number < 1000) ? number + 1900 : number; }
function dateDiff(dy1, mo1, yr1, dy2, mo2, yr2) { var date1 = new Date(yr1, mo1, dy1); var date2 = new Date(yr2, mo2, dy2); var diffMS = date2.valueOf() - date1.valueOf(); var dtDiff = new Date(diffMS); return parseInt(diffMS / 1000 / 60 / 60 / 24); }
function isDate(dy, mo, yr) { if (dy + mo + yr == "") return true; else if (dy == "" || mo == "" || yr == "") return false; var today = new Date(); yr = ((!yr) ? y2k(today.getYear()) : yr); mo = ((!mo) ? today.getMonth() : mo - 1); if (!dy) return false; var test = new Date(yr, mo, dy); if ((y2k(test.getYear()) == yr) && (mo == test.getMonth()) && (dy == test.getDate())) { return true; } else { return false; } }
function isNumeric(str) { var strValidChars = "0123456789"; var numResult = true; if (str.length == 0) return true; for (i=0; i<str.length && numResult==true; i++) { strChar = str.charAt(i); if (strValidChars.indexOf(strChar) == -1) numResult = false; } return numResult; }
function isEven(value) { return (1 - (value % 2)); } 
function strReplaceAll(str, strFind, strReplace) { var returnStr = str; var start = returnStr.indexOf(strFind); while (start >= 0) { returnStr = returnStr.substring(0, start) + strReplace + returnStr.substring(start + strFind.length, returnStr.length); start = returnStr.indexOf(strFind, start + strReplace.length); } return returnStr; }
function Left(str, n) { if (n <= 0) return ""; else if (n > String(str).length) return str; else return String(str).substring(0,n); }
function Right(str, n) { if (n <= 0) return ""; else if (n > String(str).length) return str; else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n); } }
function RandNr(high) { return 1 + Math.floor(Math.random() * high); }
function toggle(objectID) { var el = cross(objectID); el.style.display = (el.style.display == "none") ? "block" : "none"; }
function cross(objectID) { return document.getElementById ? document.getElementById(objectID) : document.all[objectID]; }
function blockError() { return true; }

function bakeCookie(cookiename, cookievalue, expirementInSec, domain){ if (expirementInSec) { if (domain) { var a = new Date(); a = new Date(a.getTime() +1000*expirementInSec); document.cookie = cookiename + '=' + cookievalue + '; path=/; domain=' + domain + '; expires='+a.toGMTString()+';'; } else { var a = new Date(); a = new Date(a.getTime() +1000*expirementInSec); document.cookie = cookiename + '=' + cookievalue + '; path=/; expires='+a.toGMTString()+';'; } } else { document.cookie = cookiename + '=' + cookievalue + '; path=/;'; } }


//-->
