function checkRegister()
{
				
				var field_name   = new Array("first_name","last_name","phone","email","company","address","username","password","cpassword");
  		var display_name = new Array("First Name","Last Name","Phone","Email","Company","Address","Username","Password","Confirm Password");
  		var count_array  = 9;
  		
  		if(check_fields('user_register',field_name,display_name,count_array))
  		{		        
  		   if(checkEmail(document.user_register.email.value))
				   {             
     				   if(document.user_register.password.value==document.user_register.cpassword.value)
     	      {           
     	      	   	

																		var filter = /^([a-zA-Z',.\0-9 ])+$/;
																		if (filter.test(document.user_register.password.value))
																		{				}
																		else
																		{ 
																			alert("Password contains special characters. \n These are not allowed.\n Please remove them and try again.");
																			return false; 
																		}


 if(document.user_register.agree.checked==true)
										        {             
										        	   checkDuplicateUsername('', document.user_register.username.value);
										        }
										        else
										        { 
										        	   alert("Please Agree To The Privacy Policy ");
										        	   return false ;
										        }	
     	      }
     	      else
     	      {
     	      	    alert("Password Mismatch");
     	      	    return false ;
     	      }                            
				   }
 				  else
 				 	{	
 								    document.user_register.email.focus();
 									   return false; 
 				  } 
  		}
  		else
  		{ 			return false ; 		}
							
			
}	
