function searchforDocument(return_to)
{
	// if the link passed in the path and name of the page to return to then pass this on
	if ((return_to != "undefined") && (return_to != ""))
       {
		var newWindow = window.open("../obadms_public/document_display/documents_search.asp?mc=0&sc1=0&sc2=0&arc=No&sby=title&ret="+return_to,"", "width=650,height=380");
   newWindow.creator = window;
	   }
   else
      // if no path and page name was supplied than assume the search results will return to the current page
      {
	   var newWindow = window.open("../obadms_public/document_display/documents_search.asp?mc=0&sc1=0&sc2=0&arc=No&sby=title&ret="+document.location.pathname,"", "width=650,height=380");
   newWindow.creator = window;
	  }
}