function clearText(field){
	if (field.defaultValue == field.value){
		field.value = "";
	}
}

function payment(selecteditem){
	// selecteditem = 1 = automatische incasso.
	if(selecteditem == 1){
		Element.show('automatischeincasso');
	}else{
		Element.hide('automatischeincasso');
	}
}

function customer(selecteditem){
	// selecteditem
	// 1. = company
	// 2. = particular
	if(selecteditem == 1){
		Element.show('company');
	}else{
		Element.hide('company');
	}
}

function payment(selecteditem){
	// selecteditem
	// 0. = iDEAL
	// 1. = Automatische incasso
	// 2. = Creditcard
	if(selecteditem == 1){
		Element.show('automatischeincasso');
		Element.show('vwautomatischeincasso');
	}else{
		Element.hide('automatischeincasso');
		Element.hide('vwautomatischeincasso');
	}
}

function menureset(obj) {
	document.getElementById("menuHome").className="Home";
	document.getElementById("menuDiensten").className="Diensten";
	document.getElementById("menuBestellen").className="Bestellen";
	document.getElementById("menuKlantenservice").className="Klantenservice";
	document.getElementById("menuOverpurehosting").className="Overpurehosting";
	document.getElementById("menuContact").className="Contact";
	if(obj == 1){
		document.getElementById("menuHome").className="Home activeHome";
	}else if(obj == 2){
		document.getElementById("menuDiensten").className="Diensten activeDiensten";
	}else if(obj == 3){
		document.getElementById("menuBestellen").className="Bestellen activeBestellen";
	}else if(obj == 4){
		document.getElementById("menuKlantenservice").className="Klantenservice activeKlantenservice";
	}else if(obj == 5){
		document.getElementById("menuOverpurehosting").className="Overpurehosting activeOverpurehosting";
	}else if(obj == 6){
		document.getElementById("menuContact").className="Contact activeContact";
	}else{
		document.getElementById("menuHome").className="Home activeHome";
	}
}

function popup(url,name,windowWidth,windowHeight){
	myleft=(screen.width)?(screen.width-windowWidth)/2:100;
	mytop=(screen.height)?(screen.height-windowHeight)/2:100;
	window.open(url,"name","width="+windowWidth+",height="+windowHeight+",scrollbars=no,top="+mytop+",left="+myleft);
}

function orderdetails(id){
		Effect.BlindDown('orderdetails'+id);
}
function orderFinal(){
	document.orderUserinfo.submit();
}

function txtOnBlur (obj,image) {
	if (obj.value == '') {
        obj.style.backgroundImage = 'url(' + image + ')';
		obj.style.backgroundRepeat = 'no-repeat';
		obj.style.backgroundPositon = 'left center';
	}
}
function txtOnFocus (obj) {
        obj.style.backgroundImage = '';
}