Fixed runtime error in advanced search.

The following error was reported:

    userErrorHandler("8", "Undefined index: M", "/home/papersdb/web_docs/advanced_search.php", "265", Array[5])

It was due to default values not being set in the javascript code.