function addEv(ev, fc, obj) {
	if (obj.addEventListener) {
		obj.addEventListener(ev, fc, false);
		return;
	}
	
	eval("obj.on"+ev+" = fc");
}

function clearForm() {
	if (this.id == 'c_name') {
		if (this.value == 'Name') {this.value = '';}
		else if (this.value == '') {this.value = 'Name';}
	} else if (this.id == 'c_email') {
		if (this.value == 'Email') {this.value = '';}
		else if (this.value == '') {this.value = 'Email';}
	} else if (this.id == 'c_reason') {
		if (this.value == 'Reason for Contact') {this.value = '';}
		else if (this.value == '') {this.value = 'Reason for Contact';}
	} else if (this.id == 'c_comments') {
		if (this.value == 'Comments') {this.value = '';}
		else if (this.value == '') {this.value = 'Comments';}
	}
}

window.onload = function () {
	addEv('focus', clearForm, document.getElementById('c_name'));
	addEv('blur', clearForm, document.getElementById('c_name'));
	addEv('focus', clearForm, document.getElementById('c_email'));
	addEv('blur', clearForm, document.getElementById('c_email'));
	addEv('focus', clearForm, document.getElementById('c_reason'));
	addEv('blur', clearForm, document.getElementById('c_reason'));
	addEv('focus', clearForm, document.getElementById('c_comments'));
	addEv('blur', clearForm, document.getElementById('c_comments'));
}