	function support_sent()
	{
		xmlhttp = ajaxFunction();

		xmlhttp.onreadystatechange=function()
  		{
  			if (xmlhttp.readyState==4 && xmlhttp.status==200)
    			{
   				document.getElementById("divSup").innerHTML=xmlhttp.responseText;
    			}
  		}
		xmlhttp.open("GET","sent-support.php",true);
		xmlhttp.send();
	}
	
	function support_submit(thisform)
	{
		xmlhttp = ajaxFunction();
	
		with (thisform)
		{
			if (validate_required(support_email,"Please fill out the Email field.")==false || validate_required(support_message,"Please type your message to the Admin.")==false)
  			{
  				return false;
  			}else{
  				
  				if (validate_email_add(support_email,"Not a valid Email address!")==false)
  				{
  					return false;
  				}else{
	
					
						xmlhttp.open("POST","sent-support_submit.php");
						xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
						xmlhttp.send("support_email="+support_email.value+"&support_type="+support_type.value+"&support_message="+support_message.value); 
		
						
						support_sent();
						
				}
			}
		}

	}