		function NavPan(direction) {
			if (isNav4) {
				theMapDocObj.releaseEvents(Event.MOUSEMOVE | Event.MOUSEDOWN | Event.MOUSEUP);
			}
			// center of the image
			offx = mX / 2;
			offy = mY / 2;
			theActFormObj.action.value = "pan";

			// pan a quater of distance
			// pan North
        	if ( direction == "North" ) {

                mY = mY - offy;
        	}
			// pan South
        	if ( direction == "South" ) {

                mY = mY + offy;
        	}
			// pan East
        	if ( direction == "East" ) {
                mX = mX + offx;

        	}
			// pan West
        	if ( direction == "West" ) {
                mX = mX - offx;

        	}
			// pan Northeast
        	if ( direction == "Northeast" ) {
				 mY = mY - offy;
				 mX = mX + offx;
        	}
			// pan Northwest
	        if ( direction == "Northwest" ) {
				 mY = mY - offy;
				 mX = mX - offx;

    	    }
			// pan Southwest
        	if ( direction == "Southwest" ) {
				 mY = mY + offy;
				 mX = mX - offx;
        	}
			// pan Southeast
        	if ( direction == "Southeast" ) {
				 mY = mY + offy;
				 mX = mX + offx;
        	}

			theActFormObj.x.value = mX;
			theActFormObj.y.value = mY;
			if (isNav4) {
				theMapDocObj.releaseEvents(Event.MOUSEMOVE);
			} 
			theMapDocObj.onmousemove = "";
			window.status = "";
			theActFormObj.submit();
		}