// JavaScript Document


	function offer(val)
	{
		
		switch(val){
			case 1:
				var txt = '<h1>Virus/Spyware Removal</h1><br /><br />';
					txt = txt + '<p>Its a sad fact of computing that using your internet-connected home computer can expose you to Viruses and Spyware, even with the best intentions and Anti-Virus software installed, you still run the risk of your computer becoming infected.</p>';
					
					txt = txt + '<p>Our trained engineers can sweep your computer for infections and (in most cases), eradicate all traces of the Virus and/or Spyware that reside on your PC. We always ensure that all PC’s leaving our workshop are returned with up to date Anti-Virus software installed at no additional charge.</p>';
					
					txt = txt + '<p>To arrange for your computer to be cleaned and made virus free, please complete this form and a representative will be in touch with you very soon. Alternatively, you can call us on (01202) 413900.</p>';
					
					txt = txt + '<div id="imageDiv"><img src="images/virus.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>PC Tune-Up</h1><br /><br /><p>Over time, your PC will begin to slow down as programs you install leave files no longer	required all over your hard drive. Our tune-up service is designed to get your computer working like it did when you first bought it.</p><p>We\'ll clean up your machine, removing redundant files and registry keys, do a thorough virus/spyware scan, organise your programs and data and defragment your hard drive - which will optimise its performance.</p><p>If you choose to purchase additional memory, we\'ll install it for free.</p><p>To arrange for your computer to be given a new lease of life, please complete this form and a representative will be in touch with you soon. Alternatively, you can call us on (01202) 413900.</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 3:
				var txt = '<h1>Media Streaming</h1><br /><br /><p>Imagine being able to listen to music stored on your computer all around your house, or viewing your photo albums on your TV from the comfort of your sofa, perhaps even having instant access to your home videos at the touch of a button!</p><p>Its all possible and we have a range of products to suit your requirements and budget, professionally installed and demonstrated.</p><p>For more information and a free home visit to discuss your options, please complete this form and a representative will be in touch shortly. Alternatively, you can call us on (01202)413900.</p><div id="imageDiv"><img src="images/media.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>Business Services</h1><br /><br /><p>If you have a business and are looking for service and support on your computer network, our parent company Tech4 Limited can help.</p><p>With a complete service solution for every business type, Tech4 can improve the reliability and efficiency of your business systems and give you peace of mind that a solution to a problem is only ever a phone call away.</p><p>For more information and a free audit/consultation, please complete this form and a representative will be in touch shortly. Alternatively, call Tech4 directly on (01202) 710217.</p><div id="imageDiv"><img src="images/graph.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 files 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'
		});
	}