function setVisibility(bShow,sElementID){
if(bShow){
document.getElementById(sElementID).style.display='block';
}else{
document.getElementById(sElementID).style.display='none';
}
}
function toggleVisibility(sElementID){
if(document.getElementById(sElementID).style.display=='block')
{
document.getElementById(sElementID).style.display='none';
}
else
{
document.getElementById(sElementID).style.display='block';
}
}
function showJustOneDiv(divID){
if(showJustOneDiv.currId)
{
document.getElementById(showJustOneDiv.currId).style.display='none';
}
if(divID==showJustOneDiv.currId)return;
document.getElementById(divID).style.display='block';
showJustOneDiv.currId=divID;
}
showJustOneDiv.currId="";
function getE(id)
{
return document.getElementById(id);
}
function Search(inputID)
{
document.location="/page/search.aspx?q="+getE(inputID?inputID:'searchQuery').value;
}
function OnKeyDownInSearch(e,inputID)
{
var keynum;
if(window.event)
{
keynum=window.event.keyCode;
}
else if(e.which)
{
keynum=e.which;
}
if(keynum==13)Search(inputID);
return keynum!=13;
}
function OnFocusInSearch()
{
getE('searchQuery').style.color='black';
getE('searchQuery').value="";
}
function OnBlurInSearch()
{
if(getE('searchQuery').value=="")
{
getE('searchQuery').style.color='#666666';
getE('searchQuery').value="Zoeken";
}
}
function OnFocusInChat()
{
var elm=getE('questionChat');
if(!OnFocusInChat.defaultText)OnFocusInChat.defaultText=elm.value;
if(elm.value==OnFocusInChat.defaultText)
{
elm.value='';
elm.style.color='black';
}
}
function OnBlurInChat()
{
var elm=getE('questionChat');
if(elm.value=="")
{
elm.style.color='#dd';
elm.value=OnFocusInChat.defaultText;
}
}
function showServiceWindow(bShow,sPage,sStage){
if(bShow&&screenTop>9999){
sPage=sPage.toLowerCase();
qs="?sTool="+sPage+"&sStage="+sStage;
serviceWindow=window.open("http://www.zwitserleven.nl/root/popups/popupAbort/afbreekpagina2.asp"+qs,"afgebroken","toolbars=0, height=560, width=590, resizable=1");
}
}
function preventFlashDubbleClick()
{
return;
var objects=document.getElementsByTagName("object");
for(var i=0;i<objects.length;i++)
{
objects[i].outerHTML=objects[i].outerHTML;
}
}
function showOverlay(e,source,html)
{
if(showOverlay.timeout)clearTimeout(showOverlay.timeout);
var m=getMousePosition(e);
var overlay=getE('overlay');
overlay.style.display='block';
overlay.innerHTML=html;
overlay.style.top=(m.y-10-overlay.clientHeight)+'px';
overlay.style.left=(m.x-20)+'px';
showOverlay.timeout=setTimeout("hideOverlay()",3000);
source.onmouseout=hideOverlay;
}
function hideOverlay()
{
getE('overlay').style.display='none';
}
function getMousePosition(e){
var posx=0;
var posy=0;
if(!e)var e=window.event;
if(e.pageX||e.pageY){
posx=e.pageX;
posy=e.pageY;
}
else if(e.clientX||e.clientY){
posx=e.clientX+document.body.scrollLeft
+document.documentElement.scrollLeft;
posy=e.clientY+document.body.scrollTop
+document.documentElement.scrollTop;
}
return{x:posx,y:posy};
}
function detailWWW(initialen)
{
var href;
if(typeof(initialen)=='string')
href='http://pkgprd:21080/docroot/wiewatwaar/detail_wiewatwaar.jsp?INITIALEN='+initialen;
else
href='http://pkgprd:21080/docroot/wiewatwaar/detail_wiewatwaar.jsp?INITIALEN='+initialen.href;
var breedte=580;
var hoogte=358;
var left=screen.width-breedte-7;
var top=screen.height-hoogte-60;
var schermopties='width='+breedte+',height='+hoogte+',scrollbars=no,left='+left+',top='+top;
Scherm=window.open(href,'Detail',schermopties);
Scherm.focus();
}
function writeHTML(html)
{
document.write(html);
}
function getElementsByClassName(oElm,strTagName,oClassNames){
var arrElements=(strTagName=="*"&&oElm.all)?oElm.all:oElm.getElementsByTagName(strTagName);
var arrReturnElements=new Array();
var arrRegExpClassNames=new Array();
if(typeof oClassNames=="object"){
for(var i=0;i<oClassNames.length;i++){
arrRegExpClassNames.push(new RegExp("(^|\\s)"+oClassNames[i].replace(/\-/g,"\\-")+"(\\s|$)"));
}
}
else{
arrRegExpClassNames.push(new RegExp("(^|\\s)"+oClassNames.replace(/\-/g,"\\-")+"(\\s|$)"));
}
var oElement;
var bMatchesAll;
for(var j=0;j<arrElements.length;j++){
oElement=arrElements[j];
bMatchesAll=true;
for(var k=0;k<arrRegExpClassNames.length;k++){
if(!arrRegExpClassNames[k].test(oElement.className)){
bMatchesAll=false;
break;
}
}
if(bMatchesAll){
arrReturnElements.push(oElement);
}
}
return(arrReturnElements)
}
if(window.name=='page_view')
{
document.write(unescape('%3Cscript src="'
+(location.host.indexOf('.')<0?'http://nlnew':'https://www.zwitserleven.nl')+'/cms/cms4/js/page_assist.js"%3E%3C/script%3E'));
}