
	function submitForm(form_id) {
		var form_obj = document.getElementById(form_id);
		form_obj.submit();
	}

	function clearField(form_obj, devault_var) {
		if (form_obj.value == devault_var) {
			form_obj.value = '';
		}
	}

	function onOver(div_obj) {
		div_obj.style.backgroundColor = '#e5e5e5';
	}

	function onOut(div_obj) {
		div_obj.style.backgroundColor = '#ffffff';
	}


function addClassToId(objid, sclass) {
	var obj = document.getElementById(objid);
	addClass(obj, sclass);
}

function addClass(obj, sclass) {
	if (obj) {
		currentclass = obj.className;
		if (currentclass.indexOf(sclass) < 0) {
			if (currentclass.length == 0) {
				currentclass = sclass;
			} else {
				currentclass = currentclass + ' ' + sclass;
			}
			obj.className = currentclass;
			
		}
	}
}

function removeClassFromId(objid, sclass) {
	var obj = document.getElementById(objid);
	removeClass(obj, sclass);
}

function removeClass(obj, sclass) {
	if (obj) {
		currentclass = obj.className;
		currentclass = currentclass.replace(sclass, '');
		if (currentclass == ' ') {
			currentclass = '';
		}
		obj.className = currentclass;
	}
}

function addClassToAll(obj, sclass) {
	formobj = obj.parentNode.parentNode;
	for (i = 0; i < formobj.childNodes.length; i++) {
		subobj = formobj.childNodes[i];
	
		if (subobj.className != undefined && subobj.className.indexOf('locaties') > -1) {
			addClass(subobj,sclass);
		}
	}
}
/*
function tdOver(obj) {
	var argEls = obj.parentNode.cells;
	for (var i=0;i<argEls.length;i++) { 
		var overclass = argEls[i].className;
		overclass = overclass + ' row_over';
		argEls[i].className = overclass;
	}
}

function tdOut(obj) { 
	var argEls = obj.parentNode.cells;
	for (var i=0;i<argEls.length;i++) { 
		var sclass = argEls[i].className;
		sclass = sclass.replace('row_over', '');
		argEls[i].className = sclass;
	}
}
*/
