/*
 * Copyright (c) 2005-2008 Software Corporation (Softcorp). All rights reserved.
 * This file is provided only for use by end users of our websites.
 * This software may not be copied or redistributed in any form without prior written 
 * authorization of Softcorp.
 */
var KEY_TAB=9;var KEY_ESC=27;var KEY_SHIFT=16;var KEY_CTRL=17;var KEY_ALT=18;var KEY_PAUSE=19;var KEY_CAPS_LOCK=20;var KEY_CURSOR_UP=38;var KEY_CURSOR_DOWN=40;var KEY_CURSOR_LEFT=37;var KEY_CURSOR_RIGHT=39;var KEY_PAGE_UP=33;var KEY_PAGE_DOWN=34;var KEY_HOME=36;var KEY_END=35;var KEY_INSERT=45;var KEY_WIN_START_LEFT=91;var KEY_WIN_START_RIGHT=92;var KEY_WIN_MENU=93;var KEY_F1=112;var KEY_F2=113;var KEY_F3=114;var KEY_F4=115;var KEY_F5=116;var KEY_F6=117;var KEY_F7=118;var KEY_F8=119;var KEY_F9=120;var KEY_F10=121;var KEY_F11=122;var KEY_F12=123;var KEY_NUM_LOCK=144;var KEY_SCROLL_LOCK=145;function scJsIsControlKey(keyCode){var result=false;switch(keyCode){case KEY_TAB:case KEY_ESC:case KEY_SHIFT:case KEY_CTRL:case KEY_ALT:case KEY_PAUSE:case KEY_CAPS_LOCK:case KEY_CURSOR_UP:case KEY_CURSOR_DOWN:case KEY_CURSOR_LEFT:case KEY_CURSOR_RIGHT:case KEY_PAGE_UP:case KEY_PAGE_DOWN:case KEY_HOME:case KEY_END:case KEY_INSERT:case KEY_WIN_START_LEFT:case KEY_WIN_START_RIGHT:case KEY_WIN_MENU:case KEY_F1:case KEY_F2:case KEY_F3:case KEY_F4:case KEY_F5:case KEY_F6:case KEY_F7:case KEY_F8:case KEY_F9:case KEY_F10:case KEY_F11:case KEY_F12:case KEY_NUM_LOCK:case KEY_SCROLL_LOCK:result=true;break;default:result=false;break;}return result;}function scJsGetElementsByClass(node,searchClass,tag){var classElements=new Array();var els=node.getElementsByTagName(tag);var elsLen=els.length;for(i=0,j=0;i<elsLen;i++){if(els[i].className==searchClass){classElements[j]=els[i];j++;}}return classElements;}function scJsLocalShowSoftcorpMenu(){theMenu=scJsGetElementsByClass(window.document,'main-menubar-softcorp','a');mmcl(theMenu[0],0);}function scJsSubmitAndRedirect(url){document.getElementById('form_func').value='redirect';document.getElementById('form_redirect_url').value=url;document.forms[0].submit();}function scJsFixPageHeight(){return;try{fixPageHeightTimeout1.cancelTimeout();}catch(e){}fixPageHeightTimeout1=setTimeout(function(){var boundingTableElem;boundingTableElem=document.getElementById('bounding_table');boundingTableElem.style.height='0px';try{fixPageHeightTimeout2.cancelTimeout();}catch(e){}fixPageHeightTimeout2=setTimeout(function(){var boundingTableElem;boundingTableElem=document.getElementById('bounding_table');boundingTableElem.style.height='1px';},500);},500);return;}function scJsNumberFormat(theValue,decimals,decimalPoint,thousandSep){var result='';var sign='';var valueRounded=Math.round(theValue*Math.pow(10,decimals));if(valueRounded==0){return '0.00';}var s=new String(valueRounded);if(s.substr(0,1)=='-'){sign='-';s=s.substr(1,s.length-1);}while(s.length<(decimals+1)){s='0'+s;}var fraction=s.substr(s.length-decimals,decimals);var whole=s.substr(0,s.length-decimals);var wholeEdit='';var portion;var comma='';while(true){if(whole.length>3){wholeEdit=whole.substr(whole.length-3,3)+comma+wholeEdit;whole=whole.substr(0,whole.length-3);}else if(whole.length>0){wholeEdit=whole+comma+wholeEdit;break;}else{break;}comma=thousandSep;}result=sign+wholeEdit;if(fraction.length!=0){result+=decimalPoint+fraction;}return result;}function scJsCurrencyFormat(theValue){return '$'+scJsNumberFormat(theValue,2,'.',',');}function scJsIsSet(theVariable){var result=false;try{result=!((typeof(theVariable)=='undefined')||(theVariable==null));}catch(e){}return result;}function scJsRound(value,numDecimals){return Math.round((value*Math.pow(10,numDecimals)))/Math.pow(10,numDecimals);}function clone(this2){var objectClone=new this2.constructor();for(var property in this2)if(typeof this2[property]=='object'){objectClone[property]=clone(this2[property]);}else{objectClone[property]=this2[property];}return objectClone;}function scJsWindowInnerWidth(){var result;if(is_ie){result=top.document.body.offsetWidth;}else{result=window.innerWidth;}return result;}function scJsWindowInnerHeight(){var result;if(is_ie){result=top.document.body.offsetHeight;}else{result=window.innerHeight;}return result;}function scJsGetFrameDocument(elemFrame){if(is_ie){theDocument=document.frames[elemFrame.id].document;}else{theDocument=elemFrame.contentDocument;}return theDocument}is_agent=navigator.userAgent.toLowerCase();is_ie=((is_agent.indexOf('msie')!=-1)&&(is_agent.indexOf('opera')==-1));is_firefox=(is_agent.indexOf('firefox')!=-1);is_safari=(is_agent.indexOf('safari')!=-1);is_opera=(is_agent.indexOf('opera')!=-1);is_netscape=(is_agent.indexOf('netscape')!=-1);is_konqueror=(is_agent.indexOf('konqueror')!=-1);is_mozilla=((is_agent.indexOf('mozilla')!=-1)&&(is_agent.indexOf('msie')==-1)&&(is_agent.indexOf('firefox')==-1)&&(is_agent.indexOf('safari')==-1)&&(is_agent.indexOf('opera')==-1)&&(is_agent.indexOf('netscape')==-1)&&(is_agent.indexOf('konqueror')==-1));is_gecko=((is_agent.indexOf('gecko')!=-1)&&(is_agent.indexOf('like gecko')==-1)&&(is_agent.indexOf('khtml')==-1));is_khtml=(is_agent.indexOf('khtml')!=-1);is_windows=(is_agent.indexOf('windows')!=-1);is_macintosh=((is_agent.indexOf('mac os')!=-1)||(is_agent.indexOf('macintosh')!=-1));is_linux=(is_agent.indexOf('linux')!=-1);is_fedora=(is_agent.indexOf('fedora')!=-1);is_x86=((is_agent.indexOf('i686')!=-1)||(is_agent.indexOf('i586')!=-1)||(is_agent.indexOf('i486')!=-1)||(is_agent.indexOf('i386')!=-1));is_ppc=(is_agent.indexOf('ppc')!=-1);var gblJsCheckBoxes=new Array();var gblJsRadioButtons=new Array();var count=0;var start=9999;var msg='';msg="Software makes the machine"+"(tm)"+"                    ";msg=msg+msg+msg;msg="Software makes the machine"+"(tm)";incr=1;len=1;function scJsException(theMessage,theNumber){var name;var message;var number;var description;this.name='Softcorp exception';this.message=theMessage;this.number=theNumber;this.description=theMessage;}function scJsArrayKeys(theArray){var myArrayKeys=Array();var i=0;for(var obj in theArray){myArrayKeys[i]=obj;i++;}return myArrayKeys;}function scJsGetElementById(aID){var element=null;if(document.layers){element=document.layers[aID]}else if((document.all)&&(document.getElementById)){element=document.all[aID];}else{element=document.getElementById(aID);}return element;}function scJsFixCheckbox(element_id,type,highlighted){var link_element=document.getElementById(element_id+'_link');var checkbox_element=document.getElementById(element_id);if(highlighted=='yes'){highlightedStr='_highlighted';}else{highlightedStr='';}if(checkbox_element.value=='yes'){link_element.style.backgroundImage='url("/images/'+type+'_checked'+highlightedStr+'.gif")';}else{checkbox_element.value='no';link_element.style.backgroundImage='url("/images/'+type+'_unchecked'+highlightedStr+'.gif")';}}function scJsToggleCheckbox(element_id,highlighted){var link_element_id;var link_element;var radio_element;link_element_id=element_id+'_link';link_element=document.getElementById(link_element_id);radio_element=document.getElementById(element_id);if(highlighted=='yes'){highlightedStr='_highlighted';}else{highlightedStr='';}if(radio_element.value=='no'){radio_element.value='yes';link_element.style.backgroundImage='url("/images/checkbox_checked'+highlightedStr+'.gif")';}else{radio_element.value='no';link_element.style.backgroundImage='url("/images/checkbox_unchecked'+highlightedStr+'.gif")';}}function scJsCheckCheckbox(element_id){var link_element_id;var link_element;var radio_element;try{link_element_id=element_id+'_link';link_element=document.getElementById(link_element_id);radio_element=document.getElementById(element_id);radio_element.value='yes';link_element.style.backgroundImage='url("/images/checkbox_checked'+'.gif")';}catch(e){}}function scJsSetCheckBoxGroup(group_name,master_element_id){master_checkbox_element=document.getElementById(master_element_id);master_checkbox_element_value=master_checkbox_element.value;for(i=0;i<gblJsCheckBoxes[group_name].length;i++){link_element_id=gblJsCheckBoxes[group_name][i]+'_link';link_element=document.getElementById(link_element_id);checkbox_element=document.getElementById(gblJsCheckBoxes[group_name][i]);checkbox_element.value=master_checkbox_element_value;if(master_checkbox_element_value=='yes'){link_element.style.backgroundImage='url("/images/checkbox_checked.gif")';}else{link_element.style.backgroundImage='url("/images/checkbox_unchecked.gif")';}}}function scJsRadioClick(group_name,element_id){for(i=0;i<gblJsRadioButtons[group_name].length;i++){link_element_id=gblJsRadioButtons[group_name][i]+'_link';link_element=document.getElementById(link_element_id);radio_element=document.getElementById(gblJsRadioButtons[group_name][i]);if(gblJsRadioButtons[group_name][i]==element_id){radio_element.value='yes';link_element.style.backgroundImage='url("/images/radio_checked.gif")';}else{radio_element.value='no';link_element.style.backgroundImage='url("/images/radio_unchecked.gif")';}}}function scJsFixRadioGroup(group_name){first_yes_index=-1;count_yes=0;for(i=0;i<gblJsRadioButtons[group_name].length;i++){link_element_id=gblJsRadioButtons[group_name][i]+'_link';link_element=document.getElementById(link_element_id);radio_element=document.getElementById(gblJsRadioButtons[group_name][i]);if(radio_element.value=='yes'){if(count_yes==0){first_yes_index=i;}count_yes++;}}if(count_yes==0){link_element_id=gblJsRadioButtons[group_name][0]+'_link';link_element=document.getElementById(link_element_id);radio_element=document.getElementById(gblJsRadioButtons[group_name][0]);radio_element.value='yes';link_element.style.backgroundImage='url("/images/radio_checked.gif")';}else if(count_yes>1){for(i=0;i<gblJsRadioButtons[group_name].length;i++){link_element_id=gblJsRadioButtons[group_name][i]+'_link';link_element=document.getElementById(link_element_id);radio_element=document.getElementById(gblJsRadioButtons[group_name][i]);radio_element.value='no';link_element.style.backgroundImage='url("/images/radio_unchecked.gif")';}link_element_id=gblJsRadioButtons[group_name][first_yes_index]+'_link';link_element=document.getElementById(link_element_id);radio_element=document.getElementById(gblJsRadioButtons[group_name][first_yes_index]);radio_element.value='yes';link_element.style.backgroundImage='url("/images/radio_checked.gif")';}}function scJsGoTo(url){hidden_link_element=document.getElementById('hidden_link');if((navigator.appName=='Microsoft Internet Explorer')&&(hidden_link_element!=null)){hidden_link_element.href=url;hidden_link_element.click();}else{document.location=url;}}function scJsGoToHref(element){scJsGoTo(element.href);}function scJsGoToParentHref(element){if(element.parentElement!=null){scJsGoTo(element.parentElement.href);}}function scJsOver(){element=scJsOver.arguments[0];bgcolor=scJsOver.arguments[1];if(bgcolor==null){bgcolor='#C1D2EE';}bordercolor=scJsOver.arguments[2];if(bordercolor==null){bordercolor='#316AC5';}element.style.backgroundColor=bgcolor;element.style.border='1px '+bordercolor+' solid';}function scJsOverDark(){element=scJsOverDark.arguments[0];bgcolor=scJsOverDark.arguments[1];if(bgcolor==null){bgcolor='#8CAAE7';}bordercolor=scJsOverDark.arguments[2];if(bordercolor==null){bordercolor='white';}element.style.backgroundColor=bgcolor;element.style.border='1px '+bordercolor+' solid';}function scJsOut(){element=scJsOut.arguments[0];bgcolor=scJsOut.arguments[1];if(bgcolor==null){bgcolor='white';}bordercolor=scJsOut.arguments[2];if(bordercolor==null){bordercolor='white';}element.style.backgroundColor=bgcolor;element.style.border='1px '+bordercolor+' solid';}function scJsPopupWithMenus(url,window_name){if(typeof window_name=='undefined'){window_name='_blank';}scJsPopup(url,window_name,'directories=yes,location=yes,status=yes,toolbar=yes,scrollbars=yes,menubar=yes,resizable=yes,width=765,height=550,left=10,top=10');}function scJsPopupWithoutMenus(url,window_name){if(typeof window_name=='undefined'){window_name='_blank';}scJsPopup(url,window_name,'directories=no,location=no,status=yes,toolbar=no,scrollbars=yes,menubar=no,resizable=yes,width=795,height=550,left=5,top=5');}function scJsPopupWithoutAnything(url,window_name){if(typeof window_name=='undefined'){window_name='_blank';}scJsPopup(url,window_name,'directories=no,location=no,status=yes,toolbar=no,scrollbars=no,menubar=no,resizable=yes,width=765,height=550,left=10,top=10');}function scJsPopupWithNothing(url,window_name){if(typeof window_name=='undefined'){window_name='_blank';}scJsPopup(url,window_name,'directories=no,location=no,status=yes,toolbar=no,scrollbars=no,menubar=no,resizable=yes,width=765,height=550,left=10,top=10');}function scJsPopup(url,window_name,options){if(typeof window_name=='undefined'){window_name='_blank';}if(window_name==''){window_name='_blank';}if(typeof options=='undefined'){options='';}theWindow=open(url,window_name,options);if(theWindow!=null){theWindow.focus();}}function scPopupXga(url,window_name){if(typeof window_name=='undefined'){window_name='_blank';}scJsPopup(url,window_name,'directories=no,location=no,status=yes,toolbar=no,scrollbars=yes,menubar=no,resizable=yes,width=1000,height=700,left=10,top=10');}function scJsPopupHelp(topic){var myTop=0;var myWidth=320;var myLeft=screen.availWidth-myWidth-10;var myHeight=screen.availHeight-myTop-60;var mySessParms='';try{mySessParms=js_sess_parms;}catch(e){}scJsPopup('/popup_help/?topic='+topic+mySessParms,'_help','directories=no,location=no,status=no,toolbar=no,scrollbars=yes,menubar=no,resizable=yes,width='+myWidth+',height='+myHeight+',left='+myLeft+',top='+myTop);}function scContactSoftcorp(subject,to,message){if(typeof subject=='undefined'){subject='';}if(typeof to=='undefined'){to='';}if(typeof message=='undefined'){message='';}scJsPopup('https://'+js_domain+'/contact-softcorp?spid='+js_spid+'&to='+to+'&subject='+subject+'&message='+message,'_blank','directories=no,location=no,status=yes,toolbar=no,scrollbars=yes,menubar=no,resizable=yes,width=850,height=640,left=20,top=20');}function scInterval(){var thismsg="local";if(count>=20){incr=-1;}if(count<=0){incr=1;}count=count+incr;thismsg='';for(i=1;i<=count;i++){thismsg=thismsg+' ';}thismsg=thismsg+msg;try{status=thismsg;}catch(e){}}function scIntervalOld(){if(start>msg.length){start=0;}else{start++;}msg=msg.substr(1)+msg.substr(0,1);try{status=msg;}catch(e){}}function scGoTo(url){window.parent.location=url;}function scSetCursor(theObject,theCursor){scJsSetCursor(theCursor);}function scJsSetCursor(value){if((value=='pointer')||(value=='hand')){try{document.body.style.cursor='pointer';}catch(e){}try{document.body.style.cursor='hand';}catch(e){}}else{try{document.body.style.cursor=value;}catch(e){}}}function scMouseOver(tableCellRef,theColor){if(typeof theColor=='undefined'){theColor='#c0c0e0';}tableCellRef.style.backgroundColor=theColor;}function scMouseOut(tableCellRef,theColor){tableCellRef.style.backgroundColor=theColor;}function scJsOnMouseOver(elem,theColor){if(!theColor){theColor='#D1E2FE';}scJsSetCursor('pointer');elem.style.backgroundColor=theColor;}function scJsOnMouseOut(elem,theColor){if(!theColor){theColor='transparent';}scJsSetCursor('default');elem.style.backgroundColor=theColor;}function scGoToLogin(){window.parent.location='/login_form.php';}function scGoToLogout(){window.parent.location='/logout_tran.php';}function scNavBarMouseOver(tableCellRef,theColor){tableCellRef.style.backgroundColor=theColor;tableCellRef.style.borderColor='#316ac5';}function scNavBarMouseOver2(tableCellRef,theColor,theBorderColor){tableCellRef.style.backgroundColor=theColor;tableCellRef.style.borderColor=theBorderColor;}function scNavBarMouseOver3(tableCellRef,theColor,theBorderColor){tableCellRef.style.backgroundColor=theColor;tableCellRef.style.borderColor=theBorderColor;}function scNavBarMouseOut3a(tableCellRef,theColor,theBorderColor){tableCellRef.style.backgroundColor=theColor;tableCellRef.style.borderColor=theBorderColor;}function scNavBarMouseOut3(tableCellRef,backgroundColor,borderColorTop,borderColorLeft,borderColorBottom,borderColorRight){tableCellRef.style.backgroundColor=backgroundColor;tableCellRef.style.borderTopColor=borderColorTop;tableCellRef.style.borderLeftColor=borderColorLeft;tableCellRef.style.borderBottomColor=borderColorBottom;tableCellRef.style.borderRightColor=borderColorRight;}function scNavBarMouseOut(tableCellRef,backgroundColor,borderColor){tableCellRef.style.backgroundColor=backgroundColor;tableCellRef.style.borderColor=borderColor;}function scNavBarMouseOut2(tableCellRef,backgroundColor,borderColorTop,borderColorLeft,borderColorBottom,borderColorRight){tableCellRef.style.backgroundColor=backgroundColor;tableCellRef.style.borderTopColor=borderColorTop;tableCellRef.style.borderLeftColor=borderColorLeft;tableCellRef.style.borderBottomColor=borderColorBottom;tableCellRef.style.borderRightColor=borderColorRight;}function scNavBarMouseOutBG(tableCellRef,theBackground){tableCellRef.style.background=theBackground;}function scNavBarClick(tableCellRef,url){scGoTo(url);}function scNavBarClickOld(tableCellRef,url,borderColor,backgroundColor){scNavBarMouseOut(tableCellRef,borderColor,backgroundColor);scGoTo(url);}function scNewWindow(url,window_name,options){theWindow=window.open(url,window_name,options);if(theWindow==null){scWindowOpenFailAlert();}else{theWindow.focus();}return(false);}function ScreenImageWindow(theURL){theWindow=window.open(theURL,'softcorp_screen_image');if(theWindow==null){scWindowOpenFailAlert();}else{theWindow.focus();}return(false);}function FormatForPrintWindow(theURL){theWindow=window.open(theURL,'_blank','status=yes,resizable=yes,toolbar=yes,scrollbars=yes,menubar=yes,width=600,height=400,left=10,top=10');if(theWindow==null){scWindowOpenFailAlert();}else{theWindow.focus();}return(false);}function EmailThisPageWindow(theURL){theTarget='email_this.php?layout=print&url='+escape(theURL);theWindow=window.open(theTarget,'softcorp_email_this','status=yes,resizable=yes,toolbar=yes,scrollbars=yes,menubar=yes,width=600,height=400)');if(theWindow==null){scWindowOpenFailAlert();}else{theWindow.focus();}return(false);}function scJsTrim(inputStr){try{var first_nb;var last_nb;var outputStr='';var theChar="";for(first_nb=0;first_nb<inputStr.length;first_nb++){if(inputStr.charAt(first_nb)!=' '){break;}}for(last_nb=(inputStr.length-1);last_nb>=0;last_nb--){if(inputStr.charAt(last_nb)!=' '){break;}}outputStr=inputStr.substr(first_nb,last_nb-first_nb+1);return outputStr;}catch(e){scJsLogException(e);}}function scJsModifyAndSubmit(new_action,new_func){form_name_elem=document.getElementById('form_name');form_elem=document.getElementById(form_name_elem.value);if(typeof new_func!='undefined'){if(new_func.length!=0){form_func_elem=document.getElementById('form_func');form_func_elem.value=new_func;}}if((new_action.length!=0)&&(js_sess_parms.length!=0)){qpos=new_action.indexOf('?');if(qpos==-1){form_elem.action=new_action+'?'+js_sess_parms;}else{form_elem.action=new_action+js_sess_parms;}}form_elem.submit();}function scSubmitOnEnter(){key=window.event.keyCode;if(key==13){document.main.submit();}}function HandleKeypress(keypressed){var key;if(document.all){key=window.event.keyCode;}else{key=keypressed.which;}if(key==13){if(ValidateInput()){document.main.submit();}}}function HasDoubleQuote(theString){var i;for(i=0;i<theString.length;i++){theChar=theString.charAt(i);if(theChar.charAt(0)=='"'){return true;}}return false;}function ShutDownOK(){var radioGrp=document.main.shutdown_type;var shutdown_type='';for(var i=0;i<radioGrp.length;i++){if(radioGrp[i].checked){shutdown_type=radioGrp[i].value;}}window.location='main.cgi?page=shutdown_action&shutdown_type='+shutdown_type;}function FileNameValid(theFile){var i;for(i=0;i<theFile.length;i++){theChar=theFile.charAt(i);if(theChar.charAt(0)=='/'){return false;}}return true;}function PathValid(thePath){var i;for(i=0;i<thePath.length;i++){theChar=thePath.charAt(i);if(theChar.charAt(0)=='\\') { return false; } } return true; }      function SetLayoutPrint(theURL) { var theNewURL = '' + theURL; if (theNewURL.search(/layout=normal/) != -1) { theNewURL = theNewURL.replace(/layout=normal/gi, 'layout=print'); } else if (theNewURL.search(/layout=print/) != -1) { } else if (theNewURL.search(/layout=/) != -1) { theNewURL = theNewURL.replace(/layout=/gi, 'layout=print'); } else { theNewURL = theNewURL + '&layout=print'; } return theNewURL; }      function FormatForPrint(theURL) { var theWindow = window.open(SetLayoutPrint(theURL), 'print','resizable=no,toolbar=yes,scrollbars=yes,menubar=yes,width=510,height=400'); if (theWindow == null) { scWindowOpenFailAlert(); } else { theWindow.focus(); }   }      function ShowHelp(theURL) { theWindow = window.open(theURL, 'help','resizable=yes,toolbar=yes,scrollbars=yes,menubar=yes,width=400,height=600'); if (theWindow == null) { scWindowOpenFailAlert(); } else { theWindow.focus(); }   }      function setCookieSelection() {  var selectGoWhere = ""; var cookieArray = ""; var ic = ""; ic = document.cookie;  cookieArray = split(ic,"selectGoWhere=")[1];  if(cookieArray != "-1") { if(haveSelectionCookie() == 1) { selectGoWhere = split(cookieArray,";")[0]; sg = selectGoWhere;   document.forms[0].goWhere.selectedIndex = selectGoWhere; } } }       function showServer (whichServer) { var whichDest = whichServer[whichServer.selectedIndex].value; if (whichDest == "nothing")  { whichServer.selectedIndex = 0; }  else  {  scJsGoTo(whichDest); } }      function selectPage() { if (document.QuickIndex.r[document.QuickIndex.r.selectedIndex]) { top.location.href=document.QuickIndex.r[document.QuickIndex.r.selectedIndex].value; } }      function ShowUsers() {    if(document.forms[0].userid) { document.forms[0].userid.focus(); return true; }   }      function WriteStuff() { document.write('path_hidden=' + document.main.path_hidden.value + ',' + 'path=' + document.main.path.value); document.write('hidden_value=' + document.main.hidden_value.value + '<br>'); document.write('hidden_value=' + document.main.hidden_value.value + '<br>'); document.write('showfiles=' + document.main.showfiles.value + '<br>'); }       function ToggleShowFiles(path) { if (document.main.showfiles_checkbox.checked == true) { window.location = "main.cgi?page=explorer&showfiles=yes&path=" + path; } else { window.location = "main.cgi?page=explorer&showfiles=no&path=" + path; } }      function Test1(f) {                var url = ""; url = "main.cgi?page=explorer"; window.location = url;                      }            function scJsMessageHeading() {   return 'IMPORTANT MESSAGE--FROM SOFTCORP CUSTOMER CARE' + js_crlf + js_crlf; }      function scJsDisabledPageAlert() { alert('Sorry,that link is currently disabled.'); }      function scJsPrinterFriendly(url) { alert('The \'Printer Friendly\' link is provided for compatibility with old browsers (before 1999).'+js_crlf+js_crlf+'With modern browsers, pages on this website are printer friendly without'+js_crlf+'any special formatting. Just use the Print function of your browser and only'+js_crlf+'the "document" portion of the page will print.');scJsPopupWithMenus(url,'');}function scWindowOpenFailAlert(){alert('Error: Pop-up window creation failed. If you are running a pop-up window blocker, please enable pop-up windows for domain www.softcorp.us');}function scJsDecToHex(theDec){var theHexes='0123456789ABCDEF';var digit1,digit2;digit1=Math.floor(theDec/16);digit2=Math.floor(theDec % 16);return theHexes[digit1]+theHexes[digit2];}function scJsIsNumeric(theValue){for(var i=0;i<theValue.length;i++){theChar=theValue.charAt(i);if((theChar<'0')||(theChar>'9')){return false;}}return true;}var hD="0123456789ABCDEF";function d2h(d){var h=hD.substr(d&15,1);while(d>15){d>>=4;h=hD.substr(d&15,1)+h;}return h;}function h2d(h){return parseInt(h,16);}var last="",lasth="",inited=false;var map_valtohex,map_hextochar,map_hextoval;var hexes="0123456789ABCDEF";function hexinit(){var i,h;map_valtohex=new Array();map_hextochar=new Array();map_hextoval=new Array();for(i=0;i<256;i++){h=hexes.substr(i/16,1)+hexes.substr(i%16,1);map_valtohex[i]=h;map_hextochar[h]=String.fromCharCode(i);map_hextoval[h]=i;}map_hextochar["00"]=String.fromCharCode(1);inited=true;}function hexencode(a){var s,l,c,i,j;if(!inited)hexinit();l="";c="";s="";for(i=0;i<a.length;){j=a.charCodeAt(i);if(j>=32)c=c+a.charAt(i);else c=c+".";if(j<256)l=l+map_valtohex[j]+" ";else l=l+map_valtohex[Math.floor(j/256)]+map_valtohex[j%256]+" ";if(++i==a.length || l.length>45){s=s+l+"                                                  ".substr(l.length,50)+"! "+c+"\n";l="";c="";}}return s;}function hexdecode(a){var l,i,p,s,n,k,f,t,j,q;if(!inited)hexinit();l=a.split("\n");for(i=0;i<l.length;i++){p=l[i].indexOf("!");if(p>=0)l[i]=l[i].substr(0,p);}s="";n=0;for(i=0;i<l.length;i++){p=l[i].toUpperCase();k=n;n=0;f=0;t="";for(j=0;j<p.length;j++){k=p.charAt(j);if(k==" ")f=1;else if(hexes.indexOf(k)>=0){if(f && t!=""){n=1;t=t+" ";f=0;}t=t+k;}}if(i==l.length-1 &&!n && k && t.length<=4)n=k;if(!n)for(j=0;j<t.length;j+=2){p=t.substr(j,2);if(p.length==2)s+=map_hextochar[p];else s+=map_hextochar["0"+p];}else for(j=0;j<t.length;){p=t.substr(j,5);k=p.indexOf(" ");if(k<0)k=4;else j++;if(k>p.length)k=p.length;j+=k;switch(k){case 1:s+=map_hextochar["0"+p.charAt(0)];break;case 2:s+=map_hextochar[p.substr(0,2)];break;case 3:q=map_hextoval["0"+p.charAt(0)]*256+map_hextoval[p.substr(1,2)];if(q==0)q=1;s+=String.fromCharCode(q);break;case 4:q=map_hextoval[p.substr(0,2)]*256+map_hextoval[p.substr(2,2)];if(q==0)q=1;s+=String.fromCharCode(q);break;}}}return s;}function upd(){if(document.forms[0].text.value==last)return;last=document.forms[0].text.value;lasth=hexencode(last);document.forms[0].hex.value=lasth;}function upd2(){if(document.forms[0].hex.value==lasth)return;lasth=document.forms[0].hex.value;last=hexdecode(lasth);document.forms[0].text.value=last;}function scJsConsole(){}scJsConsole.prototype.debug=function(object){};scJsConsole.prototype.log=function(object){};scJsConsole.prototype.info=function(object){};scJsConsole.prototype.warn=function(object){};scJsConsole.prototype.assert=function(expression){};scJsConsole.prototype.dir=function(object){};scJsConsole.prototype.dirxml=function(object){};scJsConsole.prototype.trace=function(){};scJsConsole.prototype.group=function(object){};scJsConsole.prototype.groupEnd=function(){};scJsConsole.prototype.time=function(name){};scJsConsole.prototype.timeEnd=function(name){};scJsConsole.prototype.profile=function(title){};scJsConsole.prototype.profileEnd=function(){};scJsConsole.prototype.count=function(title){};if(typeof(console)=='undefined'){console=new scJsConsole();}function scJsLogException(e){try{var message=e.message;}catch(ee){message='unknown';}try{var theName=e.name;}catch(ee){theName='unknown';}try{var fileName=e.fileName;}catch(ee){fileName='unknown';}try{var lineNumber=e.lineNumber;}catch(ee){lineNumber='unknown';}try{}catch(ee){}}function scJsSetElementValue(id,value){try{document.getElementById(id).value=value;}catch(e){}} 
