Попробуй так:
var type1 = $(":radio[name=type1]").filter(":checked").val();
switch (type1){
case "matrNN":
n = $('select[@name=sz1] option:selected').val();
generic_input(n,n);
break;
case "list":
n = $('select[@name=sz1] option:selected').val();
generic_list(n);
break;
case "matrNM":
n = $('select[@name=sz1] option:selected').val();
m = $('select[@name=sz2] option:selected').val();
generic_input(n,m);
break;
}; //switch