﻿/// <reference name="MicrosoftAjax.js">

var popupObj;
var btnObj;
var textObj;

function chooseAmt() {
    
    popupObj = $get('choose_amt');
    btnObj = $get('chooseAmtBtn');
    
    var bounds = Sys.UI.DomElement.getBounds(btnObj);
    
    popupObj.style.display = 'block';
    popupObj.style.top = (bounds.y - 100) + 'px';
    popupObj.style.left = (bounds.x) + bounds.width + 10 + 'px';
    
}

function chooseAmtClick(value) {
    textObj.value = value;
    
    popupObj.style.display = 'none';
}

function registerChooseAmt(textboxId) {
    textObj = $get(textboxId);
}

