	
	function ValidateForm()
	{
	    		// *** Name ***************
		if(document.frmContact.ContactName.value == ""){
			window.alert("The field \"Contact name\" must not be empty!");
			document.frmContact.ContactName.focus();
			return false;
			}
		// *** Company ***************
		if(document.frmContact.Company.value == ""){
			window.alert("The field \"Company\" must not be empty!");
			document.frmContact.Company.focus();
			return false;
			}
		// *** Website ***************
		if(document.frmContact.Website.value == ""){
			window.alert("The field \"Website\" must not be empty!");
			document.frmContact.Website.focus();
			return false;
			}
		// *** Address ***************
		if(document.frmContact.Address.value == ""){
			window.alert("The field \"Address\" must not be empty!");
			document.frmContact.Address.focus();
			return false;
			}
		// *** Zip Code ***************
		if(document.frmContact.Postalcode.value == ""){
			window.alert("The field \"Postal Code\" must not be empty!");
			document.frmContact.Postalcode.focus();
			return false;
			}
		// *** City ***************
		if(document.frmContact.City.value == ""){
			window.alert("The field \"City\" must not be empty!");
			document.frmContact.City.focus();
			return false;
			}
		// *** Country ***************
		if(document.frmContact.Country.value == 0){
			window.alert("Please choose \"Country\"!");
			document.frmContact.Country.focus();
			return false;
			}
		// *** Email ***************
		if(document.frmContact.Email.value == "")
			{
			window.alert("The field \"Email\" must not be empty!");
			document.frmContact.Email.focus();
			return false;
	    	}

			var EmailContens = "@.";
			var CheckEmail = document.frmContact.Email.value;
			var OkEmail = false;
			var EmailAt = false;
			var EmailPeriod = false;
			for (i = 0;  i < CheckEmail.length;  i++)
				{
				ch = CheckEmail.charAt(i);
				for (j = 0;  j < EmailContens.length;  j++){
					if (ch == EmailContens.charAt(j) && ch == "@")
						EmailAt = true;
					if (ch == EmailContens.charAt(j) && ch == ".")
						EmailPeriod = true;
				    	if (EmailAt && EmailPeriod)
						break;
  					if (j == EmailContens.length)
						break;
					}
				if (EmailAt && EmailPeriod){
					OkEmail = true
					break;
					}
				}
			if (!OkEmail)
				{
				alert("A valid emailadress must contain a \"@\" and a \".\"");
				document.frmContact.Email.focus();
				return false;
				}

			var IlligalChar="/:;,"
			IllMailCharCheck = document.frmContact.Email.value;
				{
				for (i=0; i<IlligalChar.length; i++)
					{
					WrongChar = IlligalChar.charAt(i)
					if (IllMailCharCheck.indexOf(WrongChar,0) > -1)
						{
						window.alert("The indicated email is invalid!\nThe following characters can not be used:\n\n / : ; ,")
						return false;
						}
					}
				}
		// *** Email3 (Verify) ***************
/*		if(document.frmContact.Email3.value != document.frmContact.Email.value){
			window.alert("The field \"Verify email\" do not match the \"Email\" field!");
			document.frmContact.Email3.focus();
			return false;
		}
*/	
		// *** Phone ***************
		if(document.frmContact.Telephone.value == ""){
			window.alert("The field \"Telephone\" must not be empty!");
			document.frmContact.Telephone.focus();
			return false;
			}
		// *** Participants ***************
		if(document.frmContact.Participants.value == ""){
			window.alert("The field \"Number of participants\" must not be empty!");
			document.frmContact.Participants.focus();
			return false;
			}
/*		if(IsNAN(document.frmContact.Participants.value) == true){
		    window.alert("The field \"Number of participants\" must be a number!");
			document.frmContact.Participants.focus();
			return false;
		    }
*/
		// *** EventProgram ***************
        var total="";
        for(var i=0; i < document.frmContact.EventProgram.length; i++){
            if(document.frmContact.EventProgram[i].checked)
            total +=document.frmContact.EventProgram[i].value + "\n";
        }
        if(total==""){
            alert("Please select one or more venture & event programs");
            return false;
        }
/*        else 
            alert (total);
*/        
	    // *** Information ***************
		if(document.frmContact.Information.value == ""){
			window.alert("The field \"Additional Information\" must not be empty!");
			document.frmContact.Information.focus();
			return false;
			}

		// *** Budget ***************
		if(document.frmContact.Budget.value == ""){
			window.alert("The field \"Estimated budget\" must not be empty!");
			document.frmContact.Budget.focus();
			return false;
			}
		else if(isNaN(document.frmContact.Budget.value)){
		    window.alert("The \"Estimated budget\" must be an amount and not text - Only numbers are allowed!");
			document.frmContact.Budget.focus();
			return false;
		    }
		else if(document.frmContact.Curren.value == "DKK" && document.frmContact.Budget.value < 100){
		    window.alert("Your \"Estimated budget\" is to low or you are using illegal characters - Only numbers are allowed!");
			document.frmContact.Budget.focus();
			return false;
		    }
		else if(document.frmContact.Curren.value != "DKK" && document.frmContact.Budget.value < 20){
		    window.alert("Your \"Estimated budget\" is to low or you are using illegal characters - Only numbers are allowed!");
			document.frmContact.Budget.focus();
			return false;
		    } 

		// *** Arrival ***************
		if(document.frmContact.Arrival.value == ""){
			window.alert("Please click the calender and choose a \"Arrival\" date!");
			document.frmContact.Arrival.focus();
			return false;
			}
			// *** Departure ***************
		if(document.frmContact.Departure.value == ""){
			window.alert("Please click the calender and choose a \"Departure\" date!");
			document.frmContact.Departure.focus();
			return false;
			}
		// *** DateDiff ***************
		var day = 1000*60*60*24;
		arrArrival=document.frmContact.Arrival.value;
		var arrival = new Date (arrArrival.substring(6,10), arrArrival.substring(3,5), arrArrival.substring(0,2));
		//window.alert("Arrival: "+ arrival);       // Shows a wierd value #1
		arrDeparture=document.frmContact.Departure.value;
		var departure = new Date (arrDeparture.substring(6,10), arrDeparture.substring(3,5), arrDeparture.substring(0,2));
		//window.alert("Departure: "+ departure);   // Shows a wierd value #2
		var diff = Math.ceil((departure-arrival)/day);
		//window.alert("Number of days: " + diff); // Dosn't show correct number of days, but positive, negative or zero
		if(diff < 0){
		    window.alert("\"Arrival\" date is later than \"Departure\" date!");
		    document.frmContact.Departure.focus();
		    return false;
		    }
	}
