Bad parameter message when selecting drop down with JavaScript to spawn/delete pages
I have a drop down field that will spawn page templates based on the drop down selection. If the user changes their selection, the previsouly-spawned template pp. will be deleted and new template pp. will spawn. This works well, but sometimes a "Bad parameter" message will pop-up when a new selection is made. The function still works (the proper pages will still spawn/delete), but the message pops up. I don't have any JavaScript errors and cannot find a consistant reason why this message will pop up (I can go through several choices/changes without any bad parameter messages and then the message will pop up--but still delete/spawn correctly-- and then it won't pop up on the next selection or maybe will pop up on several selections in a row). Does anyone know what could be causing this message to pop up and/or how to stop it? Any input would be greatly appreciated.
FYI: I've also searched and tried other troubleshooting tips including removing tags (there are none in the file)
