function DoSearch()
{
        DeleteAllUserPushpins();
        // Delete Live Pushpins
        map.DeleteAllPushpins();
                  
        var searchText = document.getElementById("searchTextBox").value;
        var whereText = document.getElementById("whereTextBox").value;
        
        if(searchText == "What...")
		searchText = "";
	   if(whereText != "Where..." && whereText != "")
	   {
	        if(whereText.replace(" ", "").toLowerCase().lastIndexOf(",uk") == -1)
	            whereText = whereText + ", uk";
	        map.Find(null, whereText);
	   }
        
        search = searchText;
        itemid = null;
        MapChange();
        
        //if(searchText.lastIndexOf(" in ") > 0)
        // {
	      //Use what and where
	   //   var whatText = searchText.substring(0, searchText.lastIndexOf(" in "));
	     // var whereText = searchText.substring(searchText.lastIndexOf(" in ")+4);
	      
	      // Find the location from the where clause
	      //map.FindLocation(whereText);
	      
	      // Now search the content and return the contentItems
	      // This can be done using MapChange()
	 //     search = whatText;
	   //   itemid = null;
	     // MapChange();
         //} 
         //else
         //{
	       // Just use what
	      //search = searchText;
	      //itemid = null;
	     // MapChange(); 
         //}
    
   
   
   if(searchText == null)
	searchText = "";
    var whatText = searchText;
    
    //map.ShowDisambiguationDialog(false);
    
    //if (where != "") {
     //   map.FindLocation(where);
    //}
    /*
    if (what != "")
        map.FindNearby(what, '1');
    
    if (what == "") what = null;
    
    search = what;
    itemid=null;
    */
    //MapChange();

}



