function users_information() { 
 	//user name valdation
 	if(IsBlank('username')) {
		alert("Please enter a valid user name");
		return false;
	}
	if((document.user_frm.username.value.length)<4){
	 	alert("Please enter a valid username with minimum of 4 character\'s.\nOnly alphanumeric and _ (underscore) allowed");
		document.user_frm.username.focus();
		return false;
	}
	if(IsAlphaNumeric('username')){
		alert("Please enter a valid username with minimum of 4 character\'s.\nOnly alphanumeric and _ (underscore) allowed");
		return false;
	}
	if(document.getElementById('member_level_name_vali').value=='Y') {
			alert("Username already exists. Please select another username");
			document.user_frm.username.focus();
			return false;
	}
	//user name validation end here 
	
	//password validation start here
	if(IsBlank('password')) {
		alert("Please enter a valid Password of minimum 6 characters");
		return false;
	}
	if(document.user_frm.password.value.length<6){
		alert("Please enter a valid Password of minimum 6 characters");
		document.user_frm.password.select();
		return false;
	}
	if(IsBlank('User_password')) {
		alert("Please enter a valid Re- Type Password");
		return false;
	}
	if(document.getElementById("password").value != "" || document.getElementById("User_password").value != "")
	{
		
		if(document.getElementById("password").value != document.getElementById("User_password").value)
		{
			alert("Password and Re- Type password not matches.");
			document.getElementById("User_password").focus();
			return false;
		}
	}
	
	//email validation start here
	if(IsEmail('email'))
	{
		alert("Please enter a valid email address");
		document.getElementById("email").focus();
		return false;
	}
	if(document.getElementById("email_allready_exit_vali").value=='Y'){
		alert("Email id already exists in the system. Please register with another one");
		document.user_frm.email.focus();
		return false;
	}
	if(IsEmail('User_email'))
	{
		alert("Please enter a valid Re-type email address");
		document.getElementById("User_email").focus();
		return false;
	}
	if(document.getElementById("email").value != "" || document.getElementById("User_email").value != "")
	{
		
		if(document.getElementById("email").value != document.getElementById("User_email").value)
		{
			alert("email and Re- Type email not matches.");
			document.getElementById("User_email").focus();
			return false;
		}
	}
	
	//first name validation start here
	if(IsBlank('firstname'))
	{
		alert("Please enter a valid First Name");
		return false;
	}
	if((document.user_frm.firstname.value.length)>20){
	 	alert("Please enter a valid First Name");
		document.user_frm.firstname.focus();
		return false;
	}
	if(IsNameValidation('firstname')){
		alert("Please enter a valid First Name");
		return false;
	}
	
	//last name validation 
	if(IsBlank('lastname'))
	{
		alert("Please enter a valid Last Name");
		return false;
	}
	 if((document.user_frm.lastname.value.length)>20){
	 	alert("Please enter a valid Last Name");
		document.user_frm.lastname.focus();
		return false;
	}
	if(IsNameValidation('lastname')){
		alert("Please enter a valid Last Name");
		return false;
	}
	
	//street add validation start here
	if(IsBlank('address1'))
	{
		alert("Please enter a valid  Line 1 of Street Address");
		document.getElementById("address1").focus();
		return false;
	}
	if((document.user_frm.address1.value.length)>100){
	 	alert("Please enter a valid Line 1 of Street Address");
		document.user_frm.address1.focus();
		return false;
	}
	
	if(document.user_frm.address2.value !=""){
		if((document.user_frm.address2.value.length)>100){
		 	alert("Please enter a valid Line 2 of Street Address");
			document.user_frm.address2.focus();
			return false;
		}
	}
	
    //country city state validation start from here
    if(document.getElementById('country_id').value == 0){
		alert("Please select a valid Country");
		document.getElementById("country_id").focus();
		return false;
	}
	
	//state validation start from here
	if(document.getElementById('state_id').value == 0){
		alert("Please select a valid State");
		document.getElementById("state_id").focus();
		return false;
	}
	if(document.getElementById('state_id').value == 'Other'){   //here we check the other state validation
		if(IsBlank('state_other')) {
			alert("Please enter a valid State");
			return false;
		}
		if((document.user_frm.state_other.value.length)>50){
	 		alert("Please enter a valid State");
			document.user_frm.state_other.focus();
			return false;
		}
		if(IsStateCity('state_other')){
			alert("Please enter a valid State");
			return false;
		}
	}
	
	//here we assign the us city id to id
 	var hid=parseInt(document.getElementById('id_hidden').value);
 	if(document.getElementById('id_hidden').value !=''){
 		document.getElementById('city_id').value = parseInt(hid);
 	}
	//City validation start from here
	if(document.getElementById('city_id').value == 0 && document.getElementById('id_hidden').value ==''){
		alert("Please select a valid City");
		return false;
	}
	//here we check the other city validation  
	if(document.getElementById('city_id').value == 'Other' || document.getElementById('city_id').value == 0){   //here we check the other city validation
		if(document.getElementById('id_hidden').value ==''){//here we check the hiiden id
			if(IsBlank('city_other')) {//if hidden id null 
				alert("Please select a valid City ");
				return false;
			}
		} 
		if(document.getElementById('country_id').value == 2){//us city validation start from here
		 	if(IsBlank('city_name')) {
				alert("Please select a valid City");
				document.getElementById('city_name').focus();
				return false;
			}
		}
		if((document.user_frm.city_other.value.length)>50){
	 		alert("Please select a valid City");
			document.user_frm.city_other.focus();
			return false;
		}
		if(IsStateCity('city_other')){
			alert("Please select a valid City");
			return false;
		}
	}
	
	//zipcode validation
	if(IsBlank('zipcode')){
		alert("Please enter a valid Zip");
		return false;
	}
	if(document.getElementById('country_id').value == 2){ //if country is us
		if(IsInteger('zipcode')){
			alert("Please enter a valid Zip");
			return false;
		}
		if((document.user_frm.zipcode.value.length)!=5){
	 		alert("Please enter a valid Zip");
			document.user_frm.zipcode.focus();
			return false;
		}
	}
	else if(IsZipValidation('zipcode')){
		alert("Please enter a valid Zip");
		return false;
	} 
	if((document.user_frm.zipcode.value.length)>15){
 		alert("Please enter a valid Zip");
		document.user_frm.zipcode.focus();
		return false;
	}
	
	//validate phone number
	if(IsBlank('phone')){
		alert("Please enter a valid Phone");
		return false;
	}
	if(IsInteger('phone')){
		alert("Please enter a valid Phone");
		return false;
	}
	if((document.user_frm.phone.value.length)>20){
 		alert("Please enter a valid Phone");
		document.user_frm.phone.focus();
		return false;
	}	
	
	//fax validation
	if(document.user_frm.fax.value != ""){		
		if(IsInteger('fax')){
			alert("Please enter a valid Fax");
			return false;
		}
		if((document.user_frm.fax.value.length)>20){
	 		alert("Please enter a valid Fax");
			document.user_frm.fax.focus();
			return false;
		}	
	}
	
	
	
	//captcha validation
	if(document.getElementById("txtVerificationCode").value != document.getElementById("hdnVerificationCode").value) {
		document.user_frm.txtVerificationCode.focus();
		alert("Please enter a valid Verification code");
		return false;
	}
	if(document.getElementById('profile_pic').value!=''){
		if(ImageValidate('profile_pic','jpg,gif,jpeg,png')){
			alert('Please Enter valid Profile Picture');
			document.getElementById('profile_pic').focus();
			return false;	
		}
	}
	
	//terms and conditions validation
	if(document.getElementById("terms_con").checked == false) {
		alert("Please Read and Accept the Terms and Conditions");
		return false;
	}
    return true;
}
	  
	