		/*
		 *	@Function: 		confirmSubmit()
		 *	@Params:		Object oForm
		 *	@Return:		Boolean
		 *
		 *	@Description:	Function is called when form is submitted and loops through all elements 
		 *					of oForm. Elements that have a classname of 'notEmpty' shouldn't be empty.
		 *					If so, an alert with the non-empty fieldname is displayed, the focus 
		 *					is set to that field and the background is set to pink.
		 *
		 */
		function confirmSubmit(oForm) {
			//loop through all elements of oForm Object              
	        for (var i=0; i<oForm.elements.length; i++) {
	    		var reClass = /notEmpty/;
	            var sClassNames = oForm.elements[i].className;
	            
	        	//check if className-string contains 'notEmpty'
	        	if (reClass.test(sClassNames)) {
	        	
	        		if (oForm.elements[i].value == '') {
	        			var sElemName = oForm.elements[i].name;
	                
	                   	alert("Het veld '" + sElemName + "' is niet ingevuld.");
	                	
	        			if (oForm.elements[i].tagName.toLowerCase() != "textarea") {
	        				oForm.elements[i].style.backgroundColor = 'pink';
	        				oForm.elements[i].focus();
	        			}
	        
	        			return false;
					}
	    		}                        
	        }
	        
			return true;
		}
		
		
		function setFormOnBlur(iFormNr) {
			var oForm = document.forms[iFormNr];
			
			for (var i=0; i<oForm.elements.length; i++) {
	    		var reClass = /notEmpty/;
	            var sClassNames = oForm.elements[i].className;
	            
	        	//check if className-string contains 'notEmpty'
	        	if (reClass.test(sClassNames)) {
	        		
	        		oForm.elements[i].onblur = function() {
	        			if (this.style.backgroundColor == 'pink' && this.value != '') {
	        				this.style.backgroundColor = 'white';
	        			}
	        		}
	        	}	        	
	        }
		}
