document.cookie="resolution="+screen.width+"x"+screen.height;
document.cookie="colordepth="+screen.colorDepth;
document.cookie="timezone="+Math.round (new Date ().getTimezoneOffset()/60);
document.cookie="javaEnabled="+(navigator.javaEnabled() ? "yes" : "no"); 
			
function setFooter() {
	if (document.getElementById) {
		var windowHeight=getWindowHeight();
		if (windowHeight>0) {
			var contentHeight=document.getElementById('container').offsetHeight+150;
			var footerElement=document.getElementById('ondermenu');
			var footerHeight=footerElement.offsetHeight;
			if (windowHeight-(contentHeight+footerHeight)>=0) {
				footerElement.style.position='relative';
				footerElement.style.top=(windowHeight-(contentHeight+footerHeight))-50+'px';
			}
			else {
				footerElement.style.position='static';
			}
		}
	}
}



function getWindowHeight() {

	var windowHeight=0;
	if (typeof(window.innerHeight)=='number') {
		windowHeight=window.innerHeight;
	}
	else {
		if (document.documentElement&&document.documentElement.clientHeight) {
			windowHeight=document.documentElement.clientHeight;
		}
		else {
			if (document.body&&document.body.clientHeight) {
			windowHeight=document.body.clientHeight;
			}
		}
	}
	
	return windowHeight;
}


function loadmanager() { 
  var url='/manager.dws?id='+id;
  var name='Smartsite5Manager';
  var w=screen.width-200;
  var h=screen.height-300;
   openw(url,name,w,h);
}

function openw(url,name,w,h,opts) {
   var x = 100;
   var y = 100;
   if (opts==null){opts='toolbar=no,location=no,resizable=yes,status=yes,scrollbars=yes,menubar=no';}
   if (parseInt(navigator.appVersion)>=4){
   return window.open(url,name,opts + ',left='+x+',top='+y+',width='+w+',height='+h)
} 
   else{ return window.open(url,name,opts + ',width='+w+',height='+h) }
}

function resizenotulen() {
 Schermbreedte=680
 Schermhoogte = screen.availHeight-250;

 self.moveTo(0,0);
 self.resizeTo(Schermbreedte,Schermhoogte);
}

function resizeformwindow() {
 Schermbreedte=800
 Schermhoogte = screen.availHeight-150;

 self.moveTo(0,150);
 self.resizeTo(Schermbreedte,Schermhoogte);
}


function targetBlank(object,target) {

  // Get the URL 
  link = object.href;

  // If target == "_self", don't ask confirmation from user
  if(target=='_self') {
	window.open(link,target);
  }
  else {

    // Ask confirmation
    if (confirm("U heeft een externe link ("+link+") aangeroepen.\n\nWilt u een nieuw venster openen en verder gaan?") ) {
	// Open the page
	window.open(link,target);
    }
    else {
	// Alert the user the page didn't opened
	alert("De pagina is niet geopend!");
    }
  }
}


/*************************/
/* aanpassing webrichtlijnen */
/***********************/
function onfocusHandler() {
	if(document.getElementById('fldTerms').value=='zoeken...') {
		document.getElementById('fldTerms').value='';
	}
}

function onblurHandler() {
	if(document.getElementById('fldTerms').value=='') {
		document.getElementById('fldTerms').value='zoeken...';
	}
}

function onfocusHandlerExtra() {
	if(document.getElementById('extrafldTerms').value=='zoeken...') {
		document.getElementById('extrafldTerms').value='';
	}
}

function onblurHandlerExtra() {
	if(document.getElementById('extrafldTerms').value=='') {
		document.getElementById('extrafldTerms').value='zoeken...';
	}
}