<?xml version="1.0"?>
<Module>
<ModulePrefs title="AI's 55 Flash Fiction Counter"
            directory_title="AI's 55 Flash Fiction Counter"
            description="Counts words automatically to make writing your 55 Flash Fiction easier."
            screenshot="http://ai.identitymanagment.googlepages.com/AIFFCounterScreenshot.png"
            thumbnail="http://ai.identitymanagment.googlepages.com/AIFFCounterThumbnail.png"
            author_photo="http://ai.identitymanagment.googlepages.com/charles_007.png"
            author="Charles"
            author_email="CharlesProgrammr@gmail.com"
            author_link="http://ai-onemansquest.blogspot.com/"
            title_url="http://ai-onemansquest.blogspot.com/"
            author_affiliation="Genius Ontologics"
            author_location="Florida, USA"
            height="335"
            width="320"
            scrolling="false"
            singleton="true">
</ModulePrefs>
<Content type="html"><![CDATA[
<style type="text/css">body{text-align:center;font:120% Helvetica,Arial,Verdana,sans-serif;color:#ff0000;background:#000000;}</style>
<script type="text/javascript">/* NAME: AI-55FF.js AUTHOR:Charles, Genius Ontologics(TM) (c)Copyright 11/6/2007(c) */
  function delTextAttrib(){
    var fftx=_gel('ff55box');
    fftx.innerHTML="";
    fftx.value="";
    fftx.removeAttribute('onclick');
    try{fftx.detachEvent('onclick', delTextAttrib);}
    catch (e){fftx.removeEventListener('click',delTextAttrib,true);}
    delTextAttrib=function(){};
  }
  function checkWords(){
    var regpat=/\b(\w('s)?)+\b/g;
    var fftx=_gel('ff55box');
    try{var cnt=fftx.value.match(regpat).length;}
    catch(e){var cnt={};cnt=0;}
    var dispCnt=_gel('cnt');
    dispCnt.innerHTML=cnt.valueOf();
  }
  function clearTxtarea(){
    var fftx=_gel('ff55box');
    fftx.select();
    fftx.value="";
    checkWords();
  }
</script>
<div><strong>Count:<div id="cnt">0</div></strong></div>
<textarea id='ff55box' onclick='delTextAttrib()' cols='38' rows='15' name='ff55box' onblur='checkWords()' onkeypress='checkWords()' onchange='checkWords()'>
Enter your 55 here to count the number of words.
</textarea><button onclick='clearTxtarea()'>Clear</button>
]]></Content>
</Module>
