function checkForm(form)
{
	var cansubmit=true;
	
	if (form.user_nickname.value==""){if (cansubmit) form.user_nickname.focus(); cansubmit=false; changeStyle('user_nickname_lable', 'error'); } else changeStyle('user_nickname_lable', 'ok');
	if (form.user_password.value!=form.user_password1.value) { if (cansubmit) form.user_password1.focus(); cansubmit=false; changeStyle('user_password_lable', 'error'); } else changeStyle('user_password_lable', 'ok');
	if (form.user_password.value=="") { if (cansubmit) form.user_password.focus(); cansubmit=false; changeStyle('user_password_lable', 'error'); } else changeStyle('user_password_lable', 'ok');
	if (form.user_gender.value==""){if (cansubmit) form.user_gender.focus(); cansubmit=false; changeStyle('user_gender_lable', 'error'); } else changeStyle('user_gender_lable', 'ok');
	if (form.user_firstname.value==""){if (cansubmit) form.user_firstname.focus(); cansubmit=false; changeStyle('user_firstname_lable', 'error'); } else changeStyle('user_firstname_lable', 'ok');
	if (form.user_email.value!=form.user_email1.value) { if (cansubmit) form.user_email1.focus(); cansubmit=false; changeStyle('user_email_lable', 'error'); } else changeStyle('user_email_lable', 'ok');
	if (form.user_email.value==""){if (cansubmit) form.user_email.focus(); cansubmit=false; changeStyle('user_email_lable', 'error'); } else changeStyle('user_email_lable', 'ok');
	if (form.address_city.value==""){if (cansubmit) form.address_city.focus(); cansubmit=false; changeStyle('address_city_lable', 'error'); } else changeStyle('address_city_lable', 'ok');
	if (form.address_country_id.value==""){if (cansubmit) form.address_country_id.focus(); cansubmit=false; changeStyle('address_country_id_lable', 'error'); } else changeStyle('address_country_id_lable', 'ok');
	if (form.accept_terms.checked == false) { if (cansubmit) form.accept_terms.focus(); cansubmit=false; changeStyle('accept_terms_lable', 'error'); } else changeStyle('accept_terms_lable', 'ok');
	
	if (!cansubmit) alert(errFillRequiredFields);
	return cansubmit;
}