	$(document).ready(function(){	

		/* REQUEST CALLBACK TOP*/
		$("#callback_submit").click(function(e){
			e.preventDefault();
			$.post(
				"scripts/callback_submit.php",
				{
					name: $("#callback_name").val(),
					number: $("#callback_number").val()
				},
				function(data){
					if(data=="Success"){
						$("#request_callback_top").html("<p class=\"white\">Thankyou for your enquiry. We will be in touch shortly.</p>");
					}
					else{
						$("#request_callback_top").prepend("<p class=\"white\">Please make sure everything is correct and try again</p>"); 
					}
				}
			)
			return false;
		});

		/* REQUEST CALLBACK LEFT */
		$("#callback_left_submit").click(function(e){
			e.preventDefault();
			$.post(
				"scripts/callback_submit.php",
				{
					name: $("#callback_name_left").val(),
					number: $("#callback_number_left").val()
				},
				function(data){
					if(data=="Success"){
						$("#request_callback_left").html("<p class=\"white\">Thankyou for your enquiry. We will be in touch shortly.</p>");
					}
					else{
						$("#request_callback_left").prepend("<p class=\"white\">Please make sure everything is correct and try again</p>"); 
					}
				}
			)
			return false;
		});

		/* REQUEST CALLBACK RIGHT */	
		$("#callback_right_submit").click(function(e){
			e.preventDefault();
			$.post(
				"scripts/callback_submit.php",
				{
					name: $("#callback_name_right").val(),
					number: $("#callback_number_right").val()
				},
				function(data){
					if(data=="Success"){
						$("#request_callback_right").html("<p>Thankyou for your enquiry. We will be in touch shortly.</p>");
					}
					else{
						$("#request_callback_right").prepend("<p>Please make sure everything is correct and try again</p>"); 
					}
				}
			)
			return false;
		});

		/* REQUEST TRIAL TOP */	
		$("#trial_submit").click(function(e){
			e.preventDefault();
			$.post(
				"scripts/trial_submit.php",
				{
					company: $("#trial_company").val(),
					name: $("#trial_name").val(),
					number: $("#trial_number").val(),
					email: $("#trial_email").val(),
					product: $("#trial_product").val()
				},
				function(data){
					if(data=="Success"){
						$("#request_download_top").html("<p class=\"white\">Thankyou for your interest. We will be in touch shortly.</p>");
					}
					else{
						$("#request_download_top").prepend("<p class=\"white\">Please make sure everything is correct and try again</p>"); 
					}
				}
			)
			return false;
		});

		/* REQUEST TRIAL RIGHT */
		$("#trial_right_submit").click(function(e){
			e.preventDefault();
			$.post(
				"scripts/trial_submit.php",
				{
					company: $("#trial_company_right").val(),
					name: $("#trial_name_right").val(),
					number: $("#trial_number_right").val(),
					email: $("#trial_email_right").val(),
					product: $("#trial_product_right").val()
				},
				function(data){
					if(data=="Success"){
						$("#request_trial_right").html("<p>Thankyou for your interest. We will be in touch shortly.</p>");
					}
					else{
						$("#request_trial_right").prepend("<p>Please make sure everything is correct and try again</p>"); 
					}
				}
			)
			return false;
		});

		/* REQUEST QUOTE RIGHT */
		$("#quote_right_submit").click(function(e){
			e.preventDefault();
			$.post(
				"scripts/quote_submit.php",
				{
					company: $("#quote_company_right").val(),
					name: $("#quote_name_right").val(),
					number: $("#quote_number_right").val(),
					email: $("#quote_email_right").val(),
					product: $("#quote_product_right").val()
				},
				function(data){
					if(data=="Success"){
						$("#request_quote_right").html("<p>Thankyou for your interest. We will be in touch shortly.</p>");
					}
					else{
						$("#request_quote_right").prepend("<p>Please make sure everything is correct and try again</p>"); 
					}
				}
			)
			return false;
		});

		/* REQUEST INVESTOR INFO RIGHT */	
		$("#investor_right_submit").click(function(e){
			e.preventDefault();
			$.post(
				"scripts/investor_submit.php",
				{
					name: $("#investor_name_right").val(),
					number: $("#investor_number_right").val()
				},
				function(data){
					if(data=="Success"){
						$("#request_investor_right").html("<p>Thankyou for your enquiry. We will be in touch shortly.</p>");
					}
					else{
						$("#request_investor_right").prepend("<p>Please make sure everything is correct and try again</p>"); 
					}
				}
			)
			return false;
		});


	});
