  
		//Name: Email: Phone:
		function check_form()
		{
			if(document.contact.Name.value=="Name:")
			{
				alert("Please enter your name.");			
				document.contact.Name.focus();
				return false;
			}
			else if(document.contact.Email.value=="Email:")
			{
				alert("Please enter valid email address.");			
				document.contact.Email.focus();
				return false;
			}
			else if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.getElementById("Email").value)))
 			{
 			alert("Please Enter Valid Email Address.");
 			document.getElementById("Email").focus();
 			return false;
 			}
			
			
			else if(document.contact.message.value=="Leave a message")
			{
				alert("Please enter your message.");			
				document.contact.message.focus();
				return false;
			}
			
			else if(document.contact.input_captcha.value=="Enter verification code above:")
			{
				alert("Enter verification code above.");			
				document.contact.input_captcha.focus();
				return false;
			}
			// Validate the Entered input aganist the generated security code function  
		var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
        var str2 = removeSpaces(document.getElementById('input_captcha').value);
        if (str1 == str2) return true; 
		   alert('Invalid Code. Please check and try again.');
		   document.contact.input_captcha.focus();
		   return false;    
        return false;
		}
		
	
		
		
		
   //Created / Generates the captcha function    
    function DrawCaptcha()
    {
        var a = Math.ceil(Math.random() * 8)+ '';
        var b = Math.ceil(Math.random() * 8)+ '';       
        var c = Math.ceil(Math.random() * 8)+ '';  
        var d = Math.ceil(Math.random() * 8)+ '';  
        var e = Math.ceil(Math.random() * 8)+ '';  
        var f = Math.ceil(Math.random() * 8)+ '';  
        var g = Math.ceil(Math.random() * 8)+ '';  
        var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e + ' '+ f + ' ' + g;
        document.getElementById("txtCaptcha").value = code
    }
    // Validate the Entered input aganist the generated security code function   
  
    // Remove the spaces from the entered and generated code
    function removeSpaces(string)
    {
        return string.split(' ').join('');
    }
    
  
    
