// JavaScript Document


	function offer(val)
	{
		
		switch(val){
			case 1:
				var txt = '<h1>Free network audit and consultation</h1><br /><br /><p>If you feel that you are not getting the most out of your IT, or perhaps things are not working quite how they should you could benefit from our free network audit and consultation.  One of our experienced Engineers will visit your office and explore the systems you have in place, we will then create you a full report on your system together with recommendations on what can be done to improve and/or remedy the problems that you may have been experiencing.</p><p>This service usually takes around an hour, it is completely free and without any obligation to use our services thereafter.</p><p>To book your free audit, please call us on (01202) 710217 or fill in your details below for one of our representatives to call you back.</p><div id="imageDiv"><img src="images/net.jpg" /></div><div id="contactform"><div id="feedback" style="color:red;text-align:left;float:left;clear:both; width:600px;height:20px;padding-top:0px;margin-top:0px"></div><label for="name">Name<font style="color:red">*</font>: </label><input name="name" id="name" value"" type="text" /><br/><label for="company_name">Company/School&nbsp;Name:&nbsp;</label><input name="company_name" id="company_name" value"" type="text" /><br /><label for="telephone">Telephone<font style="color:red">*</font>: </label><input name="telephone" id="telephone" value"" type="text" /><br /><label for="email">Email<font style="color:red">*</font>: </label><input name="email" id="email" value"" type="text" /></div>';
			break;
			case 2:
				var txt = '<h1>Prompt response</h1><br /><br /><p>As we understand the importance of IT within your business, we operate to strict Service Levels, guaranteeing a prompt response should you experience any issues with your computer systems.</p><p>With the latest remote support technology, in many cases we can resolve problems within an hour of your call.</p><p>For more information please call us on (01202) 710217 or fill in your details below for one of our representatives to call you back.</p><div id="imageDiv"><img src="images/prompt.jpg" /></div><div id="contactform"><div id="feedback" style="color:red;text-align:left;float:left;clear:both; width:600px;height:20px;padding-top:0px;margin-top:0px"></div><label for="name">Name<font style="color:red">*</font>: </label><input name="name" id="name" value"" type="text" /><br/><label for="company_name">Company/School&nbsp;Name:&nbsp;</label><input name="company_name" id="company_name" value"" type="text" /><br /><label for="telephone">Telephone<font style="color:red">*</font>: </label><input name="telephone" id="telephone" value"" type="text" /><br /><label for="email">Email<font style="color:red">*</font>: </label><input name="email" id="email" value"" type="text" /></div>';
			break;
			case 3:
				var txt = '<h1>Free Netbook with our Total Care SLA</h1><br /><br /><p>For a limited period, if you sign up to a 12 month Total Care Service Level Agreement, as a thank you, we will give you a brand new NetBook completely FREE of charge.</p><p>The Total Care SLA, is our flagship support package and includes:</p><ul><li>Unlimited Telephone Technical Support</li><li>Unlimited Remote Desktop/Server Support</li><li>Guaranteed response within 1 Hour, (4 Hours for on-site)</li><li>FREE consultancy meetings</li></ul><p>For more information, or to book an initial meeting to discuss this service, please call us on (01202) 710217 or fill in your details below for one of our representatives to call you back.</p><div id="imageDiv"><img src="images/netbook.jpg" /></div><div id="contactform"><div id="feedback" style="color:red;text-align:left;float:left;clear:both; width:600px;height:20px;padding-top:0px;margin-top:0px"></div><label for="name">Name<font style="color:red">*</font>: </label><input name="name" id="name" value"" type="text" /><br/><label for="company_name">Company/School&nbsp;Name:&nbsp;</label><input name="company_name" id="company_name" value"" type="text" /><br /><label for="telephone">Telephone<font style="color:red">*</font>: </label><input name="telephone" id="telephone" value"" type="text" /><br /><label for="email">Email<font style="color:red">*</font>: </label><input name="email" id="email" value"" type="text" /></div>';
			break;
			case 4:
				var txt = '<h1>Complete technology solutions</h1><br /><br /><p>The most efficient offices ensure that their technology works in harmony.  We offer complete office solutions that can integrate your computer network into your telephone system, fax, photocopiers and even your security systems. If you have staff working from home or at remote locations, we are able to design secure networks to give access to the information and services they need, helping you to work as a team no matter where you are.</p><p>Our services don\'t just stop at hardware solutions, working with local business partners, we are able to offer advice and bespoke solutions for all your data management needs, from a simple CRM database to a Business Workflow Database - all of which can be linked to your corporate website.</p><p>For more information please call us on (01202) 710217 or fill in your details below for one of our representatives to call you back.</p><div id="imageDiv"><img src="images/tech.jpg" /></div><div id="contactform"><div id="feedback" style="color:red;text-align:left;float:left;clear:both; width:600px;height:20px;padding-top:0px;margin-top:0px"></div><label for="name">Name<font style="color:red">*</font>: </label><input name="name" id="name" value"" type="text" /><br/><label for="company_name">Company/School&nbsp;Name:&nbsp;</label><input name="company_name" id="company_name" value"" type="text" /><br /><label for="telephone">Telephone<font style="color:red">*</font>: </label><input name="telephone" id="telephone" value"" type="text" /><br /><label for="email">Email<font style="color:red">*</font>: </label><input name="email" id="email" value"" type="text" /></div>';
			break;
			default:
				var txt = 'default';
			break;
		}
		
		

		function mycallbackform(v,m,f){
			if(v==true)
			{
				var name = $("#name").val();
				var telephone = $("#telephone").val();
				var email = $("#email").val();
				var company_name = $("#company_name").val();

				if(name == "" || telephone == "" || email == ""){
					$("#feedback").html('Please fill in fileds marked with <font style="color:red">*</font>');
					return false;
				}else{
					$.post('includes/sendCallback.php', {name:name, telephone:telephone, email:email, company_name:company_name}, 
						function(data){
							var txt = '<div style="text-align:center;">Thank you for your request, <br />we will be in contact as soon as possible.</div>';
							$.prompt(txt,{
								buttons: { Close: false },
								prefix: 'offerResponse'
							});
						}
					);
				}
				
				return true;
			}else{
				return true;
			}
		}

		$.prompt(txt,{
			submit: mycallbackform,
			prefix: 'offer',
			buttons: { Cancel: false, Send: true },
			show: 'fadeIn'
		});
	}