function partnerChange(prefix){
	var tempc = $("#temp_" + prefix + "certification_id option.partner" + $("#" + prefix + "partner_id").val()).clone();
	$("#" + prefix + "certification_id").empty();
	if(tempc.length > 0){
		$("#" + prefix + "certification_id").append("<option value=\"0\">所有認證</option");
		$("#" + prefix + "certification_id").append(tempc);
	} else{
		if($("#" + prefix + "partner_id").val() == "0")
			$("#" + prefix + "certification_id").append("<option value=\"0\">所有認證</option");
		else
			$("#" + prefix + "certification_id").append("<option value=\"\">查無資料</option");
	}
}
function searchClick (prefix){
	window.location.href = "course.php?pid=" + $("#" + prefix + "partner_id").val() + "&cid=" + $("#" + prefix + "certification_id").val() + "&q=" + encodeURIComponent($.trim($("#" + prefix + "q").val()));
}
