// JavaScript Document
		function SubmitContact()
		{
			//get name
			var contact_name = document.getElementById('contact_name').value;
			var new_contact_name	=	contact_name.replace(/ /g,"");
			if(new_contact_name==""){
				alert("Enter Name!");	
				document.getElementById('contact_name').focus();
				return false;	
			}
			
			//get email
			var contact_email = document.getElementById('contact_email').value;
			var new_contact_email	=	contact_email.replace(/ /g,"");
			if(new_contact_email==""){
				alert("Enter E-mail!");	
				document.getElementById('contact_email').focus();
				return false;	
			}
			
			if(isBadEmail(new_contact_email)){
				alert("Invalid E-mail!");	
				document.getElementById('contact_email').focus();
				return false;	
			}
			
			//get message
			/*var contact_comments = document.getElementById('contact_comments').value;
			var new_contact_comments	=	contact_comments.replace(/ /g,"");
			if(new_contact_comments==""){
				alert("Enter Comments!");	
				document.getElementById('contact_comments').focus();
				return false;	
			}*/
			
			document.contactfrm.action="contact-after.php";
			document.contactfrm.submit();
			return true;
		}
		
		/*----------------------------------------------------------------
		Description   :- function to validate an email id
		Programmer    :- JVK
		-------------------------------------------------------------------*/
		function isBadEmail(strg) {
			email_array = strg.split('@');
			if (email_array.length != 2) return true;
			if (email_array[1].split(".").length < 2) return true;
			if (email_array[1].split(".")[1].length < 1) return true;
			if (strg.indexOf('@') < 1) return true;
			if (strg.indexOf(' ') != -1) return true;
			if (email_array[1].indexOf('.') < 1) return true;
			if (strg.length < 5) return true;
			return false;
		}

