function smo_script_loadScript(A,D){for(i in document.getElementsByTagName("script")){if(i.src){if(i.src==A){return }}}if(!D){D={}}var C=document.createElement("script");C.setAttribute("src",A);C.setAttribute("type","text/javascript");C.setAttribute("language","javascript");document.getElementsByTagName("head")[0].appendChild(C);var B=false;switch(navigator.appName){case"Netscape":if(navigator.appVersion.indexOf("Safari")!==-1){B=true}break;case"Microsoft Internet Explorer":if(navigator.appVersion.indexOf("MSIE 5")==1||navigator.appVersion.indexOf("MSIE 6")==6){B=true}break}if(B==true){document.write('<script language="javascript" type="text/javascript" src="'+A+'"><\/script>')}}var extraDocTypes=null;function clearForm(A){if(A){if(A.clearfields){formArray=new Array();theFields=A.clearfields.value;formArray=theFields.split(",");for(x=0;x<formArray.length;x++){if(A.formObj[x].value){A.formArray[x].value=""}}}else{for(x=0;x<A.length;x++){if(A.formObj[x].value){A.formObj[x].value=""}}}}}function showThumb(B,C,A){if(A==""){A="Pic"}if(document.getElementById("Pic"+B)){document.getElementById("Pic"+B).src=C}}function getRadioValue(B){var C=null;if(B){for(var A=0;A<B.length;A++){if(B[A].checked){C=B[A].value;break}}}return C}function changeSearchType(A){switch(A.searchtype.value){case"member":A.action="/directory/";break;case"arts":A.action="/webonizer_core/search.php";break;case"events":A.action="/webonizer_core/events.php";default:if(extraDocTypes){pluginDocTypes=extraDocTypes.split(";");for(x=0;x<=pluginDocTypes.length;x++){thisDoc=pluginDocTypes[x].split(",");if(thisDoc[0]==A.searchtype.value){if(A.search.value*1>0){document.location="/"+thisDoc[1]+"/"+A.search.value+"/";return }}}}break}}function searchType(A,B){if(A.search.value*1>0){switch(A.searchtype.value){case"member":if(A.search.value*1>0){document.location="/"+SMO_MEMBERS_FILE+"/"+A.search.value+"/";return }break;case"arts":if(A.search.value*1>0){document.location="/"+SMO_ARTICLES_FILE+"/"+A.search.value+"/";return }break;case"events":if(A.search.value*1>0){document.location="/webonizer_core/events.php?eid="+A.search.value;return }break;default:if(B){pluginDocTypes=B.split(";");for(x=0;x<=pluginDocTypes.length;x++){thisDoc=pluginDocTypes[x].split(",");if(thisDoc[2]){if(A.search.value*1>0){document.location="/"+thisDoc[2]+"/"+A.search.value+"/";return false}}}}}}else{changeSearchType(A,B);return true}}function showFile(C,B,A){if(window.picWIndow){picWIndow.close()}B=(B*1)+30;A=(A*1)+60;picWIndow=window.open("/webonizer_core/show_image.php?id="+C,"imagewindow","toolbar=no,menubar=no,width="+B+",height="+A*1+",scrollbars=yes,status=yes,resizable=yes");if(!window.picWIndow){alert("Your browser or security settings are set to block pop-ups; this is stopping the browser from showing you the image.")}}function webonizer_get_cookie_value(E){var A=null;var F=" "+document.cookie+";";var C=" "+E+"=";var B=F.indexOf(C);if(B!=-1){B+=C.length;var D=F.indexOf(";",B);A=unescape(F.substring(B,D))}return A};
