// JavaScript Document

// check for ie6
isIE6 = /msie|MSIE 6/.test(navigator.userAgent);

function checkForm() {
	var name = document.getElementById("name");
	var address = document.getElementById("address");
	var email = document.getElementById('email');
	var password = document.getElementById("password");
	
	// email and confEmail removed due to CP 3.14 on 09.11.09
	if (!name.value || !address.value || !email.value || !password.value) {
				
		if(!name.value){
			name.style.backgroundColor = '#f0d4c1';
			}
		else{
			name.style.backgroundColor = '#ffffff';
			}
		if(!address.value){
			address.style.backgroundColor = '#f0d4c1';
			}
		else{
			address.style.backgroundColor = '#ffffff';
			}
		if(!email.value){
			email.style.backgroundColor = '#f0d4c1';
			}
		else{
			email.style.backgroundColor = '#ffffff';
			}
		//alert(whichAreaOther.value);
			
		if(!password.value || password.value != randomPassword.value+"Cayman"){
			password.style.backgroundColor = '#f0d4c1';
			//alert("Please check your submission code and try again");
			}
		alert("Please check your submission and complete all shaded areas.");
		return false;
	}
	else {
		//return false;
		return true;
	}
}
	
