//--------------  TELL A FRIEND -------------------------------
	function isEmpty(str){
	   if(str==null || str=="")

		  return true;
		return false;
	}

	function isNumeric(str){
		var numericExpression = /^[0-9]+$/;
		if(str.match(numericExpression))
			return true;
				return false;
		}
		
	function isLength(str)	{
	   var min = 10;
	   if(str.length == min)
	   return true;
	   
	   return false;
	   
	}
		
	function isAlphabet(str){
		var alphaExp = /^[a-zA-Z]+$/;
		 if(str.match(alphaExp))
		   return true;
		   return false;
	 }	
		
	function emailValidator(str){
		var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
		if(str.match(emailExp))
			return true;
			return false;
		
	}



	function contact_us(ss,name,contact,email, subject, query, systemmail){
			
			i=1;
			msg = '';
		
			 if(isEmpty(name)){
				msg = msg + i + ". Please enter your Name";
				i++;
			 }

			  if(!isNumeric(contact) || !isLength(contact)){
					msg = msg + "<br/>" + i +  ". Contact Number is invalid";
					i++;
			  }

			  if(isEmpty(email) || !emailValidator(email)){
					msg = msg + "<br/>" + i + ". Invalid Email";
					i++;
			  }

			  if(isEmpty(subject)){
					msg = msg + "<br/>" + i + ". Please enter the subject";
					i++;
			  }

			  if(isEmpty(query)){
					msg = msg + "<br/>" + i + ". Please enter your Query";
					i++;
			  }

			   if(isEmpty(msg)){
				   val = 'contact_mail&name=' + name + '&contact=' + contact + "&subject=" + subject + "&query=" + query + "&email=" + email + "&systememail=" + systemmail;
					ajax_function(val,ss,'page','email','ggggg');
					return false;
			  }else{
					document.getElementById('ggggg').innerHTML = msg;
					return false;
			  }
		
		}

//--------------  TELL A FRIEND -------------------------------
