﻿
//Ext.BLANK_IMAGE_URL = '/ext-2.2/resources/images/default/s.gif';

//Ext.onReady(function() {
    //Ext.QuickTips.init();
//});

 function AskForConfirmation(tTitle, tDescription) {
        //Ext.MessageBox.confirm(tTitle, tDescription, showResult);
        if (confirm(tDescription)) {
            return true;
        } else {
            return false;
        }
    }

    function showResult(btn, text) {
        //Ext.example.msg('Button Click', 'You clicked the {0} button and entered the text "{1}".', btn, text);
        if (btn = "") {
            return true
        } else {
            return false
        }
    };

function doSearchClick(e, buttonName) {
//the purpose of this function is to allow the enter key to 
//point to the correct button to click.
    var key;

    if(window.event)
        key = window.event.keyCode;     //IE
    else
        key = e.which;     //firefox

    if (key == 13)
    {
        //Get the button the user wants to have clicked

        var searchfield = document.getElementById(buttonName);
        if (searchfield != null)
        { //If we find the button click it
            //btn.click();
            DoSearch(buttonName);
            event.keyCode = 0;
        }
    }
}
