function recalcRequired(clientId,title,eventsrc) { 
    var btnSubmit = document.getElementById(clientId+'_Submit');
    btnSubmit.href="#";
    btnSubmit.onclick= function() {__doPostBack(clientId,eventsrc);}
    btnSubmit.title=title;
    btnSubmit.style.visibility="visible";
    btnSubmit.childNodes[0].nodeValue=title;
}

function checkIntInput(input){
    var i = parseInt(input.value);
    if(!isNaN(i) && (i.toString() == input.value)) {
        if (i >= parseInt(input.getAttribute('min')) && i <= parseInt(input.getAttribute('max'))) {
            input.setAttribute('lastgood',input.value);
            return true;
        }
    }
    self.alert("Please enter a number between "+input.getAttribute('min')+" and "+input.getAttribute('max')+" for "+input.getAttribute('title'));
    input.value = input.getAttribute('lastgood');
    return false;
}