
// delta map coords
var dWidth = Math.abs(2777161 - 1944994);
var dHeight = Math.abs(7206224 - 6614727);

// image size
var imageWidth  = 401;
var imageHeight = 362;

// map unit per pixel
var pWidth = dWidth / imageWidth;
var pHeight = dHeight / imageHeight;

function CheckScale(fieldvar,textvar) 
{		
	document.map[fieldvar.name].checked = false
	alert(textvar)			
}	

function GetCoords(e)
{
	alert(e.x + " , " + e.y);
	CurX = Math.round( (e.x * pWidth) + 1944994);
	CurY = Math.round( (e.y * pHeight) + 6614727);
	alert(CurX + " , " + CurY);
}

function control_identify(strValue)
{

	if (map.identify_cntrl_1.checked)
	{	
	map.identify.value = "All"
	}
	else
	{	
		if (map.Cmd[3].checked)
		{
			map.identify.value = "All" 
					}
		else
		{
			map.identify.value = ""
						
		}	
	}	
}


preloadFlag = true;
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

//*****************************************************************

function DoPopup(url,name,width,height) {                                   
  args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=0," + "scrollbars=0";                           
  popupWin = window.open(url, name, args)                                   
}                                                                           
                                                                            
isNS4 = (document.layers) ? true : false;
NS4 = (document.layers);
IE4 = (document.all);
ver4 = (NS4 || IE4);   
isMac = (navigator.appVersion.indexOf("Mac") != -1);
isMenu = (NS4 || (IE4 && !isMac));
function popUp(){return};
function popDown(){return};
function startIt(){return};
   var platform = navigator.appVersion;
isUNIX = (platform.indexOf("X11") != -1) ||
  (platform.indexOf("Linux") != -1) ||
  (platform.indexOf("SunOS") != -1) ||
  (platform.indexOf("IRIX") != -1) ||
   (platform.indexOf("HP-UX") != -1);

if (!ver4) event = null;

browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))

function putImage(imgDocID,imgObjName) {
if (browser) {
        document.images[imgDocID].src = eval(imgObjName + ".src")
	}
}




function make_window(url,name,width,height,location,menubar,resizable,scrollbars) {                                   
  args = "width=" + width + "," + "height=" + height + "," + "location="+ location + "," + "menubar=" + menubar + "," + "resizable=" + resizable + "," + "scrollbars=" + scrollbars + "\"";                           
  popupWin = window.open(url, name, args)                                   
}

//****************************************************************************


