function set_divheight(){
//var x=document.getElementById('mainbody').style.height;
alert(1);
}

function get_windowHeight()
{
   var myWidth = 0, myHeight = 0;
   if( typeof( window.innerWidth ) == 'number' )
   { //Non-IE
  myHeight = window.innerHeight;
   }
   else
   {
  if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
   { //IE 6+ in 'standards compliant mode'
  myHeight = document.documentElement.clientHeight;
   }
   else
   {
  if ( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
  { //IE 4 compatible
 myHeight = document.body.clientHeight;
  }
   }
}
   return myHeight;
}

function clears(obj){
	 obj.value='';
}


function mailme(name,text,subject,body){
	d="kc-scheldezoom";
	e=".nl";
	text="E-mail"
	str='<a title="Verzenden mail aan '+name + '@' + d + e+'" href="mailto:' + name + '@' + d + e  
	if(subject != ""){
		str+='?subject=' + subject
		if(body!="")str+="&body=" + body
	}
	str+= '">'
	if(text==""){
		str+= name + '@' + d + e
	}else{
		str+= text
	}
	str+='</a>'

	document.write(str);
}

function extLinks () {
	if (document.getElementsByTagName) {
		var an = document.getElementsByTagName("a");
		var obj;
		for (var i=0; i<an.length; i++) {
			obj = an.item(i);
	    if (obj.href.indexOf(location.host) == -1 && obj.href && obj.className.indexOf("ongemarkeerd")) {
				obj.rel = "external";
        if (obj.title.length==0){
          obj.title =obj.href;
				}
        if (obj.title.indexOf('mail')>-1) {
    				//hold title
				}
				else {
				  obj.title = "Externe site: " + obj.title;
				}
				var mark = document.createElement("img");
        //only external links not e-mail
				if (obj.title.indexOf('mail')==-1) {
        	mark.src = "images/external.png";
				  mark.alt = "(externe site)";
				  //mark.width = "11";
				  //mark.height = "10";
				  mark.className = "exit";
				  obj.appendChild(mark);
				}  
			}
		}
	}
}