var xmlhttp;

function showVRPricing()
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
var id = document.getElementById('FSid').value;
var FSqty = document.getElementById('FSqty').value;
var JLqty = document.getElementById('JLqty').value;
var CD = document.getElementById('CD').value;
var shipping = document.getElementById('shipping').value;
var url="include/VRpricing.php";
url=url+"?FSqty=" + FSqty + "&FSid=" + id + "&JLqty=" + JLqty + "&shipping=" + shipping + "&CD=" + CD;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function showPricing()
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }
var id = document.getElementById('id').value;
var qty = document.getElementById('qty').value;
var stock = document.getElementById('stock').value;
var colour1 = document.getElementById('colour1').value;
var colour2 = document.getElementById('colour2').value;
var fold = document.getElementById('fold').value;
var bifold = document.getElementById('bifold').value;
var banding = document.getElementById('banding').value;
var shipping = document.getElementById('shipping').value;
var url="include/pricing.php";
url=url+"?qty=" + qty + "&id=" + id + "&colour1=" + colour1 + "&colour2=" + colour2 + "&stock=" + stock + "&fold=" + fold + "&bifold=" + bifold + "&banding=" + banding + "&shipping=" + shipping;
url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}

function stateChanged()
{
if (xmlhttp.readyState==4)
{
document.getElementById("pricing").innerHTML=xmlhttp.responseText;
}
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}