																														function ToUpperCase() {PressedKeyCode = window.event.keyCode;if ((PressedKeyCode >= 97) && (PressedKeyCode <= 122)) {window.event.keyCode = PressedKeyCode - 32;window.event.returnValue = true;}}function FilterNumeric() {var PressedKeyCode, IsValid;PressedKeyCode = window.event.keyCode;IsValid = false;if (PressedKeyCode == 13) {IsValid = true;}if ((PressedKeyCode >= 48) && (PressedKeyCode <= 57)) {IsValid = true;}if ((PressedKeyCode == 45) || (PressedKeyCode == 46)) {IsValid = true;}if (!IsValid) {window.event.keyCode = 0;}}function ChangeInnerHTML(LayerName, TSV) {if (document.layers) {TP = document.layers[LayerName].document; TP.open(); TP.write(TSV); TP.close();}else if (document.getElementById) {document.getElementById(LayerName).innerHTML = TSV;}else if (document.all) {document.all[LayerName].innerHTML = TSV;}}function GetElement(TSV) {if (document.getElementById) {return document.getElementById(TSV);}else if (document.all) {return document.all[TSV];}}function GoTo (TSV) {document.location = TSV;}function Trim(TSV) {while ((TSV.substring(0, 1) == ' ') || (TSV.substring(0, 1) == '\n') || (TSV.substring(0,1) == '\r')) {TSV = TSV.substring(1, TSV.length);}while ((TSV.substring(TSV.length-1, TSV.length) == ' ') || (TSV.substring(TSV.length-1, TSV.length) == '\n') || (TSV.substring(TSV.length-1, TSV.length) == '\r')) {TSV = TSV.substring(0, TSV.length-1);}return TSV;}function IsValidEMail (TSV1) {TV1 = TSV1.lastIndexOf('@');TV2 = TSV1.lastIndexOf('.');if ((TV1 < 1) || (TV2 < TV1)) {return false;} else {return true;}}function NullValueFound (TP1, TA1, TA2) {for (TV1=0; TV1 <= TA1.length-1; TV1++) {if (Trim(TP1[TA1[TV1]].value) == '') {alert(TA2[TV1] + ' is not specified'); return true;}}}function RemoveItem (TSV1, TV) {Confirmed = confirm('Are you sure you want to remove this item?');if (Confirmed) {document.location = 'H_' + TSV1 + '.php?Action=Remove&' + TSV1 + 'ID=' + TV;}}function URLEncode (TSV1) {var TSV2;TSV2 = escape(TSV1);return TSV2.replace('%20', '+');}function ChangeBackGround (TP, TSV) {TP.style.background = TSV;}																														
