//C Functions //BEGINNING OF CHECKONLYONE FUNCTION function checkOnlyOne(fld, witch1) { unCheckAll() if (fld=="1") { thisform.TOB1[witch1-1].checked=true } else if (fld=="2") { thisform.TOB2[witch1-1].checked=true } else if (fld=="3") { thisform.TOB3[witch1-1].checked=true } else { thisform.TOB4.checked=true } } //END OF CHECKONLYONE FUNCTION //E Functions //BEGINNING OF EMAIL VALIDATION CHECK function echeck(str) { var at="@" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ //alert("Invalid E-mail ID") return false } if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ return false } if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){ return false } if (str.indexOf(at,(lat+1))!=-1){ return false } if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){ return false } if (str.indexOf(dot,(lat+2))==-1){ return false } if (str.indexOf(" ")!=-1){ return false } return true } //END OF EMAIL VALIDATION CHECK //H Functions //BEGINNING OF HIDE FUNCTION function hide(object) { if (document.getElementById && document.getElementById(object) != null) node = document.getElementById(object).style.visibility='hidden'; else if (document.layers && document.layers[object] != null) document.layers[object].visibility = 'hidden'; else if (document.all) document.all[object].style.visibility = 'hidden'; } //END OF HIDE FUNCTION //BEGINNING OF HIPWIN FUNCTION function hipwin(site) { thewindow=window.open(site,"HIPAA","width=800,height=530,resizable=yes,scrollbars=yes,status=yes,toolbar=yes") } //END OF HIPWIN FUNCTION //L Functions //BEGINNING OF LTRIM FUNCTION function LTrim(orgString){ return orgString.replace(/^\s+/,''); } //END OF LTRIM FUNCTION //M Functions //BEGINNING OF MIM FUNCTION function mim(site) { thewindow=window.open(site,"window3","width=700,height=670,resizable=no,scrollbars=no,status=yes") } //END OF MIM FUNCTION //P Functions //BEGINNING OF PSNBUTTON FUNCTION function psnButton(strArea) { strArea=strArea.replace(/ /gi, ''); psnSetAllCN('td', 'ln', 'psmOutButton'); psnSetAllCN('a', 'ah', 'psmOutLink'); if(document.forms[0].Section.value!="") { psnSetCN('ln_'+strArea, 'psmOverButton'); psnSetCN('ah_'+strArea, 'psmOverLink'); } } //END OF PSNBUTTON FUNCTION //BEGINNING OF PSNSETALLCN FUNCTION function psnSetAllCN(tagName, tagSub, tagClass) { arrTDs=document.getElementsByTagName(tagName); for(i=0; i