function fnc_disablebutton(strTag,strMsg)
{
    if (document.getElementById){
        document.getElementById(strTag).disabled = true;
				if (strMsg!=""){
					document.getElementById(strTag).value = strMsg;
				}
    }
    else if (document.all){
        document.all[strTag].disabled = true;
				if (strMsg!=""){
					document.all[strTag].value = strMsg;
				}
    }
    else if (document.layers){
        document.layers[strTag].disabled = true;
				if (strMsg!=""){
					document.layers[strTag].value = strMsg;
				}
    }
}