function domainPrice(domType, div, text) {
	
	document.getElementById(domType).onchange = function() {
		setPrice(this.options[this.selectedIndex].value, div, text)
	}
	
	setPrice(document.getElementById(domType).options[document.getElementById(domType).selectedIndex].value, div, text)
	
}

function setPrice(price, div, text) {
	price = prices[price]
	
	divE = document.getElementById(div)
	
	if(divE.firstChild)
		divE.removeChild(divE.firstChild)
	
	text = document.createTextNode(text+price);
	divE.appendChild(text);
	
	divE.style.display = 'none';
	Effect.Appear(div)
}