// This function opens a new window with the correct parameters for the TRC.
// Use only for calling TRC.
function helpWindow()
{
 var thisurl = "http://training.proquest.com";
 var url = document.URL;
 var result = url.match("bhowell");
 if (result != null) thisurl = "http://training.proquest.com";
 var handle = window.open(thisurl, "TrainingCenter", "resizable=yes,height=500,width=700,top=50,left=100,scrollbars=yes,location=no,menubar=no,toolbar=yes");
 handle.focus();
}

// The following section allows us to recover the query from the passed URL by setting the field of the form to the query

var urlquery = "";

if (document.location.toString().split('?')[1] != null)             //only do this if the value isn't null, to avoid errors.
 urlquery = document.location.toString().split('?')[1].split('#')[0].split('&'); //break into the portion before and after the ?,
                                                                   //and before and after any &. At this point should have:
                                                                   //urlquery[0] set to query and the terms 

//document.writeln("urlquery[0] is: " + urlquery[0] + "<br>")


