﻿function mysubmit(A) 
{ return; 
} 

Console = function() 
{ 
}; 

Console.WriteLine = function Console$WriteLine(A) 
{ 
document.write(A + "<br />"); 
}; 

MathUtility = function() { }; 

MathUtility.Percentage = function MathUtility$Percentage(A, B) { return A * (B / 100); }; 
ConvertUtility = function() { }; 
ConvertUtility.ParseFloat = function ConvertUtility$ParseFloat(A) { return parseFloat(A); }; 
ConvertUtility.IsFloat = function ConvertUtility$IsFloat(A) { return !isNaN(parseFloat(A)); }; 
ConvertUtility.ToFloat = function ConvertUtility$ToFloat(A, B) 
{ 
if (ConvertUtility.IsFloat(A)) { return ConvertUtility.ParseFloat(A); } else { return B; } }; 
UI = function() { }; 
UI.Get = function UI$Get(A) { return document.getElementById(A); }; 
UI.Hide = function UI$Hide(B) { var A = UI.Get(B); if (A) { A.style.display = "none"; } }; 
UI.Show = function UI$Show(B) { var A = UI.Get(B); if (A) { A.style.display = ""; } }; 
UI.Focus = function UI$Focus(B) { var A = document.getElementById(B); if (A) { A.focus(); } }; 
UI.SetValue = function UI$SetValue(C, B) { var A = UI.Get(C); if (A) { A.value = B; } }; 
UI.Clear = function UI$Clear(A) { UI.SetValue(A, ""); }; 
UI.GoToUrl = function UI$GoToUrl(A) { if (!A) { A = "/"; } if (window.event) { var B = window.event.srcElement; if ((B.tagName != "A") && ((B.tagName != "IMG") || (B.parentElement.tagName != "A"))) { if (window.event.shiftKey) { window.open(A); } else { document.location = A; } } } else { document.location = A; } }; var selects = []; UI.HideSelects = function() { Array.clear(selects); var C = document.getElementsByTagName("select"); for (var A = 0; A < C.length; A++) { var B = {}; B.Id = C[A].id; B.Display = C[A].style.display; C[A].style.display = "none"; Array.add(selects, B); } }; 
UI.RestoreSelects = function() { for (var A = 0; A < selects.length; A++) { $get(selects[A].Id).style.display = selects[A].Display; } Array.clear(selects); }; 
CheckboxColumnUI = function() { }; CheckboxColumnUI.CheckAll = function CheckboxColumnUI$CheckAll(D, C) { var B = document.forms[0].elements; for (count = 0; count < B.length; count++) { var A = new String(B[count].name); if (A.indexOf(D) > -1) { if (!B[count].disabled) { B[count].checked = C; } } } }; 
CheckboxColumnUI.CheckUpperBox = function CheckboxColumnUI$CheckUpperBox(D, C) { var B = document.forms[0].elements; elchecked = 0; elcount = 0; for (count = 0; count < B.length; count++) { var A = new String(B[count].name); if (A.indexOf(D) > -1) { elcount++; if (!B[count].disabled) { if (B[count].checked === true) { elchecked++; } } else { elchecked++; } } } if (elchecked == elcount - 1) { document.getElementsByName(D)[0].checked = !document.getElementsByName(D)[0].checked; } }; 
TinyMCEUI = function() { }; 
TinyMCEUI.AddControl = function TinyMCEUI$AddControl(A) { if (document.getElementById(A)) { tinyMCE.execCommand("mceAddControl", false, A); } }; 
TextAreaUI = function() { }; 
TextAreaUI.ResolveMaxLength = function TextAreaUI$ResolveMaxLength(G, A, C) { var E = UI.Get(G); if (E) { var B = E.value; var D = B.length; if (D > A) { E.value = B.substring(0, A); } else { var F = UI.Get(C); if (F) { F.innerHtml = (A - D) + " characters left"; } } } }; if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded(); }

Type.registerNamespace("eXactMusic");
Type.registerNamespace("eXactMusic.Core");
Type.registerNamespace("eXactMusic.Web");


eXactMusic.Core.JSAdapter = function() {};

eXactMusic.Core.JSAdapter.prototype = {
    OpenWindow: function(url, wndName, width, height, resizable) {
        wndName = wndName.replace(" ", "");   //  for IE

        var left = (screen.width - width) / 2; 
        var top = (screen.height - height) / 2; 

        var featured = 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable={2}, copyhistory=no, width={0}, height={1}, left={3}, top={4}'
        featured = String.format(featured, width, height, resizable, left, top);

        return window.open(url, wndName, featured);
    }
};

eXactMusic.Core.JSAdapter.registerClass("eXactMusic.Core.JSAdapter", null, Sys.IDisposable);

var GeoCoder = null;

if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded(); };

function goToPreviousPage() {
    if (PreviousPage && PreviousPage.length != 0) {
        window.location = PreviousPage;
    }
    return false;
}

function DisplayModalPopup(modalPopupID) {
    // get reference to modal popup using the AJAX api $find() function
    // this funciton gets a reference to a ajax control toolkit object if the behavior 
    // id property is specified
    var mpe = $find(modalPopupID);
    if (mpe) {
        mpe.show();
    }
}

function HideModalPopup(modalPopupID) {
    // get reference to modal popup using the AJAX api $find() function
    // this funciton gets a reference to a ajax control toolkit object if the behavior 
    // id property is specified
    var mpe = $find(modalPopupID);
    if (mpe) {
        mpe.hide();
    }
}
