//js script file for map navigation

function getMap()
{
	map=top.map.document.mapObj;
	return map; // return Map object
}

function mapBusy()
	{
	var map = getMap();
		if (window.map.isbusy())
		{
		return true;
		}
	}
	
function ManReport()
	{
	var map = getMap();
	var ReportName = "Manhole Report";
	map.viewReport(ReportName);
	}
function zoom2Win()
	{
	var map = getMap();
		map.zoomInMode();
	}

function pageSetup()
        {
			var map = getMap();
               if (map.isBusy() == false)
                {
                map.pageSetupDlg();
                }
                else
                    alert("The Viewer is busy ... please\n try again in a few seconds");
        
        }
function PrintMap()
	{
	var map = getMap();
	if (map.isBusy() == false)
        {
        map.printDlg();
        }
           else
             alert("The Viewer is busy ... please\n try again in a few seconds")
	 }
function getPanMode()
	{
	var map = getMap();
	map.panMode();
	}
	
function getSelectMode()
	{
	var map = getMap();
	map.selectMode();
	}
	
function getZoomInMode()
	{
	var map = getMap();
	map.zoomInMode();
	}

function getZoomOut()
	{
	var map = getMap();
	map.zoomOut();
	}
	
function getZoomOutMode()
	{
	var map = getMap();
	map.zoomOutMode();
	}
	
function getZoomPrev()
	{
	var map = getMap();
	map.zoomPrevious()
	}

function getZoomGoTo()
	{
	var map = getMap();
	map.zoomGotoDlg();

	}


                   	