function usecode(vcode){
		var posturl = "vouchers.asp?voucher=" + vcode + "";
		var discount = 0;
		var newprice = 0;
		var prodprice = parseFloat($('#price').text()); 
		$.post(posturl,
   function(data){
     discount = parseFloat(data);
	 if (discount > 0){
		 newprice = prodprice - discount;
		 $('#price').text(newprice);
		 $('.amount').val(newprice);
		 $('#VoucherInput').html("<font color='#de399c'>Your Voucher Code hsa been accepted and you were given &pound;" + discount + " off.<br><br>The new price of this item is <b>&pound;" + newprice + "</b> + (&pound;4.00 P&P)");
	 }
	 else {
		alert("The voucher you used was not valid"); 
	 }
   });
	}