																														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) {if (TSV1 == 'UniversityPicture') {TSV2 = 'Picture';} else {TSV2 = TSV1;}Confirmed = confirm('Are you sure you want to remove this item?');if (Confirmed) {document.location = 'H_' + TSV1 + '.php?Action=Remove&' + TSV2 + 'ID=' + TV;}}function URLEncode (TSV1) {var TSV2;TSV2 = escape(TSV1);return TSV2.replace('%20', '+');}function Highlight (TP) {TP.style.background = '#E0E7F0';}function Clear (TP, TSV) {TP.style.background = '#' + TSV;}function DrawFlash (URL, Width, Height, BackgroundColor, ReturnHTML) {TSV1 = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='" + Width + "' height='" + Height + "'>"+ "<PARAM name='movie' value='" + URL + "'> <PARAM name='bgcolor' value='" + BackgroundColor + "'> <PARAM name='quality' value='high'>  <EMBED src='" + URL + "' width='" + Width + "' height='" + Height + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' bgcolor='" + BackgroundColor + "'></EMBED>"+ "</OBJECT>";if (ReturnHTML) {return TSV1;} else {document.write(TSV1);}}																																	
