///////////////////////////////////////////////////////////////////////////////////////////////////
///////////																				///////////
///////////					DIT IS EEN FUNCTIES SCRIPT									///////////
///////////					HIER BEVINDEN ALLE JAVASCRIPT								///////////
///////////					FUNCTIES ZICH.												///////////
///////////																				///////////
///////////////////////////////////////////////////////////////////////////////////////////////////
function enterkey(evt) {
	var charCode = (evt.which) ? evt.which : evt.keyCode;
	if (charCode == 13) {
		document.forms["loginform"].submit();
	}
}

function show_month(month){
	for(var x=1;x<=12;x++){
		if(document.getElementById("maand_"+x).style.display!="none"){
			document.getElementById("maand_"+x).style.display="none";
		}
		document.getElementById("maand_"+month).style.display="inline-block";
	}
}function tabbladen(type_name, amount, active){	for(var x=0; x<amount; x++)	{		if(x==active)		{			document.getElementById(type_name+'_tab_page'+x).style.opacity="0.01";			document.getElementById(type_name+'_tab_page'+x).style.display="table-cell";			document.getElementById(type_name+'_tab_'+x).style.backgroundColor="#fff";
			document.getElementById(type_name+'_tab_'+x).style.borderBottomWidth="0px";
			
			if (typeof window.intervalID != 'undefined') {
				clearInterval(intervalID);
			}
			intervalID=window.setInterval('fade("'+type_name+'_tab_page'+x+'")',5);		}		else if(x!=active)		{			document.getElementById(type_name+'_tab_page'+x).style.display="none";
			document.getElementById(type_name+'_tab_'+x).style.backgroundColor="#eaeaea";
			document.getElementById(type_name+'_tab_'+x).style.borderBottomWidth="1px";		}	}}
function fade(tab) {
	var opacity = document.getElementById(tab).style.opacity;
	if (opacity < 1) {
		document.getElementById(tab).style.opacity = parseFloat(opacity) + 0.01;
	}
	else {
		clearInterval(intervalID);
	}
}
function vervaag(wat,text){
	if(wat.value == ""){
		wat.value=text;
	}
}
function verscherp(wat,text){
	if(wat.value == text){
		wat.value="";
	}
}

