// JavaScript Document

function show (id) {
	if (document.getElementById(id))
		document.getElementById(id).style.display = "block";
}

function hide (id) {
	if (document.getElementById(id))
		document.getElementById(id).style.display = "none";
}


function fillField(field){ 
	if (field.value == ""){
		jQuery(field).removeClass("zoomopen").addClass("zoomdicht");
	} 
}
function clearField(field){ 
	jQuery(field).removeClass("zoomdicht");
	jQuery(field).addClass("zoomopen");
}

jQuery(document).ready(function(){
	//alert(jQuery("input:[name='keywords']").val().length);
	if (jQuery("input:[name='keywords']").length != 0 && jQuery("input:[name='keywords']").val().length != 0){
		jQuery("input:[name='keywords']").removeClass("zoomdicht").addClass("zoomopen");
	}							
});

// hide for old browsers
var ns6=document.getElementById&&!document.all?1:0;
var head="display:''";
var folder='';
var folder_old='';
var current = false;

function expandit(objDiv){
	folder = document.getElementById(objDiv).style;
    if (folder.display=="none") {
        if (folder_old != '') {
            folder_old.display="none";
        }
        folder.display="block";
        folder_old = folder;
    } else {
        folder.display="none";
        folder_old = '';
    }
}
