﻿// JScript File

Type.registerNamespace("IglooSite.CustomerRegistration");

IglooSite.CustomerRegistration._Dialog = function()
{
    IglooSite.CustomerRegistration._Dialog.initializeBase(this, []);    
    this._load_handler = null;
}

IglooSite.CustomerRegistration._Dialog.prototype = {


    registerShowDialog: function() {
        /*
        if(!this._load_handler) {
        var h = Function.createDelegate(this, this.showDialog);
        this._load_handler = Sys.Application.add_load(h);
        }
        */

        this.showDialog();
    },

    showDialog: function() {
        $find('begDlgCustomerRegistration').show($get(this.revealElement));
        /*Sys.Application.remove_load(this._load_handler);
        this._load_handler = null;
        */
    },

    show: function(el) {
        this.revealElement = el.id;
        this.dataLoadFunction();
    },

    hide: function() {
        $find("begDlgCustomerRegistration").close();
    },

    revealElement: null,

    dataLoadFunction: null
}

IglooSite.CustomerRegistration.Dialog = new IglooSite.CustomerRegistration._Dialog();

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();