function validateInput(){if(document.getElementById('username').value.length<1){alert('Please enter a username');document.getElementById('username').focus();return false;}else if(document.getElementById('password').value.length<1){alert('Please enter a password');document.getElementById('password').focus();return false;}document.forms['loginform'].submit();}function setPanelText(section){var title=document.getElementById('maintitle');var text=document.getElementById('maintext');if(title){switch(section){case'submit':title.innerHTML='What could you build?';text.innerHTML='<p>CodeCogs is built on the collective contributions of many developers, each contibuting in their specialise areas to provide fast and accurate functions with stunning documentation.</p><p>You can also contribute in other ways: reference pages, articles or perhaps help others through our forum.</p>';break;case'code':title.innerHTML='C/C++ Code';text.innerHTML='<img src="/images/icons/recycle.gif" align="right" height="40" width="40"/>Recycle your code and help the world ro program better and quicker:<ul class="orangebullets"><li>Publish your code with either an open source or commercial licence, or keep it private.</li><li>Collaborate with other developers.</li><li>Document you code quickly with formated text, Equations and Graphs.</li><li>Watch your function automatically turn into Instant Calculators, Excel addins and .NET packages.</li></ul>';break;case'ref':title.innerHTML='References';text.innerHTML='<img src="/components/mainPanel/images/references.gif" align="right" height="27" width="50"/><p>All CodeCogs reference pages come with worked examples, which you can match to your own technical problems and follow to find a solution.</p><p>All users can add or edit pages and help to make a universal resource focussed exclusively on technical subjects.';break;case'instant':title.innerHTML='Instant Calculators';text.innerHTML='<img src="/components/mainPanel/images/instant_calcs.gif" align="right" height="42" width="58"/>Instant Calculators bring the web alive, allowing fast numerical calculations with graphs and tables to be made through practically any website and some email systems.<p>Thinking about licencing code from CodeCogs, then test the function here and now without downloading anything!<p>Need a calculator for your website: Create you own by submitting the underlying mathematics to CodeCogs.</p>';break;case'latex':title.innerHTML='Equation Editor';text.innerHTML='<img src="/gif.latex?\\int_a^b x^2 dx"align="right"/>The CodeCogs Equation Editor is now the worlds most popular online editor.<p>Designed around the LaTeX documention system,it produces beautifully arranged equations as gif,png,pdf or even flash swf files.</p><p>Fully integrated into many web editors,including FCKEditor and TiddlyWiki.';break;case'download':title.innerHTML='Downloading';text.innerHTML='<img src="/components/mainPanel/images/download.png" align="right" height="32" width="32"/>CodeCogs is designed to allow you to obtain only the code you need in the form most easy for you to use:<ul class="orangebullets"><li>View directly over the web.</li><li>Download as C header files that only require a #include to use.</li><li>Download components with .NET wrappers, enabling them to be used instantly within Visual Basic and C#.</li><li>As compiled Excel addins.</li><li>and more...</li></ul>';break;case'netcode':title.innerHTML='Visual Studio .NET';text.innerHTML='<p><strong>Coming Soon.</strong> You\'ll shortly be able to download .NET projects for each CodeCogs module directly into your .NET solution. These wrappers will ensure you can use the code semlessly within Visual Basic, C# and for that matter any other .NET language. The combo is awsome: the best numerical performance (curtesy of C++) with the fanatastic UI design, development and connectivity that comes with Visual Studio.</p>';break;case'excel':title.innerHTML='Excel Addins';text.innerHTML='<img src="/components/mainPanel/images/excel.gif" align="right" height="52" width="53"/>Download your favorite CodeCogs modules as Microsoft Excel&reg; add-ins and embed them directly into your Excel sheets - allowing you to expand the functionality of excel with high performance numerical solutions.<p>Now you don\'t need to be able program to use CodeCogs. Furthermore before you download an add-in, you can can test it online using our \'Instant Calculators\'.';break;case'dev':title.innerHTML='Development Projects';text.innerHTML='Often you may have a great idea for a module, but you don\'t have the time or acute expertise to complete it.<p>Under these circumstances, CodeCogs projects allow partially complete code to exist within a private area of CodeCogs, where other developers can see your development notes and documentation.</p><p>On an request you can then permit interested users access to your code and thereby form a collaborative community of developers.</p>';break;case'request':title.innerHTML='Need Help - Requests';text.innerHTML='There is never enough time in this world, so why not ask others to help solve your problems.<p>CodeCogs has developed a unique request system that allows developers to modify the specifications for a project and more accurately state what it is they can deliver. As the requester you then select the terms that suit you best</p><p>All the the lost';break;case'find':title.innerHTML='Need Work';text.innerHTML='If you search through the CodeCogs request system you can hopefully find projects that you might be interested in developing. <p>Failing that we at CodeCogs have a vast number of problems that we would like to see solved, so please contact us with the area of expertise and we\'ll see if we can match you to something we need. <strong>Please note</strong> We only consider people who have already contributed something to CodeCogs.</p>';break;case'member':title.innerHTML='Become a Member';text.innerHTML='Support CodeCogs with contributions of code, expertise or a cash donation, and become a member of CodeCogs with enhanced benefits and increased access to a rapidly growing library.<br/><strong>Benefits include</strong>:<ul class="orangebullets"><li>Discount on commercial licences</li><li>Unlimited free (GPL) licences.</li><li>Bid and Requests without a deposit.</li><li>Priority support and assistance.</li><a href="/pages/cart/members.php">more...</a></p>';break;default:title.innerHTML='Welcome to CodeCogs';text.innerHTML='<p>CodeCogs is a collaborative open-source library,with numerical components written in C/C++.</p><p>Our vision is to create a well documented,interactive library that contains a broad selection of components in all areas of<strong>computing</strong>, <strong>mathematics</strong>,<strong>statistics</strong>, <strong>science</strong>,<strong>engineering</strong> and <strong>finance</strong>.</p><p>Please join the community and contribute whatever you can.</p>';break;}}}
