// HWT Push Button

var hwt_pbtlist = new Array();


function hwtPushButtonAdd (id, alt, lo, hi, dis, width, height, ena, lnk) {

	hwt_pbtlist[id]=[alt, lo, hi, dis, width, height, ena, lnk];
	return;
}



function hwtPushButtonEnable (id) {

	hwt_pbtlist[id][6]=true;
	return;
}



function hwtPushButtonDisable (id) {

	hwt_pbtlist[id][6]=false;
	return;
}



function hwtPushButtonIsEnabled (id) {

	return(hwt_pbtlist[id][6]);
}



function hwtPushButtonDraw (id) {

	var out = "";

	if (hwtPushButtonIsEnabled(id)) {

		if (hwt_pbtlist[id][7]) {

			out += '<A HREF="' + eval(hwt_pbtlist[id][7]) + '">';
		}

		out += '<IMG border="0" hspace="0" vspace="0" align="absmiddle" alt="' + hwt_pbtlist[id][0] + '" src="' + hwt_pbtlist[id][1] + '" width="'+ hwt_pbtlist[id][4] + '" height="' + hwt_pbtlist[id][5] + '" onMouseOver="this.src=\'' + hwt_pbtlist[id][2] + '\'" onMouseOut="this.src=\'' + hwt_pbtlist[id][1] + '\'" >';


		if (hwt_pbtlist[id][7]) {

			out += '</A>';
		}	

	} else {

		out += '<IMG border="0" hspace="0" vspace="0" align="absmiddle" alt="' + hwt_pbtlist[id][0] + '" src="' + hwt_pbtlist[id][3] + '" width="'+ hwt_pbtlist[id][4] + '" height="' + hwt_pbtlist[id][5] + '">';
	}

	return (out);

}

