
function gotoDir(dir) {
	document.location="http://www.metric-conversions.org"+dir+"/"; }

function gotoPage(page) {
	document.location="http://www.metric-conversions.org/"+page+".htm"; }

function gotoCGI(page,param) {
	document.location="http://www.metric-conversions.org/cgi-bin/"+page+".cgi"+param; }

function gotoExt(site) {
	document.location=site; }

function gotoHat() {
	document.location="http://www.wight-hat.com/"; }

function gotoAaron() {
	document.location="http://www.aaronrudd.co.uk/"; }

function gotoWorld() {
	document.location="http://www.world-time-zones.org/"; }

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}