function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function toggle(obj,txt)
	{
		if (obj.value == txt){
			obj.value = ""
		}else{
			if (obj.value == ""){
				obj.value = txt;
			}	
		}
	}
	
// *********** script voor aanmelden voor de beursmail ****************** check multi checkboxes based on the name passed in.

				function CheckMultiple(name) 
				{
					theFrm = document.frmSS;
					for (var i=0; i < theFrm.length; i++) 
					{
						fldObj = theFrm.elements[i];
						var fieldnamecheck=fldObj.name.indexOf(name);
						if (fieldnamecheck != -1) {
							if (fldObj.checked) {
								return true;
							}
						}
					}
					return false;
				}


				function CheckSS()
				{
					theFrm = document.frmSS;

					hasDot = theFrm.Email.value.indexOf(".");
					hasAt = theFrm.Email.value.indexOf("@");
					
					if (hasDot == -1 || hasAt == -1)
					{
						alert("No valid email address.");
						theFrm.Email.focus();
						theFrm.Email.select();
						return false;
					}

					
									valcheck = document.getElementById("Fields[1]");
									if (valcheck.value == "") {
										alert("The field 'name' is required.");
										valcheck.focus();
										valcheck.select();
										return false;
								
									} else {
										var minsize_1 = 0;
										var maxsize_1 = 100;
										var fieldlength = 0;
										fieldlength = valcheck.value.length;
										if (fieldlength < minsize_1) {
											alert("Minimum of characters vor the field 'name' is " + minsize_1 + " ");
											valcheck.focus();
											return false;
										}
										if (fieldlength > maxsize_1) {
											alert("Minimum of characters vor the field 'name' is " + maxsize_1 + " ");
											valcheck.focus();
											return false;
										}
									
									}
								
					return true;
				}