// toggle visibility 

function toggle(targetId, linkId) {
  if (document.getElementById) {
  	var targetElement = document.getElementById( targetId );
  	var linkElement = document.getElementById( linkId );
		if (targetElement.style.display == "none") {
			targetElement.style.display = "";
			linkElement.className = "open";
		} else {
			targetElement.style.display = "none";
			linkElement.className = "";
		}
	}
}

function loginFocus(obj) {
	if (obj.form.contactEmail.value == 'Email address' && obj.form.password.value == 'password') {
		obj.form.contactEmail.value = '';
		obj.form.password.value = '';
	}
}

function loginBlur(obj) {
	if (obj.form.contactEmail.value == '' && obj.form.password.value == '') {
		obj.form.contactEmail.value = 'Email address';
		obj.form.password.value = 'password';
	}
}