<!-- 
document.writeln('<div style="');
document.writeln('   width: 80px; ');
document.writeln('   height: 105px; ');
document.writeln('   margin-right: 20px; ');
document.writeln('   margin-top: 0px; ');
document.writeln('   margin-left: 0px; ');
document.writeln('   margin-bottom: 10px; ');
document.writeln('   float: left;">');
document.writeln('<a href="http://www.willmaster.com" target="_blank"><img src="http://willmaster.com/images/20000710w80105.jpg" width="80" height="105" border="0" alt="author">');
document.writeln('</a>');
document.writeln('</div>');
document.writeln('');
document.writeln('<h2>');
document.writeln('' + '<' + '!' + '-' + '-' + ' title start ' + '-' + '-' + '>' + '');
document.writeln('Text to JavaScr' + 'ipt Converter');
document.writeln('' + '<' + '!' + '-' + '-' + ' title end ' + '-' + '-' + '>' + '');
document.writeln('</h2>');
document.writeln('');
document.writeln('<p>by <a target="_blank" href="http://www.willmaster.com"><i>Will Bontrager</i></a>');
document.writeln('<br />Copyright 2009 <a target="_blank" href="http://www.willmaster.com">Bontrager Connection, LLC</a>');
document.writeln('</p>');
document.writeln('' + '<' + '!' + '-' + '-' + ' article start ' + '-' + '-' + '>' + '');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('<p>');
document.writeln('Several articles in the <a href="http://www.willmaster.com/library/">Willmaster library</a> talk about how to convert text into JavaScr' + 'ipt.');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('This article provides a one-page text to JavaScr' + 'ipt converter. The conversion is done with PHP. The converted JavaScr' + 'ipt is for saving to an external file. The code for importing the file is also generated.');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('Upload the text to JavaScr' + 'ipt converter on your web site where it\'s handy for whenever you need it.');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('The content published with JavaScr' + 'ipt may be a word, a phrase, a paragraph, or more.');
document.writeln('</p>');
document.writeln('<h3>Reasons For Using JavaScr' + 'ipt</h3>');
document.writeln('<p>');
document.writeln('</p>');
document.writeln('');
document.writeln('');
document.writeln('<p>');
document.writeln('There are a few reasons to use JavaScr' + 'ipt for publishing certain content on web pages:');
document.writeln('</p>');
document.writeln('');
document.writeln('<p style="text-indent:-1.3em; margin-left:1.3em;">');
document.writeln('<b>A. Hiding content from robots and spiders.</b>');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('JavaScr' + 'ipt content generally is not seen by robots and may not get indexed by search engine spiders, especially when the JavaScr' + 'ipt is imported from an external file.');
document.writeln('</p>');
document.writeln('<ol>');
document.writeln('<li>');
document.writeln('<p>');
document.writeln('Certain words or phrases in the content, if indexed, may have a detrimental affect on the web page\'s search results position.');
document.writeln('</p>');
document.writeln('</li>');
document.writeln('<li>');
document.writeln('<p>');
document.writeln('Certain words or phrases in the content may cause search engine algorithms to mark the web page as a bad neighborhood.');
document.writeln('</p>');
document.writeln('</li>');
document.writeln('<li>');
document.writeln('<p>');
document.writeln('If the content is an ad or something else with views counted, the logs will better represent actual views.');
document.writeln('</p>');
document.writeln('</li>');
document.writeln('</ol>');
document.writeln('');
document.writeln('<p style="text-indent:-1.3em; margin-left:1.3em;">');
document.writeln('<b>B. Publishing certain content only for browsers with JavaScr' + 'ipt enabled.</b>');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('Here are a few reasons for publishing certain content only if the browser has JavaScr' + 'ipt turned on.');
document.writeln('</p>');
document.writeln('<ol>');
document.writeln('<li>');
document.writeln('<p>');
document.writeln('To publish links to games or other content that can work only with JavaScr' + 'ipt.');
document.writeln('</p>');
document.writeln('</li>');
document.writeln('<li>');
document.writeln('<p>');
document.writeln('To hide forms from spammers\' automatic submission robots.');
document.writeln('</p>');
document.writeln('<li>');
document.writeln('<p>');
document.writeln('To publish content only when the page is loaded in a certain browser. (Code to check for type of browser can be obtained from <a href="http://www.willmaster.com/blog/javascr' + 'ipt/right-click-menu.php">Right-Click and \'Select ________\'</a> and modified to suit.)');
document.writeln('</p>');
document.writeln('</li>');
document.writeln('</ol>');
document.writeln('');
document.writeln('<p style="text-indent:-1.3em; margin-left:1.3em;">');
document.writeln('<b>C. To defeat source code page copying thieves.</b>');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('When the entire web page source code is copied for use somewhere else, the JavaScr' + 'ipt to import an external file is also copied.');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('The .htaccess file can be used to take control if the web page source code is published on another domain.');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('The <a href="http://www.willmaster.com/blog/contentprotection/defeat-page-thieves.php">Defeating Source Code Page Copying Thieves</a> blog post tells you how.');
document.writeln('</p>');
document.writeln('');
document.writeln('');
document.writeln('<h3>The Text to JavaScr' + 'ipt Conversion Software</h3>');
document.writeln('<p>');
document.writeln('Here is the complete PHP web page to convert text to JavaScr' + 'ipt.');
document.writeln('</p>');
document.writeln('');
document.writeln('<form>');
document.writeln('<textarea cols="36" rows="11" onclick="select()" class="codebox" wrap="off" readonly="readonly">');
document.writeln('&lt;html&gt;');
document.writeln('&lt;head&gt;');
document.writeln('&lt;style type="text/css"&gt;');
document.writeln('body { font-family:sans-serif; margin:50px 0 50px 100px; }');
document.writeln('textarea { width:500px; height:200px; }');
document.writeln('input { width:500px; }');
document.writeln('&lt;/style&gt;');
document.writeln('&lt;/head&gt;');
document.writeln('&lt;/body&gt;');
document.writeln('&lt;div style="width:500px;"&gt;');
document.writeln('&lt;h3&gt;Text to JavaScr' + 'ipt Converter&lt;/h3&gt;');
document.writeln('');
document.writeln('&lt;?php');
document.writeln('/* ');
document.writeln('   Text to JavaScr' + 'ipt Generator');
document.writeln('   Version 1.0');
document.writeln('   March 9, 2010');
document.writeln('');
document.writeln('   Will Bontrager');
document.writeln('   http://www.willmaster.com/');
document.writeln('   Copyright 2010 Bontrager Connection, LLC');
document.writeln('');
document.writeln('   Bontrager Connection, LLC grants you ');
document.writeln('   a royalty free license to use or modify ');
document.writeln('   this software provided this notice appears ');
document.writeln('   on all copies. This software is provided ');
document.writeln('   "AS IS," without a warranty of any kind.');
document.writeln('*/');
document.writeln('');
document.writeln('if( isset($_POST[\'submitter\']) )');
document.writeln('{');
document.writeln('   $_POST[\'text\'] = stripslashes($_POST[\'text\']);');
document.writeln('   $_POST[\'text\'] = rtrim($_POST[\'text\'],"\\r\\n");');
document.writeln('   echo \'&lt;p&gt;The JavaScr' + 'ipt converted from text is in this textarea box. ');
document.writeln('Save it to a file with a .js extension. ');
document.writeln('Upload it to your server and note its URL.&lt;/p&gt;\';');
document.writeln('   echo \'&lt;form&gt;&lt;textarea name="text" onclick="select()" wrap="off"&gt;\';');
document.writeln('   foreach( explode("\\n",str_replace("\\r",\'\',$_POST[\'text\'])) as $line )');
document.writeln('   {');
document.writeln('      $js = str_replace("\\\\","\\\\\\\\",$line);');
document.writeln('      $js = str_replace("\'","\\\\\'",$js);');
document.writeln('      $js = str_replace("&lt;!--","&lt;\'+\'!--",$js);');
document.writeln('      $js = str_replace("--&gt;","--\'+\'&gt;",$js);');
document.writeln('      $js = preg_replace(\'/(scr)(ipt)/i\',\'$1\\\'+\\\'$2\',$js);');
document.writeln('      $js = preg_replace(\'/(win)(dow)/i\',\'$1\\\'+\\\'$2\',$js);');
document.writeln('      $js = preg_replace(\'/(doc)(ument)/i\',\'$1\\\'+\\\'$2\',$js);');
document.writeln('      echo "document.writeln(\'$js\');\\n";');
document.writeln('   }');
document.writeln('   echo \'&lt;/textarea&gt;\';');
document.writeln('   echo \'&lt;p style="margin-top:25px;"&gt;The JavaScr' + 'ipt to import the file into your web page is in this textarea box. ');
document.writeln('Replace the src= URL with the URL to the above file on your server.&lt;/p&gt;\';');
document.writeln('   echo \'&lt;textarea name="text" style="height:60px;" onclick="select()" wrap="off"&gt;\';');
document.writeln('   echo \'&lt;scr' + 'ipt type="text/javascr' + 'ipt" src="http://example.com/file.js"&gt;&lt;/scr' + 'ipt&gt;\';');
document.writeln('   echo \'&lt;/textarea&gt;&lt;/form&gt;\';');
document.writeln('   echo \'&lt;hr style="margin:25px;"/&gt;\';');
document.writeln('}');
document.writeln('?&gt;');
document.writeln('');
document.writeln('&lt;p&gt;');
document.writeln('Type or paste the text to convert into this textarea box.');
document.writeln('&lt;/p&gt;');
document.writeln('&lt;form method="post" action="&lt;?php echo($_SERVER[\'PHP_SELF\']); ?&gt;"&gt;');
document.writeln('&lt;textarea name="text" wrap="off"&gt;&lt;?php echo(@$_POST[\'text\']); ?&gt;');
document.writeln('');
document.writeln('&lt;/textarea&gt;');
document.writeln('&lt;p&gt;');
document.writeln('&lt;input type="submit" name="submitter" value="Convert text to JavaScr' + 'ipt" /&gt;');
document.writeln('&lt;/p&gt;');
document.writeln('&lt;/form&gt;');
document.writeln('');
document.writeln('&lt;/div&gt;');
document.writeln('&lt;/body&gt;');
document.writeln('&lt;/html&gt;');
document.writeln('</textarea>');
document.writeln('</form>');
document.writeln('');
document.writeln('<p>');
document.writeln('The above needs no customization.');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('Save it as any web page file name ending with .php and upload it to your server. You\'re then good to go (provided your server is set up to run PHP).');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('To use the software, type the PHP web page\'s URL into your browser.');
document.writeln('</p>');
document.writeln('');
document.writeln('<h3>Example Installation</h3>');
document.writeln('<p>');
document.writeln('Here is an example of the above text to JavaScr' + 'ipt PHP web page in action: <a href="http://www.willmaster.com/library/example/text2js/text2js.php">Text to JavaScr' + 'ipt Converter</a>');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('Perhaps some of the reasons to publish content with JavaScr' + 'ipt given in this article are reasons that affect your web site.');
document.writeln('</p>');
document.writeln('<p>');
document.writeln('If yes, use the above example installation or install the JavaScr' + 'ipt converter on your server to convert the relevant text into JavaScr' + 'ipt.');
document.writeln('</p>');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('' + '<' + '!' + '-' + '-' + ' article end ' + '-' + '-' + '>' + '');
document.writeln('<p style="font-style: italic">');
document.writeln('Will Bontrager');
document.writeln('</p>');
document.writeln('');
document.writeln('<div style="margin-top:35px; margin-bottom:35px;">');
document.writeln('' + '<' + '!' + '-' + '-' + 'BEGIN WORD OF MOUTH TOOL CODE' + '-' + '-' + '>' + '' + '<' + '!' + '-' + '-' + '');
document.writeln('' + '-' + '-' + '>' + '<scr' + 'ipt type="text/javascr' + 'ipt">EmailSubject="I found some good information";EmailBody="My friend, read [[TITLE]] at \\n[[URL]]\\n\\nIt\\\'s good!\\n\\nRead it now because it might change.";</scr' + 'ipt>' + '<' + '!' + '-' + '-' + '');
document.writeln('' + '-' + '-' + '>' + '<div id="ltt_introdiv" style="border-style:dotted;border-width:2px;border-color:#000000;padding:5px 10px 5px 10px;background-color:white;">' + '<' + '!' + '-' + '-' + '');
document.writeln('' + '-' + '-' + '>' + '<div style="float:left;margin-right:5px;"><img src="http://word-of-mouth-advertising.com/tool/customize/icons/06.jpg" /></div><div style="margin-top:15px; font-weight:bold;"><a href="javascr' + 'ipt:revealLinkToTool(\'link_to_tool\')">Click Here</a> to share this weekly article with your online friends.</div><div style="clear:left;"></div>' + '<' + '!' + '-' + '-' + '');
document.writeln('' + '-' + '-' + '>' + '<div id="link_to_tool" style="display:none;"><scr' + 'ipt type="text/javascr' + 'ipt" src="http://word-of-mouth-advertising.com/tool/code/js/11-1244500960.js"></scr' + 'ipt><div style="font-size:smaller;text-align:center;">' + '<' + '!' + '-' + '-' + '');
document.writeln('' + '-' + '-' + '>' + 'The <a id="link_to_tool_0" target="_blank" href="http://word-of-mouth-advertising.com/">Word Of Mouth Tool</a><br/> is a gift from:<br/><a id="link_to_tool_1" target="_blank" href="http://www.willmaster.com">Website software that works</a><br/><a id="link_to_tool_2" target="_blank" href="http://nature-talk.com/locations/florida/index.html">Exploring North Florida Nature</a><br/><a id="link_to_tool_3" target="_blank" href="http://free-keyword-manager.com/">Free Keyword Manager</a><br/><br/></div></div></div>' + '<' + '!' + '-' + '-' + '');
document.writeln('' + '-' + '-' + '>' + '' + '<' + '!' + '-' + '-' + 'CUSTOMIZE:  You can customize your Word Of Mouth Tool here:  http://word-of-mouth-advertising.com/tool/customize/easy.php?11-1244500960' + '-' + '-' + '>' + '' + '<' + '!' + '-' + '-' + '');
document.writeln('' + '-' + '-' + '>' + '' + '<' + '!' + '-' + '-' + 'TERMS:  You have permission to use the Word Of Mouth Tool for free, if you don\'t alter this code in any way.' + '-' + '-' + '>' + '' + '<' + '!' + '-' + '-' + '');
document.writeln('' + '-' + '-' + '>' + '' + '<' + '!' + '-' + '-' + 'END WORD OF MOUTH TOOL CODE' + '-' + '-' + '>' + '');
document.writeln('</div>');
document.writeln('');
document.writeln('' + '<' + '!' + '-' + '-' + ' --------- --------- --------- --------- --------- --------- ' + '-' + '-' + '>' + '');
document.writeln('<scr' + 'ipt type="text/javascr' + 'ipt">');
document.writeln('// Copyright 2008 Bontrager Connection, LLC');
document.writeln('// http://www.willmaster.com/');
document.writeln('var thankyou = "Thank you! Response has been sent. Please say more if you wish."');
document.writeln('var scr' + 'iptURL = "http://www.willmaster.com/library/cgi-bin/think/MasterFormV4.cgi";');
document.writeln('var emailtemplate = "think/responsemail.txt";');
document.writeln('var filetemplate = "think/responsefile.txt";');
document.writeln('var dbfile = "think/responserecord.txt";');
document.writeln('');
document.writeln('function Thoughts_FieldContent(D,S,SS) { if( (D.value == S) || (D.value == SS) ) { D.value = ""; } }');
document.writeln('function Thoughts_RecordIt(D,ID) {');
document.writeln('var receive = scr' + 'iptURL+\'?redirect=/&\';');
document.writeln('if(emailtemplate) { receive += \'emailtemplate=\'+emailtemplate+\'&\'; }');
document.writeln('if(filetemplate) { receive += \'filetemplate=\'+filetemplate+\'&\'; }');
document.writeln('if(dbfile) { receive += \'dbfile=\'+dbfile+\'&\'; }');
document.writeln('var response = new Image();');
document.writeln('response.src = receive+\'ID=\'+escape(ID)+\'&URL=\'+escape(document.URL)+\'&RESPONSE=\'+escape(D.value);');
document.writeln('D.value = thankyou;');
document.writeln('}');
document.writeln('</scr' + 'ipt>');
document.writeln('<p style="margin-bottom: 5px;">');
document.writeln('Was this article interesting? ');
document.writeln('Does it provide information you can use? ');
document.writeln('How can it be improved? ');
document.writeln('<strong>Your comment is anonymous.</strong> ');
document.writeln('When done, click anywhere outside the box. ');
document.writeln('</p>');
document.writeln('<form style="margin: 0pt;">');
document.writeln('<textarea name="response" rows="6" cols="44" style="border-width: 2px; padding: 3px; width: 350px; background-color: rgb(204, 204, 255);" onclick="Thoughts_FieldContent(this,\'Type your response here.\',\'Thank you! Response has been sent. Please say more if you wish.\')" onblur="Thoughts_RecordIt(this,\'AFF\')">Type your response here.</textarea>');
document.writeln('</form>');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('<p>');
document.writeln('Powered by <a target="_blank" href="http://willmaster.com/master/syndicator/">Master Syndicator</a> and provided by');
document.writeln('<br /><a target="_blank" href="http://willmaster.com/possibilities/">WillMaster Possibilities</a>');
document.writeln('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">' + '<' + '!' + '-' + '-' + '');
document.writeln('var statsurl = \'http://www.willmaster.com/possibilities/syndication/fromload.mth\';');
document.writeln('statsurl += \'?from=\'+escape(document.URL)+\'&title=\'+escape(document.title);');
document.writeln('statsurl += \'&1\'+Math.random();');
document.writeln('document.write(\'<img src="\'+statsurl+\'" height="1" width="2" border="0">\');');
document.writeln('//' + '-' + '-' + '>' + '</scr' + 'ipt>');
document.writeln('');
document.writeln('');
document.writeln('<form target="_blank" name="a1182735724a" id="a1182735724a" action="http://www.willmaster.com/possibilities/cgi-bin/b-mailer/bmailerSubscribe.cgi" method="POST">');
document.writeln('<table border="1" cellpadding="11" cellspacing="0"><tr><td>');
document.writeln('<p style="font-weight:bold;margin:0">Subscribe to the Possibilities Ezine here</p>');
document.writeln('<input type="hidden" name="FormTypeDefault" value="T"><input type="hidden" name="redirect" value="http://willmaster.com/possibilities/thsubscribe.shtml"><input type="hidden" name="c1182735724c" value="999"><input type="hidden" name="id" value="a1182735724a">');
document.writeln('<input type="text" name="subname" size="15" value="Name" onkeyup="f311827357243f()" onclick="javascr' + 'ipt:f211827357242f(\'subname\',\'Name\');">');
document.writeln('<input type="text" name="subemail" size="15" value="Email" onkeyup="f311827357243f()" onclick="javascr' + 'ipt:f211827357242f(\'subemail\',\'Email\');">');
document.writeln('<input type="submit" value="Subscribe Free!" onclick="return f1182735724f();">');
document.writeln('</td></tr></table>');
document.writeln('</form>');
document.writeln('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">' + '<' + '!' + '-' + '-' + '');
document.writeln('var c311827357243c = \'document.\'+"a1182735724a"+\'.\'+"c1182735724c"+".value"+\'=\'+"5";');
document.writeln('function StripSpacesFromEnds(s) {');
document.writeln('while((s.indexOf(\' \',0) == 0) && (s.length> 1)) { s = s.substring(1,s.length); }');
document.writeln('while((s.lastIndexOf(\' \') == (s.length - 1)) && (s.length> 1)) { s = s.substring(0,(s.length - 1)); }');
document.writeln('if((s.indexOf(\' \',0) == 0) && (s.length == 1)) { s = \'\'; }');
document.writeln('return s;');
document.writeln('}');
document.writeln('function RemoveEmbeddedSpaces(s) {');
document.writeln('var i = s.indexOf(\' \',0);');
document.writeln('while(i > -1)');
document.writeln('{');
document.writeln('s = s.substring(0,i) + s.substring((i + 1),s.length);');
document.writeln('i = s.indexOf(\' \',0);');
document.writeln('}');
document.writeln('return s;');
document.writeln('}');
document.writeln('function IsItPresent(s) {');
document.writeln('if(s.length > 0) { return true; }');
document.writeln('return false;');
document.writeln('}');
document.writeln('function CheckEmail(s_email) {');
document.writeln('s_email = StripSpacesFromEnds(s_email);');
document.writeln('s_email = RemoveEmbeddedSpaces(s_email);');
document.writeln('if(IsItPresent(s_email) == false) { return false; }');
document.writeln('if( (s_email.length <6) ||');
document.writeln('    (s_email.indexOf(\'@\',0) < 1) ||');
document.writeln('    (s_email.lastIndexOf(\'@\') != s_email.indexOf(\'@\',0)) ||');
document.writeln('    (s_email.lastIndexOf(\'@\') > (s_email.length - 5)) ||');
document.writeln('    (s_email.indexOf(\'..\',0) > -1) ||');
document.writeln('    (s_email.indexOf(\'@.\',0) > -1) ||');
document.writeln('    (s_email.indexOf(\'.@\',0) > -1) ||');
document.writeln('    (s_email.indexOf(\',\',0)  > -1) )');
document.writeln('{ return false; }');
document.writeln('return true;');
document.writeln('}');
document.writeln('function f311827357243f() {');
document.writeln('document.a1182735724a.c1182735724c.value *= 13;');
document.writeln('eval(c311827357243c);');
document.writeln('}');
document.writeln('function f1182735724f() {');
document.writeln('var ret = true;');
document.writeln('if( (document.a1182735724a.subemail.value == \'Email\') || (document.a1182735724a.subemail.value.length < 1) ) { alert(\'Your email address is required.\'); ret = false; }');
document.writeln('else if(CheckEmail(document.a1182735724a.subemail.value) == false) { alert(\'Your email address is formatted incorrectly.\'); ret = false; }');
document.writeln('if( ret && (document.a1182735724a.subemail.value.length > 5) ) { eval(c311827357243c); }');
document.writeln('return ret;');
document.writeln('}');
document.writeln('function f211827357242f(k,v) {');
document.writeln('var ev = new String();');
document.writeln('eval(\'ev = document.a1182735724a.\' + k + \'.value\');');
document.writeln('if(ev == v) { eval(\'document.a1182735724a.\' + k + ".value = \'\'"); }');
document.writeln('}');
document.writeln('//' + '-' + '-' + '>' + '</scr' + 'ipt>');
// -->
