function hide() {
	buttonsObj = document.getElementById('buttons');
	buttonsObj.style.display = 'none';
	waitObj = document.getElementById('wait');
	waitObj.style.display = 'block';
}

var set = false;

function setCost() {
	
	sponsor = document.getElementById('sponsor').checked;

	if (sponsor) {
		cost = 35;
	} else {
		switch (document.getElementById('rank').value) {
			case 'Student':
				document.getElementById('studiengang').value = prompt('Welchen Studiengang besuchen Sie?', '');
			case 'Schuler':
				cost = 15;
				break;
			case 'Sonstiges':
				document.getElementById('sonstiges').value = prompt('Welchen Beruf &uuml;ben Sie aus?', '');
			case 'Kulturmanager':
			case 'Kunstler':
				cost = 25;
				break;
		}
	}

	document.registration.cost.value		= cost;
	document.getElementById('cost').value	= cost;
}

function focusInOut(obj, event) {
	switch (event) {
		case 'focus':
			obj.className = obj.className + 'Over';
			break;
		case 'blur':
			obj.className = obj.className.replace('Over', '');
			break;
	}
}
function windowOpen(name, url, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {
  var wint = (screen.height - height) / 2;
  var winl = (screen.width - width) / 2;
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+winl+',top='+wint+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
