
function gp(ref)
{window.location='http://www.dcsv.co.uk/02'+ref+'.htm';
 return false
}
function gpzz(ref)
{window.location='http://www.dcsv.co.uk/02'+ref+'zz.htm';
 return false
}

function fdbkShow()
{ document.getElementById('fbk').style.display='inline';
  if (typeof brw != 'undefined') 
  { document.getElementById('fbk').style.position='absolute';
    my=getMouseY()-350;
    if (my<10)my=50;
    document.getElementById('fbk').style.top=my+'px';
  };
};

function fdbk()
{ var rq='f0='+encodeURIComponent(location.href);
  rq+='&f1='+encodeURIComponent(document.getElementById('f1').value);
  rq+='&f2='+encodeURIComponent(document.getElementById('f2').value);
  rq+='&f3='+encodeURIComponent(document.getElementById('f3').value);
  MakeFbkRequest('/fbk.htm',rq);
  return false;
}

function getXMLHttp()
{ var xmlHttp
  try
  { //Firefox, Opera 8.0+, Safari
    xmlHttp = new XMLHttpRequest();
  }
  catch(e)
  { //Internet Explorer
    try
    { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e)
    { try
      { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch(e)
      { alert("Your browser does not support AJAX")
        return false;
      }
    }
  }
  return xmlHttp;
}

function MakeFbkRequest(target,parameters)
{ var xmlHttp = getXMLHttp();
  xmlHttp.onreadystatechange = function()
  { if(xmlHttp.readyState == 4)
    { HandleResponse(xmlHttp.responseText);
    }
  }
  xmlHttp.open("POST", target, true)
  xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
  xmlHttp.send(parameters)
}

function HandleResponse(response)
{ document.getElementById('fbka').style.display='none';
  document.getElementById('fbkbresp').innerHTML=response;
  document.getElementById('fbkb').style.display='inline';
}

function getMouseY()
{ e=window.event;
  if (e)
  { if (e.pageX || e.pageY)
    { return e.pageY;
    }else if (e.clientX || e.clientY)
    { return e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
    }
  };
  return 0;
}

function vShow(i)
{ document.getElementById('off'+i).style.display='none';
  document.getElementById('offv'+i).style.display='inline';
};
