function returncase($type,$id){ $xmlvar = ""; switch($type){ case "topic": $xmlvar = run_topics($id); break; case "condition": $xmlvar = run_cond($id); break; case "specialty": $xmlvar = run_specialty($id); break; } return $xmlvar; } function run_topics($id){ $return = ""; switch($id){ case 207: $return = "envista.htm"; break; case 208: $return = "ibm.htm"; break; case 212: $return = "gasb.htm"; break; default: $return = "envista.htm"; break; } return $return; } function run_cond($id){ $return = ""; switch($id){ case 111: $return = "envista.htm"; break; default: $return = "envista.htm"; break; } return $return; } function run_specialty($id){ $return = ""; switch($id){ case 57: $return = "envista.htm"; break; default: $return = "envista.htm"; break; } return $return; } $xmlvar = returncase($_GET['type'],$_GET['id']); ?>