function ajaxload(target_id,target_content){
		
        $.get(target_content, function(data){
            document.getElementById(target_id).innerHTML = data;			
        });
}
function ajaxmess(target_content){
		
        $.get(target_content, function(data){
            document.getElementById('mess_box').innerHTML = data;
			fl_toggle('mess_box','1');
        });
}
function docId(id){
	return document.getElementById(id);	
}function emptyBox(box){
	box.value = '';
	box.style.color = '#000000';
} var sw;
 var sh;

function updateViewPort(){
	 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
	 if (typeof window.innerWidth != 'undefined')
	 {
		  sw = window.innerWidth,
		  sh = window.innerHeight
	 }
	 
	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
	
	 else if (typeof document.documentElement != 'undefined'
		 && typeof document.documentElement.clientWidth !=
		 'undefined' && document.documentElement.clientWidth != 0)
	 {
		   sw = document.documentElement.clientWidth,
		   sh = document.documentElement.clientHeight
	 }
	 
	 // older versions of IE
	 
	 else
	 {
		   sw = document.getElementsByTagName('body')[0].clientWidth,
		   sh = document.getElementsByTagName('body')[0].clientHeight
	 }

	// alert(sw+'x'+sh);	
}

window.onresize = function (){
	updateViewPort();
}
window.onload = function () {
	updateViewPort();
}
function prompt_url(vraag,url){
	var del = confirm(vraag);
	if (del == true){
		location.href=url;
	}
}function fl_toggle(id,slide){
	element = document.getElementById(id);
	if(element.style.display=='block'){
		if(slide=='1'){
			$("#"+id).slideUp(200);
		}else{
			element.style.display = 'none';
		}
	}else{
		if(slide=='1'){
			$("#"+id).slideDown(400);
		}else{
			element.style.display = 'block';
		}
	}
}