
  function DrawCaptcha()
    {
        var a = Math.ceil(Math.random() * 10)+ '';
        var b = Math.ceil(Math.random() * 10)+ '';       
        var c = Math.ceil(Math.random() * 10)+ '';  
        var d = Math.ceil(Math.random() * 10)+ '';  
        var e = Math.ceil(Math.random() * 10)+ '';  
        var f = Math.ceil(Math.random() * 10)+ '';  
        var g = Math.ceil(Math.random() * 10)+ '';  
        var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e + ' '+ f + ' ' + g;
        document.getElementById("txtCaptcha").value = code
    }
function verifytouchvalidation(){ 
var status = false;     
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
  if (document.getElementById('Name-touch').value == "" ||document.getElementById('Name-touch').value == "name" )
   
  {
 alert('Enter your Full Name');
   }
     if (document.getElementById('Email-touch').value.search(emailRegEx) == -1) {
           
		 alert('Enter Correct Email');
     }

	 
	
 
    var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
        var str2 = removeSpaces(document.getElementById('captchatxt').value);
        if (str1 != str2){alert('Enter Correct Captcha code ');} 
               
     if (document.getElementById('message-touch').value == "" ||document.getElementById('message-touch').value == "message" )
   
  {
  alert('enter message');
   }
    
      
  if (document.getElementById('Name-touch').value != "Enter your Full Name" && document.getElementById('Email-touch').value.search(emailRegEx) != -1  && document.getElementById('message-touch').value != "" && str1 == str2 )
        {
		  
                       document.getintouchform.submit();
                    
                }
					
	return status;
	
}
function removeSpaces(string)
    {
        return string.split(' ').join('');
    }

