/* form default swap out function */
function swapIt(element,content){
	if(typeof(swapItArray) != "object"){
		swapItArray = new Array();
	}
	if(document.getElementById(element).value=="")
	{
		document.getElementById(element).value=content;
		var count = swapItArray.length;
		swapItArray[count] = new Array(element, content);
	}
}

/* clears default text entered into fields */
function clearSwapIts(){
	for(allSwaps in swapItArray)
	{
		if(document.getElementById(swapItArray[allSwaps][0]).value == swapItArray[allSwaps][1])
		{
			document.getElementById(swapItArray[allSwaps][0]).value = "";
		}
	}
}

function Over(which,where){
	document.getElementById(where).src = which;
}

function Out(which,where){
	document.getElementById(where).src = which;
}

basket = {
	deliveryMethod : function(obj) {
		var selected = new String(obj[obj.selectedIndex].innerHTML).toLowerCase();
		var display = "none";
		if(selected.indexOf("next day")>-1){
			display = "";						
		}
		getEl("Guarantee").style.display = display;
		return false;
	}
}

getEl = function(id) {return document.getElementById(id);}
