﻿var MapPicker = new TMapPicker();

function TSetXY(ix, iy) {
    if ((typeof (ix) != "undefined") && (typeof (iy) != "undefined")) {
        if ((ix != "") && (iy != "")) {
            this.xfield.value = ix;
            this.yfield.value = iy;
            this.PopWin.close();
        }
    }
}
function TSetPopWin(o_Win) {
    this.PopWin = o_Win;
}


function Tpop(xfield, yfield) {
    this.xfield = xfield;
    this.yfield = yfield;
    o_colWindow = window.open('InsertMapData.htm', null, "help=no,status=no,scrollbars=no,resizable=no,dependent=yes", true);
    o_colWindow.opener = window;
    o_colWindow.focus();

}
function TMapPicker(xfield, yfield) {
    this.pop = Tpop;
    this.SetPopWin = TSetPopWin;
    this.SetXY = TSetXY;
   
    
}
