// Functie voor snelzoeken
function removeStartText(obj) 
{
	if (obj.value != ""){
		obj.value = "";
	}
}



function ShowInfo(id){
	
		if (document.getElementById(id).style.display == "block") {
			document.getElementById(id).style.display = "none"; 
		}
		else {
			document.getElementById(id).style.display = "block"; 
		}
		
	
	}
	
	
	
function CheckForm() { 

	//Initialise variables
	var errorMsg = "";


	
	
		//Check for a first name
	if ((document.newsletter.naam.value == "") || (document.newsletter.naam.value == "Your name")) {
		errorMsg += "\n\tYour Name	\t- Please enter your name";	
	}
	
	
			//Check for an e-mail address and that it is valid
	if ((document.newsletter.email.value == "") || (document.newsletter.email.value.length > 0 && (document.newsletter.email.value.indexOf("@",0) == - 1 || document.newsletter.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tE-mail		\t- Please enter a valid email address";
	}	
	
		


		
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "You cannot be signed in to our newsletter. \n";
		msg += "Please check the folowing fields.\n";
		msg += "______________________________________________________________\n\n";
		
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}


	
function CheckFormLogin() { 

	//Initialise variables
	var errorMsg = "";


	
	
		//Check for a first name
	if ((document.login_video.naam.value == "") || (document.login_video.naam.value == "Your name")) {
		errorMsg += "\n\tPlease enter your Login name";	
	}
	
	
	//Check for a first name
	if ((document.login_video.pass.value == "") || (document.login_video.pass.value == "Your Password")) {
		errorMsg += "\n\tPlease enter your password";	
	}
	
		


		
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "You cannot be loged in to our website. \n";
		msg += "Please check the folowing fields.\n";
		msg += "______________________________________________________________\n\n";
		
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}


function CheckFormrequest () { 
		
		
			//Initialise variables
			var errorMsg = "";
		
				// Check for a first name
			if (document.frmEnquiry.naam.value == ""){
				errorMsg += "\n\tEnter your name";	
			}
			
				// Check for a Country
			if (document.frmEnquiry.country.value == ""){
				errorMsg += "\n\tEnter your country";	
			}
					
		
						//Check for an e-mail address and that it is valid
			if ((document.frmEnquiry.email.value == "") || (document.frmEnquiry.email.value.length > 0 && (document.frmEnquiry.email.value.indexOf("@",0) == - 1 || document.frmEnquiry.email.value.indexOf(".",0) == - 1))) { 
				errorMsg += "\n\tPlease enter a valid email";
			}

		
			//If there is aproblem with the form then display an error
			if (errorMsg != ""){
				msg = "______________________________________________________________\n\n";
				msg += "Your form cannot be addressed. \n";
				msg += "Please correct the following fields and try it again.\n";
				msg += "______________________________________________________________\n\n";
				msg += "Problem Fields: \n";
				
				errorMsg += alert(msg + errorMsg + "\n\n");
				return false;
			}
			
			return true;
		}


	function CheckFormContact () { 
		
		
			//Initialise variables
			var errorMsg = "";
		
				// Check for a first name
			if (document.frmEnquiry.naam.value == ""){
				errorMsg += "\n\tEnter your name";	
			}
			
				// Check for a Country
			if (document.frmEnquiry.country.value == ""){
				errorMsg += "\n\tEnter your country";	
			}
			
				// Check for a hearabout
			if (document.frmEnquiry.hearabout.value == ""){
				errorMsg += "\n\tPlease fill the hear about";	
			}
			
				// Check for a Phone
			if (document.frmEnquiry.Phone.value == ""){
				errorMsg += "\n\tEnter your phone number";	
			}
			
						//Check for an e-mail address and that it is valid
			if ((document.frmEnquiry.email.value == "") || (document.frmEnquiry.email.value.length > 0 && (document.frmEnquiry.email.value.indexOf("@",0) == - 1 || document.frmEnquiry.email.value.indexOf(".",0) == - 1))) { 
				errorMsg += "\n\tPlease enter a valid email";
			}

			
			
			
				
			//If there is aproblem with the form then display an error
			if (errorMsg != ""){
				msg = "______________________________________________________________\n\n";
				msg += "Your form cannot be addressed. \n";
				msg += "Please correct the following fields and try it again.\n";
				msg += "______________________________________________________________\n\n";
				msg += "Problem Fields: -\n";
				
				errorMsg += alert(msg + errorMsg + "\n\n");
				return false;
			}
			
			return true;
		}