function clearInput(id, def) {
	d = document.getElementById(id);
	if (d.value == def)
		d.value = '';
}
