function showMap(map_server_address,point_id)
{

	if(map_server_address=="")
		popup_noresize('/ilan-harita/'+point_id,'Siyyah Pop-up',450,500);
	else
		popup_noresize(map_server_address +'ilan-harita/'+point_id,'Pop-up',450,500);
}

function popup(url,windowName,height,width,scrollbars)
{
	if(scrollbars == ''){
		
		scrollbars='no';	
	}
	
	newwindow=window.open(url,windowName,"width="+width+",height="+(height+50)+",location=no,scrollbars="+scrollbars+",resizable=1");
	
	if (window.focus)
	{
		newwindow.focus()
	}
	return false;
}
function popup_noresize(url,windowName,height,width,scrollbars)
{
	if(scrollbars == ''){
		
		scrollbars='no';	
	}
	
	newwindow=window.open(url,windowName,"width="+width+",height="+(height+50)+",location=no,scrollbars="+scrollbars+",resizable='no'");
	
	if (window.focus)
	{
		newwindow.focus()
	}
}

function showHideBox(theName)
{
	if(!document.getElementById(theName))
		return;
	if (document.getElementById(theName).style.display == 'none')
	{
		document.getElementById(theName).style.display = '';
	}
	else
	{
		document.getElementById(theName).style.display = 'none';
	}
}

function addBookmark(title,url) 

{

	if (window.sidebar) { 

		window.sidebar.addPanel(title, url,""); 

	} else if( document.all ) {

		window.external.AddFavorite( url, title);

	} else if( window.opera && window.print ) {

		return true;

	}

}
function setMainPage(url) {
	if (document.all) {
		document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage(url);
	} else if (window.sidebar) {
		if(window.netscape) {
			try {  
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
			} catch(e) {  
				alert("Bu özellik tarayıcınız tarafından desteklenmiyor.\nLütfen ayarları elle yapmayı deneyin.");  
			}
		} 
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage',url);
	}
}