var dom = document.getElementById ? true:false;
var nn4 = document.layers ? true:false;
var ie4 = document.all ? true:false;



function getHeight() {
    if(ie4 && !dom){
            contentH = parseInt(document.all.content.scrollHeight);
    }
    else if(nn4){
            contentH = document.contentClip.document.content.clip.bottom;
    }
    else if(dom){
            contentH = parseInt(document.getElementById("container").offsetHeight);
    }
    return contentH;

}



function setHeight(H) {
	contentH = getHeight()
    if(ie4 && !dom){
           // contentH = parseInt(document.all.content.scrollHeight);
            document.getElementById("container").style.height = contentH-142 +"px";
    }
    else if(nn4){
           // contentH = document.contentClip.document.content.clip.bottom;
            document.getElementById("container").style.height = contentH-127 +"px";
    }
    else if(dom){
            // contentH = parseInt(document.getElementById("container").offsetHeight);
			 // alles behalve Explorer
			if (self.innerHeight) {
				 document.getElementById("container").style.height = contentH-127 +"px";
			}// Explorer 6 Strict Mode
			else if (document.documentElement && document.documentElement.clientHeight) {
				document.getElementById("container").style.height = contentH-142 +"px";
			}// andere Explorers
			else if (document.body) {
				document.getElementById("container").style.height = contentH-142 +"px";
			}
    }
    //tijdelijke oplossing voor div/mozilla probleem
	if (navigator.appName.indexOf('Microsoft') == -1) {
		if (contentH > H) H = contentH;
	 document.getElementById("container").style.height = H +"px";
	}

}



function IsNumeric(strString) {
   //  check for valid numeric strings	
   var strValidChars = "0123456789";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
}

/**
*
*  URL encode / decode
**/
function encode(src)
{
    return encodeURIComponent(src);
}
function decode(src)
{
    return decodeURIComponent(src);
}

function hylight(id)
{
        if ((document.all) && (navigator.userAgent.indexOf('Opera')== -1))
        {    
             document.getElementById("line"+id).className =  "leden_naamkapitaal_actief";            
             document.getElementById("leden"+id).className = "leden_beknopt_actief";            
        }
        else
        {
            document.getElementById("line"+id).setAttribute("class","leden_naamkapitaal_actief");
            document.getElementById("leden"+id).setAttribute("class","leden_beknopt_actief");
        }          
}

function offlight(id)
{
        if ((document.all) && (navigator.userAgent.indexOf('Opera')== -1))
        {
            document.getElementById("line"+id).className =  "leden_naamkapitaal";            
            document.getElementById("leden"+id).className = "leden_beknopt";     
        }
        else
        {
            document.getElementById("line"+id).setAttribute("class","leden_naamkapitaal");
            document.getElementById("leden"+id).setAttribute("class","leden_beknopt");
        }
   
}
