function sendSubscribe(){
	//Retrieve form variables
	var Name = $('#frmFullName').val();
	var Address = $('#frmAddress').val();
	var Email = $('#frmEmail').val();
	var Phone = $('#frmPhone').val();
	var Sent = $('#frmSent').val();
	//Send variables to sendfrm.php
	$.get("../sendSubscribe.php", { Name: Name, Address: Address, Email: Email, Phone: Phone, frmSent: Sent },
		function(ReturnResult){
			$('#dvContactForm').fadeOut('slow', function(){
				//If validation passed and no errors produced, show thankyou
				if(ReturnResult == "True"){
					alert("Thanks, your TTN Subscription request has been sent.\r\n\r\nWe will be in contact with you shortly.");
				}
				//Otherwise show that an error has occured
				else{
					alert("Sorry, an unexpected error has occured. Please try again later or use our alternate subscription methods");
				}
			});
		});
}

// Search and replace text elements
// http://benalman.com/projects/jquery-replacetext-plugin/
(function($){$.fn.replaceText=function(b,a,c){return this.each(function(){var f=this.firstChild,g,e,d=[];if(f){do{if(f.nodeType===3){g=f.nodeValue;e=g.replace(b,a);if(e!==g){if(!c&&/</.test(e)){$(f).before(e);d.push(f)}else{f.nodeValue=e}}}}while(f=f.nextSibling)}d.length&&$(d).remove()})}})(jQuery);
