function validateRegistration(form)	
{
	if(isEmpty(form.email_id) || !isEmail(form.email_id)) 
	{ 
		alert('Please enter a valid Email Address');form.email_id.focus();		
		return false; 
	}
	if(isEmpty(form.user_passwd)) 
	{ 
		alert('Please enter your Password');form.user_passwd.focus();		
		return false; 
	}
	if(isEmpty(form.c_user_passwd)) 
	{ 
		alert('Please confirm your Password');form.c_user_passwd.focus();		
		return false; 
	}
	if(form.user_passwd.value != form.c_user_passwd.value) 
	{ 
		alert('Your Password does not match, please try again'); form.user_passwd.focus();
		return false; 
	}
	if(isEmpty(form.first_name)) 
	{ 
		alert('Please enter your First Name');form.first_name.focus();		
		return false; 
	}
	if(isEmpty(form.last_name)) 
	{ 
		alert('Please enter your Last Name');form.last_name.focus();		
		return false; 
	}
	/*genderChecked	=	RadioCheck(form, "sex")
	if(genderChecked == 0)
	{
		alert('Please select your gender');		
		return false; 
	}
	if(isEmpty(form.byear)) 
	{ 
		alert('Invalid DOB');form.byear.focus();		
		return false; 
	}	
	if(isEmpty(form.bmonth)) 
	{ 
		alert('Invalid DOB');form.bmonth.focus();		
		return false; 
	}
	if(isEmpty(form.bday)) 
	{ 
		alert('Invalid DOB');form.bday.focus();		
		return false; 
	}
	
	form.dob.value=form.byear.value+"-"+form.bmonth.value+"-"+form.bday.value;

	if(isEmpty(form.address1)) 
	{ 
		alert('Invalid Address');form.address1.focus();		
		return false; 
	}
	if(isEmpty(form.city)) 
	{ 
		alert('Invalid City');form.city.focus();		
		return false; 
	}
	if(isEmpty(form.state)) 
	{ 
		alert('Invalid State');form.state.focus();		
		return false; 
	}
	if(isEmpty(form.zip)) 
	{ 
		alert('Invalid Zipcode');form.zip.focus();		
		return false; 
	}
	if(!chkListbox(form.country, 'Country')) { return false; }
	if(isEmpty(form.phone_no) || !isPhone(form.phone_no)) 
	{ 
		alert('Invalid Phone number');form.phone_no.focus();
		return false; 
	}
	
	emailPrefChecked	=	RadioCheck(form, "email_preference")
	if(emailPrefChecked == 0)
	{
		alert('Please select your e-Mail preference');		
		return false; 
	}
	*/
	str="";

	for(i=1;i<=form.totGenres.value;i++)
	{
		temp = eval("form.interested_genres"+i);
		if(temp.checked == true)
			str += temp.value+',';
	}
	len = str.length-1;
	form.interested_genres.value = str.slice(0,len);

	//is_dj	=	getRadioValue(form.is_dj);
	is_dj	=	form.is_dj.value;
	if (is_dj == "Yes")
	{
		if(isEmpty(form.dj_name)) 
		{ 
			alert('Invalid DJ Name');form.dj_name.focus();		
			return false; 
		}
		if(isEmpty(form.city)) 
		{ 
			alert('Invalid City');form.city.focus();		
			return false; 
		}
		if(!chkListbox(form.country, 'Country')) { return false; }
	}
	if(isEmpty(form.ccode)) 
	{ 
		alert('Please enter the verification code');form.ccode.focus();
		return false; 
	}
	if(!BoxesChecked(form, "is_agreed"))
	{
		alert('Please Agree to the Terms & Conditions of with website to complete Registration'); form.is_agreed.focus();return false;
	}
}
//------------------------------------------------------------------------------
function validateProfile(form)
{
	if(isEmpty(form.first_name)) 
	{ 
		alert('Invalid Firstname');form.first_name.focus();		
		return false; 
	}
	if(isEmpty(form.last_name)) 
	{ 
		alert('Invalid Lastname');form.last_name.focus();		
		return false; 
	}
	/*
	genderChecked	=	RadioCheck(form, "sex")
	if(genderChecked == 0)
	{
		alert('Please select your gender');		
		return false; 
	}
	if(isEmpty(form.dob)) 
	{ 
		alert('Invalid DOB');form.dob.focus();		
		return false; 
	}
	*/
	if(isEmpty(form.address1)) 
	{ 
		alert('Invalid Address');form.address1.focus();		
		return false; 
	}
	if(isEmpty(form.city)) 
	{ 
		alert('Invalid City');form.city.focus();		
		return false; 
	}
	if(isEmpty(form.state)) 
	{ 
		alert('Invalid State');form.state.focus();		
		return false; 
	}
	if(isEmpty(form.zip)) 
	{ 
		alert('Invalid Zipcode');form.zip.focus();		
		return false; 
	}
	if(!chkListbox(form.country, 'Country')) { return false; }
	/*
	if(isEmpty(form.phone_no) || !isPhone(form.phone_no)) 
	{ 
		alert('Invalid Phone number');form.phone_no.focus();
		return false; 
	}
	*/
	if(!isEmpty(form.user_passwd) && isEmpty(form.c_user_passwd)) 
	{ 
		alert('Invalid confirm password');form.c_user_passwd.focus();		
		return false; 
	}
	if(isEmpty(form.user_passwd) && !isEmpty(form.c_user_passwd)) 
	{ 
		alert('Invalid password');form.user_passwd.focus();		
		return false; 
	}
	if(!isEmpty(form.user_passwd) && !isEmpty(form.c_user_passwd))
	{
		if(form.user_passwd.value != form.c_user_passwd.value) 
		{ 
			alert('Passwords mismatch'); form.user_passwd.focus();
			return false; 
		}
	}
}
//------------------------------------------------------------------------------
function changepassword(form)
{
	if(isEmpty(form.old_passwd)) 
	{ 
		alert('Invalid Old password');form.old_passwd.focus();		
		return false; 
	}
	if(isEmpty(form.new_passwd)) 
	{ 
		alert('Invalid New password');form.new_passwd.focus();		
		return false; 
	}
	if(isEmpty(form.new_cpasswd)) 
	{ 
		alert('Invalid Confirm password');form.new_cpasswd.focus();		
		return false; 
	}
	if(form.new_passwd.value != form.new_cpasswd.value) 
	{ 
		alert('New Passwords mismatch'); return false; 
	}
}
//------------------------------------------------------------------------------
function chkLogin(form)
{
	if(isEmpty(form.emailId) || !isEmail(form.emailId))
	{ 
		alert('Invalid Email Id');form.emailId.focus();
		return false; 
	}
	if(isEmpty(form.userPasswd))
	{
		alert('Invalid Password'); form.userPasswd.focus();
		return false; 
	}
}
//------------------------------------------------------------------------------
function forgotPassword(form)
{
	if(isEmpty(form.emailId) || !isEmail(form.emailId))
	{ 
		alert('Invalid Email Id');form.emailId.focus();
		return false; 
	}
}
//------------------------------------------------------------------------------
