function ClearInput(value, id){ // This calls our function ClearInput, and the two variables we will need for it to function the original value and the id.
var input = document.getElementById(id); // Gets the input field based on its id.

if(value == input.value){ // If the default value is equal to the current value.
input.value = ''; // Empty It.
}else{ // Else the value is not equal to the current input field value.
input.value = input.value; // Leave it the same.
} // End Else.
} // Close Function.

function MM_openBrWindow(theURL,winName,features) { //v2.0
	//alert("MM_openBrWindow: "+theURL+" : "+winName+" : "+features)
  window.open(theURL,winName,features);
}

function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.subscribeEmail.value)) {
if (confirm('I agree to receive news and promotions from Drakes.\nYour details will not be passed on to a third party.\nSelect \'OK\' to proceed, or \'Cancel\' to decline'))	{
MM_openBrWindow('','drakeslondon_popup','width=350,height=250');
return (true);
}
return (false);
}
alert("Invalid E-mail Address! Please re-enter.");
return (false);
}

// test
function hideDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('myGallery').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.myGallery.visibility = 'hidden';
}
else { // IE 4
document.all.myGallery.style.visibility = 'hidden';
}
}
}


function showDiv () {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('myGallery').style.visibility = 'visible';
}
else {
if (document.layers) { // Netscape 4
document.myGallery.visibility = 'visible';
}
else { // IE 4
document.all.myGallery.style.visibility = 'visible';
}
}
}
