function checkInputIn(which_form, which_input, should_be)
{
var a = eval("document.forms."+which_form+"."+which_input+".value");
if (a == should_be)
	{
	eval("document.forms."+which_form+"."+which_input+".value = '';");
	}
}

function checkInputOut(which_form, which_input, should_be)
{
var a = eval("document.forms."+which_form+"."+which_input+".value");
if (a == "")
	{
	eval("document.forms."+which_form+"."+which_input+".value = '"+should_be+"';");
	}
}


function changeStrap ()
{
var nextStrapNum = currentStrapNum+1;
if (nextStrapNum == 5)
	{
	nextStrapNum = 1;
	}

var currentStrap = "strap"+currentStrapNum;
var nextStrap = "strap"+nextStrapNum;

var currentImg = "strapImg"+currentStrapNum;
var nextImg = "strapImg"+nextStrapNum;

var currentStrapDiv = document.getElementById(currentStrap);
var nextStrapDiv = document.getElementById(nextStrap);

var currentImgDiv = document.getElementById(currentImg);
var nextImgDiv = document.getElementById(nextImg);

currentStrapDiv.style.display = "none";
nextStrapDiv.style.display = "block";

currentImgDiv.src = "/_images/buttons/bt_bullet.gif";
nextImgDiv.src = "/_images/buttons/bt_bullet_active.gif";

currentStrapNum = nextStrapNum;
}


function changeStrapL(which_strap)
{
clearInterval (ChangeStrapIntervalId);

var a = which_strap;

var StrapDiv = "strap"+a;
var ImgDiv = "strapImg"+a;

var StrapDivID = document.getElementById(StrapDiv);
var ImgDivID = document.getElementById(ImgDiv);


var StrapDivIDOne = document.getElementById("strap1");
var StrapDivIDTwo = document.getElementById("strap2");
var StrapDivIDThree = document.getElementById("strap3");
var StrapDivIDFour = document.getElementById("strap4");

var ImgDivIDOne = document.getElementById("strapImg1");
var ImgDivIDTwo = document.getElementById("strapImg2");
var ImgDivIDThree = document.getElementById("strapImg3");
var ImgDivIDFour = document.getElementById("strapImg4");

StrapDivIDOne.style.display = "none";
StrapDivIDTwo.style.display = "none";
StrapDivIDThree.style.display = "none";
StrapDivIDFour.style.display = "none";

ImgDivIDOne.src = "/_images/buttons/bt_bullet.gif";
ImgDivIDTwo.src = "/_images/buttons/bt_bullet.gif";
ImgDivIDThree.src = "/_images/buttons/bt_bullet.gif";
ImgDivIDFour.src = "/_images/buttons/bt_bullet.gif";

StrapDivID.style.display = "block";
ImgDivID.src = "/_images/buttons/bt_bullet_active.gif";
}


function StorageQuote() {
var a = document.getElementById("storage_quote_content");
var b = a.style.display;

a.style.display = "block";
}


function getDirections() {
var a = document.forms.directionsForm.postcode.value;
varGoogleOne = "http://maps.google.co.uk/maps?f=d&source=s_d&saddr=";
varGoogleTwo = "&daddr=Aylesbury,+Buckinghamshire+HP19+8BU,+UK&hl=en"

varGoogle = varGoogleOne + a + varGoogleTwo;

document.forms.directionsForm.action = varGoogle;
document.forms.directionsForm.submit();
}

function getDirectionsKempson() {
var a = document.forms.directionsForm.postcode.value;
varGoogleOne = "http://maps.google.co.uk/maps?f=d&source=s_d&saddr=";
varGoogleTwo = "&daddr=Aylesbury,+Buckinghamshire+HP19+8UQ,+UK&hl=en"

varGoogle = varGoogleOne + a + varGoogleTwo;

document.forms.directionsFormKempson.action = varGoogle;
document.forms.directionsFormKempson.submit();
}

