function ValidateRegistrationPage (oForm) {
	
		var bValidated = true;
		var sMessage='';
		
		if (oForm.elements["txtemail"]) {
			var strEmail = oForm.elements["txtemail"].value;
			
			if (strEmail.indexOf('@')<0) {
				oForm.elements["txtemail"].style.backgroundColor='#F8C8C8';
				bValidated=false;				
				sMessage+="Please enter a valid email address\n";
			}
		}

		if (oForm.elements["txtpassword"] && oForm.elements["txtconfirm"]) {
			if (oForm.elements["txtpassword"].value != oForm.elements["txtconfirm"].value) {		
				oForm.elements["txtpassword"].style.backgroundColor='#F8C8C8';
				oForm.elements["txtconfirm"].style.backgroundColor='#F8C8C8';
				sMessage+="Your password and confirmed password don't match\n";
				bValidated=false;
			}
		}	
		
		if (oForm.elements["ctrl6424"] && oForm.elements["ctrl6426"] && oForm.elements["ctrl6428"]) {
			if (oForm.elements["ctrl6424"].checked == false && oForm.elements["ctrl6426"].checked == false && oForm.elements["ctrl6428"].checked == false) {		
				oForm.elements["ctrl6424"].style.backgroundColor='#F8C8C8';
				oForm.elements["ctrl6426"].style.backgroundColor='#F8C8C8';
				oForm.elements["ctrl6428"].style.backgroundColor='#F8C8C8';
				sMessage+="Please select either Service Management 365.com, \nthe Service Management magazine, or\nService Management 2006.\n";
				bValidated=false;
			}
		}	

		if (!bValidated) 
			alert (sMessage);
			
		if (!bValidated) 
			return bValidated;
						
		//check number of keywords ticked
		var intElementLength = oForm.length;
		var iControlCount=0;
		var iCount=0;
			
		for (var intLoop=0;intLoop<intElementLength;intLoop++) {

			oElement = oForm.elements[intLoop];
			sElementType = oElement.type;
			sElementName = oElement.name;

			if (sElementType=='checkbox' && sElementName.substr(0,10)=='chkKeyword') {
				iControlCount++;
				if (oElement.checked)
					iCount++;
			}		
		}
		
//		if (iCount >= 7) {
//			bValidated=false;
//			alert ("We recommend that you select a maximum of 6 keywords\nthat most closely match your requirements.\n\nYou have selected " + iCount + " keywords");
//		}

		if (iControlCount>0 && iCount == 0) {
			bValidated=false;
			alert ("You must select at least one area of interest.");
		}
					
		return bValidated;
}