﻿// JavaScript Document
function doSubmit(frm)
{
	frm.submit();	
}
function trim(str)
  	{
		while (str.charAt(0) == " "){
		// remove leading spaces
		str = str.substring(1);
		}
		while (str.charAt(str.length - 1) == " "){
		// remove trailing spaces
		str = str.substring(0,str.length - 1);
		}
		return str;
	}
 	
	function IsGetal(getal)
	{	
	var valid="01234567890";
	var varvalue = getal;
		var returnbool = true;
		
		for(x=0;x < varvalue.length; ++x)
		{
		if (valid.indexOf(varvalue.charAt(x),0)==-1)
			{
					returnbool = false; // geen getal
				break;
				}
		}//for
		return returnbool;
	}
	
	function emailValid(email)
	{
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (!filter.test(email))
		{
			return false;
		}
		else
		{
			return true;
		}
	}