function jumpto(x){
	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);

	if (document.getElementById("jumpmenu").value != "null") {
		document.location.href = sPage + x
	}
}
function changeDisplay(object_item)
{
	var the_item = document.getElementById(object_item);
	
	if (document.getElementById) 
	{ // DOM3 = IE5, NS6 
		if (the_item.style.display == 'none') 
			the_item.style.display = 'block';
		else
			the_item.style.display = 'none';		
	} 
	else 
	{ 
		if (document.layers) 
		{ // Netscape 4 
			if (the_item.display == 'none') 
				the_item.display = 'block'; 
			else
				the_item.display = 'none'; 
		} 
		else 
		{ // IE 4 
			if (the_item.style.display == 'none') 
				the_item.style.display = 'block';
			else
				the_item.style.display = 'none';
		} 
	} 
} 

function sIFR_replaceElement()
{
    if(typeof sIFR == "function")
    {
        // This is the preferred "named argument" syntax
	    sIFR.replaceElement(named({sSelector:".kids h1", sFlashSrc:"/swf/h1.swf", sColor:"#dd7600", sLinkColor:"#dd7600", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetLeft=0"}));
	    sIFR.replaceElement(named({sSelector:".kids #rubrieken h2", sFlashSrc:"/swf/h1_small.swf", sColor:"#FFFFFF", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sCase:"upper", nPaddingTop:0, nPaddingRight:0, nPaddingLeft:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetRight=0"}));
        sIFR.replaceElement(named({sSelector:".kids h2", sFlashSrc:"/swf/h1.swf", sColor:"#90b9cf", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sCase:"upper", nPaddingTop:0, nPaddingRight:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetRight=0"}));
    	
	    sIFR.replaceElement(named({sSelector:".jong h1", sFlashSrc:"/swf/h1.swf", sColor:"#34a9ab", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetLeft=0&offsetTop=0"}));
	    sIFR.replaceElement(named({sSelector:".jong #rubrieken h2", sFlashSrc:"/swf/h1_small.swf", sColor:"#FFFFFF", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sCase:"upper", nPaddingTop:0, nPaddingRight:0, nPaddingLeft:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetRight=0"}));
        sIFR.replaceElement(named({sSelector:".jong h2", sFlashSrc:"/swf/h1.swf", sColor:"#cc0000", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sCase:"upper", nPaddingTop:0, nPaddingRight:0   , sWmode:"transparent", sFlashVars:"textalign=left&offsetRight=0&offsetTop=0"}));
    	
	    sIFR.replaceElement(named({sSelector:".volw h1", sFlashSrc:"/swf/h1.swf", sColor:"#894a78", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetLeft=0&offsetTop=0"}));
	    sIFR.replaceElement(named({sSelector:".volw #rubrieken h2", sFlashSrc:"/swf/h1_small.swf", sColor:"#FFFFFF", sLinkColor:"#000000", sBgColor:"#FFFFFF", sCase:"upper", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingRight:0, nPaddingLeft:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetRight=0"}));
        sIFR.replaceElement(named({sSelector:".volw h2", sFlashSrc:"/swf/h1.swf", sColor:"#90b9cf", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", sCase:"upper", nPaddingTop:0, nPaddingRight:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetRight=0&offsetTop=0"}));
        
    };
    
    if(document.getElementById('cursus_container')){
    setTimeout ( "setZoek()", 500 );
    }
    P7_initPM(1,0,1,-20,10);
}
function setZoek(){
    document.getElementById('ctl00_SearchTop_btnSearch').className='btn_go_extra';
}

function CheckBoxValidatorEvaluateIsValid(val)
{
    var control = document.getElementById(val.controltovalidate);
    var mustBeChecked = Boolean(val.mustBeChecked);

    return control.checked == mustBeChecked;
}

function CheckBoxListValidatorEvaluateIsValid(val)
{
    var control = document.getElementById(val.controltovalidate);
    var minimumNumberOfSelectedCheckBoxes = parseInt(val.minimumNumberOfSelectedCheckBoxes);

    var selectedItemCount = 0;
    var liIndex = 0;
    var currentListItem = document.getElementById(control.id + '_' + liIndex.toString());
    while (currentListItem != null)
    {
        if (currentListItem.checked) selectedItemCount++;
        liIndex++;
        currentListItem = document.getElementById(control.id + '_' + liIndex.toString());
    }
    
    return selectedItemCount >= minimumNumberOfSelectedCheckBoxes;
}

function RequiredIfCheckedValidatorEvaluateIsValid(val)
{
    if (val.controltocompare != "") 
    {
        if (document.getElementById(val.controltocompare).checked == val.triggervalue) 
        { 
            return RequiredFieldValidatorEvaluateIsValid(val);
        } 
        else 
        {
            return true;
        }   
    } 
    else 
    { 
        return true;
    }
}

function setFontSize(classN){
    if(classN == "0"){
        createCookie("muzerieFontSize","0", 1);
    }else if(classN == "1"){
        createCookie("muzerieFontSize","1", 1);
    }else if(classN == "2"){
        createCookie("muzerieFontSize","2", 1);
    }   
    var allTags = new Array(); 
    var oldClass;// = new String();
    var newClass;// = new String();  
    var allTags=document.getElementsByTagName("div");
    for (i=0; i<allTags.length; i++) {             
        if (allTags[i].className.indexOf('fNormal') !=-1 || allTags[i].className.indexOf('fBig') !=-1 ||  allTags[i].className.indexOf('fExt') !=-1 ) {
        oldClass = allTags[i].className;
            if(classN == "0"){
                createCookie("muzerieFontSize","0", 1);
                oldClass = oldClass.replace(/fBig/gi, 'fNormal');
                oldClass = oldClass.replace(/fExt/gi, 'fNormal');               
                allTags[i].className=oldClass;
                
             }else if(classN == "1"){
                
                oldClass = oldClass.replace(/fNormal/gi, 'fBig');
                oldClass = oldClass.replace(/fExt/gi, 'fBig');
                allTags[i].className=oldClass;    
             }else if(classN == "2"){
                createCookie("muzerieFontSize","2", 1);
                oldClass = oldClass.replace(/fBig/gi, 'fExt');
                oldClass = oldClass.replace(/fNormal/gi, 'fExt');
                allTags[i].className=oldClass;    
             }
        }
    } 
}

function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i<ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function createCookie(name,value,days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}	

function goCheckBoxFactuur(){
    document.getElementById('_ctl0_ContentZoneBottom_MICMS_CourseControl_StaticItem__ctl0_machtiging').checked = !document.getElementById('_ctl0_ContentZoneBottom_MICMS_CourseControl_StaticItem__ctl0_factuur').checked;
    if(document.getElementById('_ctl0_ContentZoneBottom_MICMS_CourseControl_StaticItem__ctl0_machtiging').checked){
    document.getElementById('div_machtiging').style.display ='block';    
    }else{
    document.getElementById('div_machtiging').style.display ='none';    
    }       
}
function goCheckBoxMachtiging(){
   document.getElementById('_ctl0_ContentZoneBottom_MICMS_CourseControl_StaticItem__ctl0_factuur').checked = !document.getElementById('_ctl0_ContentZoneBottom_MICMS_CourseControl_StaticItem__ctl0_machtiging').checked;
    if(document.getElementById('_ctl0_ContentZoneBottom_MICMS_CourseControl_StaticItem__ctl0_machtiging').checked){
    document.getElementById('div_machtiging').style.display ='block';    
    }else{
    document.getElementById('div_machtiging').style.display ='none';    
    }       
}
function zoekCurs(curs){
if(curs=='61'){
    document.getElementById('ctl00_SearchTop_btnSearch').className='btn_go_extra'
}else{
 document.getElementById('ctl00_SearchTop_btnSearch').className='btn_go'
}
}
