	function P_Check()
	{  var strError = '';
		
		if (strError == '') 
		{  if (document.frmMain.txtName.value == '') { strError = 'Fout, u dient uw naam in te vullen!'; document.frmMain.txtName.focus(); } 
		}
		if (strError == '') 
		{  if (document.frmMain.txtPhone.value == '') { strError = 'Fout, u dient uw telefoonnummer in te vullen!'; document.frmMain.txtPhone.focus(); } 
		}
		if (strError == '') 
		{  if (document.frmMain.txtEmail.value == '') { strError = 'Fout, u dient uw e-mail adres in te vullen!'; document.frmMain.txtEmail.focus(); } 
		}
		if (strError == '') 
		{  if (document.frmMain.txtRemark.value == '') { strError = 'Fout, u dient uw opmerking in te vullen!'; document.frmMain.txtRemark.focus(); } 
		}

		if (strError == '')
      {  if (!CheckEmail(document.frmMain.txtEmail.value))
		   {  strError = 'Fout, u heeft een ongeldig email adres ingevuld!';
			   document.frmMain.txtEmail.focus();
		   }
		}
		if (strError == '')
      {  if (document.frmMain.txtPhone.value != '')
		   {  if (!IsPhoneNumber(document.frmMain.txtPhone.value))
				{  strError = 'Fout, u heeft een ongeldig telefoonnummer ingevuld!';
					document.frmMain.txtPhone.focus();
				}
			}
      }

      return strError;
	}

   function CheckEmail(strEmail)
   {  var at,dot;

      return(((at = strEmail.indexOf("@")) >= 0 &&
            (dot = strEmail.lastIndexOf(".")) >= 0 &&
            (strEmail.indexOf(" ")) == -1 &&
            (strEmail.indexOf(",")) == -1 &&
            (strEmail.indexOf(";")) == -1 &&
            (strEmail.indexOf("\t")) == -1 &&
             dot > at) ? true:false);
   }

	function IsPhoneNumber(strValue) 
	{  //controleer of een telefoonnummer minimaal 10 nummers heeft.
	   var strCheck = '1234567890';
	   var i = 0;
      var x = 0; 
      var strChar = '';
		
		for (i=0; i<strValue.length; i++)
		{  strChar = strValue.charAt(i); 
		   if (strCheck.indexOf(strChar) != -1) 
		   {  x++; } 
		}
		if (x >= 10) 
		{  return true; }
		else
		{  return false; }
	}

	function SendPage()
	{  var strError = '';

		strError = P_Check();
	   
		if (strError == '')
	   {  document.frmMain.action = 'sendinfo.aspx';
		   document.frmMain.submit();
		}
		else
		{  alert(strError);
		}		
	}


	if (window.Event)   
   	document.captureEvents(Event.MOUSEUP);   

	function nocontextmenu()    
	{  event.cancelBubble = true  
   	event.returnValue = false;  
   	return false;  
	}  
	
	function norightclick(e)   
	{  if (window.Event)   
   	{  if (e.which == 2 || e.which == 3)  
      	return false;  
   	}  
   	else  
   	if (event.button == 2 || event.button == 3)  
   	{  event.cancelBubble = true  
      	event.returnValue = false;  
      	return false;  
   	}  
	}  
	
	document.oncontextmenu = nocontextmenu;   
	document.onmousedown = norightclick;   