function check_account(account, tx) {

	var check = 1;
	
     var option="";
      for (i = 0; i < 4; i++){
          if (document.account.Roles[i].checked == true){
          option =document.account.Roles[i].value;
         
             }
            }
    
	for ( x=1; x <= tx; x++ )
	{ 
	  var chk = document.getElementById("Validate" + x);
	  
      if((option=="SR_Free") || (option=="SR_BusinessLink")) 
      {
      if((x<3)|| (x>5))
     	 {
     
      
		    if ( chk != null ) {
		    
				if ( document.getElementById("Validate" + x).value == ""  ) {
					document.getElementById("Validate" + x + "Chk").style.visibility = "visible";
					check = 0;
				} else {
					document.getElementById("Validate" + x + "Chk").style.visibility = "hidden";
				}
				
			  }
		  }//end if
		}//end if
		else
		{
		if(x!=9)
		{
		   if ( chk != null ) {
		    
				if ( document.getElementById("Validate" + x).value == ""  ) {
					document.getElementById("Validate" + x + "Chk").style.visibility = "visible";
					check = 0;
				} else {
					document.getElementById("Validate" + x + "Chk").style.visibility = "hidden";
				}
				
			  }
		
		}
		}//end if
	 }
	  
	 if ( check == 0 ) { return false; }
		
}