[SOLVED]Passing variables into Ajax

[SOLVED]Passing variables into Ajax

Hi, I've got a form and have X amount of check boxes. This is X because depending on what information is available will limit the amount of check boxes.

I've got a funtion to check which check boxes are checked
if ($('#cb'+cat+'').attr('checked')) {
         catcheck += "&"cb"+cat+"=1";
      } else {
         catcheck += "&"cb"+cat+"=0";
      }

I then want to pass the catcheck variable into the Ajax query:
//the variable Cats gets passed the catcheck above
$.get("/assets/searchpro.php",{ cats: Cats }, function(data){
//php echos the URL of the page
}



I would like the URL to read:
/assets/searchpro.php?cb1=0&cb2=1...


But it appears like this:
cb1%3D0%26acb2%3D1
// the '=' is represented as '%3D' and the '&' is represented as '%26'


Sorry if this is a school boy error but any suggestions on where i'm going wrong or if I can go about this in a different way would be greatly appreciated.