// Create a new map object
function genMap3()
{
var map=new YMap(document.getElementById('mapcontainer1'));
//disable wheel
map.disableKeyControls()
// Add type controls to the map
map.addTypeControl();
// Add map zoom (long) control   
map.addZoomLong();  
// Set map type to YAHOO_MAP_REG
map.setMapType(YAHOO_MAP_REG);
// Add the Pan Control   
map.addPanControl(); 
var locatie = "Bucuresti, Romania";
map.drawZoomAndCenter(locatie,3);
}


// Create a new map object
function genMap()
{
var map=new YMap(document.getElementById('mapcontainer1'));
//disable wheel
map.disableKeyControls()
// Add type controls to the map
map.addTypeControl();
// Add map zoom (long) control   
map.addZoomLong();  
// Set map type to YAHOO_MAP_REG
map.setMapType(YAHOO_MAP_REG);
// Add the Pan Control   
map.addPanControl(); 
var locatie = document.getElementById("txt1").value;
map.drawZoomAndCenter(locatie,3);
}

// Create a new map object
function genMap2()
{
var map=new YMap(document.getElementById('mapcontainer1'));
//disable wheel
map.disableKeyControls()
// Add type controls to the map
map.addTypeControl();
// Add map zoom (long) control   
map.addZoomLong();  
// Set map type to YAHOO_MAP_REG
map.setMapType(YAHOO_MAP_REG);
// Add the Pan Control   
map.addPanControl(); 
var locatie = document.getElementById("s1").value;
map.drawZoomAndCenter(locatie,3);
}

/***********************************************
* Bookmark site script-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
  window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
  var elem = document.createElement('a');
  elem.setAttribute('href',url);
  elem.setAttribute('title',title);
  elem.setAttribute('rel','sidebar');
  elem.click();
}
else if(document.all)// ie
  window.external.AddFavorite(url, title);
}
