anchor.diff:          	    	selected=true;
           	    	count ++;
           	        if(buttonId==='submit'){
  -        	        	zombieId=radios[i].id;	
  +        	        	var zombieId=radios[i].id;	
           	        }else if(buttonId==='play'){
  -        	        	zombieId=getAllUrlParams(window.location.href).zombieId;
  +        	        	
           	        	$( document ).ready(function() {
           	        	humanIds.push(radios[i].id);
           	        	});
  
positive.code:         	        if(buttonId==='submit'){
          	        	
          	        	if(count > 1 && getAllUrlParams(window.location.href).species==="zo"){
              	        	alert("only one zombie can be selected")
              	        	window.location.replace('/Zombie/players/selectPlayer?species=zo');
              	        }else if(count===1 && getAllUrlParams(window.location.href).species==="zo"){
              	        	
              	        	window.location.replace('/Zombie/players/selectPlayer?zombieId='+zombieId+'&species=hu');	
              	        }
          	        }
          	        
          	       
          	        //debugger;
          	        if(buttonId==='play'){
          	        	if(getAllUrlParams(window.location.href).zombieId!=undefined && getAllUrlParams(window.location.href).zombieId!=""){
               	    	   if(count > 3 && getAllUrlParams(window.location.href).species==="hu"){
                  	        	alert("only three human can be selected")
                  	        	window.location.replace('/Zombie/players/selectPlayer?species=hu');	
                  	        }else if(count <= 3 && getAllUrlParams(window.location.href).species==="hu"){
                  	        	
                  	        	window.location.replace('/Zombie/players/map?zombieId='+getAllUrlParams(window.location.href).zombieId+'&humanIds='+humanIds)
                  	        	
                  	        }
               	       }
  
negative.code: 		}
  	}
  	function getAllUrlParams(url) {
  			
  		  // get query string from url (optional) or window
  		  var queryString = url ? url.split('?')[1] : window.location.search.slice(1);
  
  