
function getStyle(el,stylePropCss, stylePropJS){
	 if (window.getComputedStyle)
	 	 var y = window.getComputedStyle(el,null).getPropertyValue(stylePropCss);
	 else if (el.currentStyle)
	  	var y = eval('el.currentStyle.' + stylePropJS);
	 return y;
}

function hideDiv(id) {
	divEl = document.getElementById(id);
	divEl.style.visibility='hidden';
}

function popUp(URL) {
	cookieVal = readCookie('mkPopAdv');
	if(cookieVal==null) {
		createCookie('mkPopAdv', '1', '2');
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open('" + URL + "', '" + id + "', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=0, width=400, height=300, left=376, top=282');");
	}
}

function createCookie(name,value,hours) {
	if (hours) {
		var date = new Date();
		date.setTime(date.getTime()+(hours*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}