﻿function highlightRow(strEl, blnShow) {
	var el = document.getElementById(strEl)
	if (el) el.className = (blnShow) ? "over" : "";
}
function updatePetName(strDDL, strTxt) {
	var elDDL = document.getElementById(strDDL);
	var elTxt = document.getElementById(strTxt);
	if (!elDDL || !elTxt) return;
	if (elDDL.value != "") elTxt.value = elDDL.value
}
function includePrescriptionLine(strBaseID, i) {
	var chk = document.getElementById(strBaseID + "chkLine_Include_" + i);
	var tr = document.getElementById(strBaseID + "trLine_" + i);
	if (!chk || !tr) return;
	tr.className = (chk.checked) ? 'active' : 'inactive' ;
}
function showHideAddress(strEl, blnShow) {
	var el = document.getElementById(strEl)
	if (el) el.className = (blnShow) ? '' : 'invisible';
}