function goNewWin() {
	TheNewWin=window.open('http://facit-digital.3uu.de/uc/ws/umfr2/jan10/?a=WS','Umfrage','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); 
	TheNewWin.blur();
}
function MM_goToURL() {
  document.MM_returnValue = false;
  var i, args=MM_goToURL.arguments; 
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function MM_callJS(jsStr) {
  return eval(jsStr)
}
var fensterbreite;
var fensterhoehe;
if (window && window.innerWidth) {
    fensterbreite = window.innerWidth;
    fensterhoehe = window.innerHeight;
} else if (document && document.body && document.body.offsetWidth) {
    fensterbreite = document.body.offsetWidth;
    fensterhoehe = document.body.offsetHeight;
}
expireDate= new Date;
expireDate.setMonth(expireDate.getMonth()+1); 

function openLayer(){
  document.getElementById("xxumfrage").style.visibility="visible";
}
function closeLayer(){
  document.getElementById("xxumfrage").style.visibility="hidden";
}
function get_cookie(Name) {
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) { 
			offset += search.length
			end = document.cookie.indexOf(";", offset);
			if (end == -1)
				end = document.cookie.length;
				returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}
function loadornot(){
	d=Math.random()*100;
	if (d<=100)
	{
		if (get_cookie('poppeduphome')=='')
		{
			openLayer();
			document.cookie="poppeduphome=yes;expires="+expireDate.toGMTString()+";path=/;";
		}
	}
	else 
	{
		return""
	}
}
function popup(url) {
 fenster = window.open(url, "popup", "width=500,height=400,left=100,top=100,status=no,scrollbars=yes,resizable=no");
 fenster.focus();
}
setTimeout(loadornot,1000);

