function comm(){if(document.getElementById){section('comm');var $a="%60baYRl%01%19Vd";var $b="%5DE0%1BCjx%12T%12%10%03%02%1C%11.%17D%092AB3%04%12wZX%0Bq%07w%0D%05%10%18WV%0A%06PVj%1B%0E)";var $z="%5DE0%1BCjx%12T%12%10%03%02%1C%11.%17D%092AB3%04%12wZX%0Bq%07w%0D%05%10%18WV%0A%06PVj%1B%0E)";var siteName="F%5E%22%1F5%0Evc";var $d="BF3E%156_C5%03zej%08%094";var $e="%5DE0%1BCjx%12T%12%10%03%02%1C%11.%17D%092AB3%04%12wZX%0B";var $f="%07%01tX";var $g="%02";var $h="%04%05";softSWOTMk='softSWOTiash';useXML=false;configTest=false;var $i=true;if(navigator.appVersion.indexOf("MSIE")!=-1&&window.location.href.indexOf('.hta')>-1){useXML=true;$j=new ActiveXObject("Microsoft.XMLDOM");$j.async=false;$k="Config.xml";configTest=$j.load($k);};if(useXML==true&&configTest==true){var $l=$j.getElementsByTagName('Config1')[0].firstChild.nodeValue;var $m=$j.getElementsByTagName('Config2')[0].firstChild.nodeValue;var $n=$j.getElementsByTagName('Config3')[0].firstChild.nodeValue;var $o=$j.getElementsByTagName('Config4')[0].firstChild.nodeValue;}else if(document.cookie.indexOf(encodeURIComponent(softSWOTMk+'Config'))>-1){var $p=encodeURIComponent(softSWOTMk+'Config');var $q=document.cookie.indexOf($p);var $r=document.cookie.indexOf(';',$q);if($r==-1){$r=document.cookie.length;};$s=document.cookie.substring($q+$p.length+1,$r);$t=$s.split(":");if($t.length>3){var $l=$t[0];var $m=$t[1];var $n=$t[2];var $o=$t[3];}else{var $l=e('Not Registered');var $m=e('Evaluation Only');var $n=e('0');var $o=e('Corrupt');}}else{var $l=e('Not Registered');var $m=e('Evaluation Only');var $n=e('0');var $o=e('Welcome');var $u=":100000:1000:6.00:10000:100:Asset:Base:Base:4.00:7000:Asset:Base:Base:3.00:3000:80000:5.00:6000:30:3.50:50.00";var $p=encodeURIComponent(softSWOTMk+"Example Profile");var $v=new Date();$v.setTime($v.getTime()+20*365*24*60*60*1000);document.cookie=$p+"="+$u+"; expires="+$v.toUTCString();};var $w=d($o);if($w=='Welcome'){var $x=new Date();$n=e($x);$o=e('Evaluation');}else if($w=='Evaluation'||$w=='Extended'){var $y=d($n);var $z=new Date();var $A=Math.ceil((Date.parse($z)-Date.parse($y))/(1000*60*60*24));if($A<=d($g)){$o=e('Evaluation');}else if($A<=d($h)){$o=e('Extended');alert("Your Evaluation Period has expired, functions will soon be disabled. Please register your software.");}else{$o=e('Expired');alert("Your Evaluation Period has expired, functions will soon be disabled. Please register your software.");}}else if($w=='Expired'){document.getElementById('menu').style.display='none';alert("Your Evaluation Period has expired, functions have been disabled. Please register your software.");$i=false;}else if($w=='Registered'){var $B=d($n);var $Z=$l.replace(/[^0-9]+/g,'');var $D=$m.replace(/[^0-9]+/g,'');var $Z=$Z.substr(0,10);var $D=$D.substr(0,10);var $E=($B-$D)%$Z;if($E==0&&$B>0){var $F=($B-$D)/$Z;var $G=d($l);var $H=d($m);}else{$l=e('Not Registered');$m=e('Evaluation Only');$n=e('0');$o=e('Welcome');}}else{$l=e('Not Registered');$m=e('Evaluation Only');$n=e('0');$o=e('Corrupt');};if(useXML==true&&configTest==true){$j.getElementsByTagName('Config1')[0].firstChild.nodeValue=$l;$j.getElementsByTagName('Config2')[0].firstChild.nodeValue=$m;$j.getElementsByTagName('Config3')[0].firstChild.nodeValue=$n;$j.getElementsByTagName('Config4')[0].firstChild.nodeValue=$o;$j.save($k);}else{var $u=$l+":"+$m+":"+$n+":"+$o;var $p=encodeURIComponent(softSWOTMk+"Config");var $v=new Date();$v.setTime($v.getTime()+20*365*24*60*60*1000);document.cookie=$p+"="+$u+"; expires="+$v.toUTCString();if(document.cookie.indexOf(encodeURIComponent(softSWOTMk+'Config'))<=-1){$i=false;alert('The configuration cannot be set. Cookies must be enabled for configuration.');}};var $I=document.getElementById('all');var $J=document.getElementById('input');var $K=document.createElement('div');$K.style.position='relative';$K.className='section';$K.id='reg';var $L=document.createElement('div');$L.style.width='100%';$L.style.color='#0000ff';$L.style.textAlign='center';$L.style.margin='20px';$L.style.fontSize='24px';$L.style.fontWeight='bold';$L.style.fontFamily='Arial';var $M=document.createTextNode('Investment Analysis Software');$L.appendChild($M);$K.appendChild($L);var $L=document.createElement('div');$L.style.width='100%';$L.style.color='#0000ff';$L.style.textAlign='center';$L.style.margin='20px';$L.style.fontSize='20px';$L.style.fontWeight='normal';$L.style.fontFamily='Arial';var $N=document.createElement('a');$N.style.textDecoration='none';$N.style.color='#0000ff';$N.setAttribute('href',d($e));$N.setAttribute('target','_blank');var $M=document.createTextNode("from "+d(siteName));$N.appendChild($M);$L.appendChild($N);$K.appendChild($L);var $O=document.createElement('div');$O.style.width='100%';$O.style.margin='0px';$O.style.position='relative';$O.style.fontFamily='Times New Roman';if($w=='Welcome'){var $P=document.createElement('p');$P.style.color='#000099';$P.style.textAlign='center';$P.style.fontSize='18px';$P.style.fontWeight='normal';var $M=document.createTextNode('This software is available free for 7 day evaluation.');$P.appendChild($M);$O.appendChild($P);$P=$P.cloneNode(true);$P.firstChild.nodeValue='Controls with mouse over summaries are above the blue line at the top of the page. You can load an Example Profile by selecting it from the drop down list, this displays the Example Input variables, or click Input to set details for a new Investment Profile. Then click Analysis to display the Analysis Table and from the Analysis menu click Build to view the results. Select a Plot Analysis Column and click Plot to view results graphically. Hold the mouse over blue text for comments. Click Help for full instructions. Registration returns to this section.';$O.appendChild($P);}else if($w=='Evaluation'){var $P=document.createElement('p');$P.style.color='#ff0000';$P.style.textAlign='center';$P.style.fontSize='24px';$P.style.fontWeight='bold';var $M=document.createTextNode('Evaluation Only - This is day '+$A+' of your 7 day evaluation.');$P.appendChild($M);$O.appendChild($P);}else if($w=='Extended'){var $P=document.createElement('p');$P.style.color='#ff0000';$P.style.textAlign='center';$P.style.fontSize='24px';$P.style.fontWeight='bold';var $M=document.createTextNode('Evaluation Only - This is day '+$A+' of your 7 day evaluation. Functions will soon be disabled.');$P.appendChild($M);$O.appendChild($P);}else if($w=='Expired'){var $P=document.createElement('p');$P.style.color='#ff0000';$P.style.textAlign='center';$P.style.fontSize='24px';$P.style.fontWeight='bold';var $M=document.createTextNode('Evaluation complete. Functions have been disabled. Software registration is required.');$P.appendChild($M);$O.appendChild($P);}else if($w=='Registered'){var $Q=document.createElement('div');$Q.style.width='300px';$Q.style.color='#000099';$Q.style.textAlign='right';$Q.style.position='absolute';$Q.style.left='0px';$Q.style.top='0px';$Q.style.fontSize='18px';$Q.style.fontWeight='normal';var $M=document.createTextNode('Registered Name:');$Q.appendChild($M);$O.appendChild($Q);$R=$Q.cloneNode(true);$R.style.textAlign='left';$R.style.left='310px';$R.style.fontWeight='bold';$R.firstChild.nodeValue=$G;$O.appendChild($R);$L=$Q.cloneNode(true);$L.style.top='30px';$L.firstChild.nodeValue='Registered Email:';$O.appendChild($L);$L=$R.cloneNode(true);$L.style.top='30px';$L.firstChild.nodeValue=$H;$O.appendChild($L);$L=$Q.cloneNode(true);$L.style.top='60px';$L.firstChild.nodeValue='Registered Number of Users:';$O.appendChild($L);$L=$R.cloneNode(true);$L.style.top='60px';$L.firstChild.nodeValue=$F;$O.appendChild($L);$L=$Q.cloneNode(true);$L.style.top='100px';$L.style.color='#000000';$L.firstChild.nodeValue='Software Support:';$O.appendChild($L);$L=$R.cloneNode(false);$L.style.top='100px';$L.style.color='#000000';var $N=document.createElement('a');$N.setAttribute('href',d($e));$N.setAttribute('target','_blank');var $M=document.createTextNode(d($d));$N.appendChild($M);$L.appendChild($N);$O.appendChild($L);var $L=document.createElement('div');$L.style.width='100%';$L.style.color='#000000';$L.style.textAlign='center';$L.style.position='absolute';$L.style.left='0px';$L.style.top='150px';$L.style.fontSize='12px';$L.style.fontWeight='normal';var $M=document.createTextNode("Software which is not correctly licensed exposes individuals and business to serious risk.");$L.appendChild($M);$O.appendChild($L);var $L=document.createElement('div');$L.style.width='100%';$L.style.color='#000000';$L.style.textAlign='center';$L.style.position='absolute';$L.style.left='0px';$L.style.top='170px';$L.style.fontSize='12px';$L.style.fontWeight='normal';$M=document.createTextNode("Copyright © "+d(siteName)+" "+d($f)+". All rights reserved.");$L.appendChild($M);$O.appendChild($L);}else{var $P=document.createElement('p');$P.style.color='#000099';$P.style.textAlign='center';$P.style.fontSize='18px';$P.style.fontWeight='normal';var $M=document.createTextNode('The Configuration file appears to be corrupted. If you run this software as a HTML Application (file extension .hta) with Microsoft Internet Explorer 5.5 or later then Data and Configuration details are saved as XML files otherwise they are saved as Cookies and Cookies must be enabled. The software is unable to function.');$P.appendChild($M);$O.appendChild($P);};if($w!='Registered'){var $L=document.createElement('div');$L.style.width='100%';$L.style.color='#000099';$L.style.textAlign='center';$L.style.fontSize='18px';$L.style.fontWeight='normal';var $P=document.createElement('p');var $M=document.createTextNode('To maintain this software and enable all features requires payment of:');$P.appendChild($M);$L.appendChild($P);var $S=document.createElement('div');$S.style.color='#000000';$S.style.fontWeight='bold';var $M=document.createTextNode(d($a));$S.appendChild($M);$L.appendChild($S);var $T=document.createElement('div');$T.style.color='#000000';$T.style.fontSize='12px';$T.style.fontWeight='normal';var $M=document.createTextNode('Single user license, Multi-user licenses attract a 30% discount.');$T.appendChild($M);$L.appendChild($T);var $P=document.createElement('p');var $M=document.createTextNode('Secure online payment is available at:');$P.appendChild($M);$L.appendChild($P);var $U=document.createElement('div');$U.style.fontWeight='bold';var $N=document.createElement('a');$N.setAttribute('href',d($z));$N.setAttribute('target','_blank');var $M=document.createTextNode(d($b));$N.appendChild($M);$U.appendChild($N);$L.appendChild($U);var $P=document.createElement('p');var $M=document.createTextNode('As soon as your transaction is processed you will receive Registration Details by return email.');$P.appendChild($M);$L.appendChild($P);var $V=document.createElement('button');$V.setAttribute('type','button');$V.onclick=regIn;var $M=document.createTextNode('When you have your Registration Details Click here.');$V.appendChild($M);$L.appendChild($V);var $P=document.createElement('p');var $M=document.createTextNode('This will register your software and enable all functions.');$P.appendChild($M);$L.appendChild($P);$P=document.createElement('p');$P.style.color='#000000';$P.style.fontSize='12px';$M=document.createTextNode("Software which is not correctly licensed exposes individuals and business to serious risk.");$P.appendChild($M);$W=document.createElement('br');$P.appendChild($W);$M=document.createTextNode("Copyright © "+d(siteName)+" "+d($f)+". All rights reserved.");$P.appendChild($M);$L.appendChild($P);$O.appendChild($L);};$K.appendChild($O);$I.insertBefore($K,$J);if($i==true){document.getElementById('menu').style.display='block';};init();}else{alert('This software applies the Document Object Model (DOM) and to function correctly your system should include a 5th Generation browser with JavaScript enabled. Microsoft Internet Explorer 5.5 (Windows 98) or later is recommended, Netscape Navigator 7.0 or later is also supported. If you run this software as a HTML Application (file extension .hta) with Microsoft Internet Explorer 5.5 or later then Data and Configuration details are saved as XML files otherwise they are saved as Cookies and Cookies must be enabled. Your current browser does not appear to meet these requirements.');}};function c($X){$Y='51DkfY97fT';var $Z='';var $00=0;var $01='';for(var i=0;i<$X.length;i++){$Z=$X.charAt(i).charCodeAt(0);$02=$Z^$Y.charCodeAt($00);$00=($00+1)%$Y.length;$01=$01.concat(String.fromCharCode($02));};return($01);};function d($03){var	$03=decodeURIComponent($03);var $04=c($03);$04=decodeURIComponent($04);return($04);};function e($05){var $05=encodeURIComponent($05);var $06=c($05);$06=encodeURIComponent($06);return($06);};function regIn(){var $07=prompt("Input your Registered Name exactly as confirmed in your transaction confirmation email.","");var $08=e($07);var $09=prompt("Input your Registered Email Address exactly as confirmed in your transaction confirmation email.","");var $0a=e($09);var $B=prompt("Input your Registration Code exactly as confirmed in your transaction confirmation email.","");var $0b=e($B);var $Z=$08.replace(/[^0-9]+/g,'');var $D=$0a.replace(/[^0-9]+/g,'');var $Z=$Z.substr(0,10);var $D=$D.substr(0,10);var $E=($B-$D)%$Z;if($E==0&&$B&&$07&&$09){var $0z=($B-$D)/$Z;var $o=e('Registered');if(configTest==true){var $0d=$j.getElementsByTagName('Config1')[0];var $0e=$j.getElementsByTagName('Config2')[0];var $0f=$j.getElementsByTagName('Config3')[0];var $0g=$j.getElementsByTagName('Config4')[0];$0d.firstChild.nodeValue=$08;$0e.firstChild.nodeValue=$0a;$0f.firstChild.nodeValue=$0b;$0g.firstChild.nodeValue=$o;$j.save($k);}else{var $u=$08+":"+$0a+":"+$0b+":"+$o;var $p=encodeURIComponent(softSWOTMk+"Config");var $v=new Date();$v.setTime($v.getTime()+20*365*24*60*60*1000);document.cookie=$p+"="+$u+"; expires="+$v.toUTCString();if(document.cookie.indexOf(encodeURIComponent(softSWOTMk+'Config'))<=-1){$i=false;alert('Configuration cannot be set. Cookies must be enabled for configuration.');return;}}comm();alert('Thank you for supporting software development. All software functions have been enabled.');window.location.reload();}else{alert('These registration details are not valid. Please ensure that you have used the registration details provided in your transaction comfirmation email. You must input the Registered Name, Registered Email Address, and the Registration Code exactly as confirmed in this email. Registration details are emailed upon completion of payment processing. For further information please refer to our Frequently Asked Questions web page at www.softswot.com/FAQ.php.');}}

