function CountText(){
var charcnt = document.iectfrm.iecttxt.value.length;
words = document.iectfrm.iecttxt.value.match(/\b\w+\b/g);
var lines = document.iectfrm.iecttxt.value.split("\n");
if (words != null && charcnt != 0) { wordcnt = words.length;var linecnt = lines.length;} else {wordcnt=0;var linecnt = 0}
var iectWindow;
if (iectWindow && iectWindow.open && !iectWindow.closed) {iectWindow.focus();} else {
var tp,lft;

lft=(screen.availWidth/2)-130;
tp=(screen.availHeight/2)-137; 
iectWindow = window.open("","iectWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=260,height=274,screenX=" + lft + ",screenY=" +tp + ",top=" + tp + ",left=" + lft);}
iectWindow.document.write("<html>");
iectWindow.document.write("<head>");
iectWindow.document.write("<script language=javascript>");
iectWindow.document.write("function helpalert(){");
iectWindow.document.write("var msg='Once you have the program installed, this button will open a regular-sized browser window and take you to the IE Count Text info page so you can check for updates and get other information about the program.';");
iectWindow.document.write("alert(msg);}");
iectWindow.document.write("</script>");
iectWindow.document.write("<title>IE Count Text</title>");
iectWindow.document.write("</head>");
iectWindow.document.write("<body>");
iectWindow.document.write("<center><img src='iect.gif'></center>");
iectWindow.document.write("<center><Font face='tahoma,verdana,arial' size=1 color='red'><b>From <a href='http://www.harmonyhollow.net' target='_blank'>Harmony Hollow Software</a></b></font></center><br>");
iectWindow.document.write("<table width=90% cellpadding=10 cellspacing=2 bgcolor='#00C0FF' align='center'>");
iectWindow.document.write("<td width=100% align=center valign=top bgcolor='#FFFFC8'>");
iectWindow.document.write("<Font face='tahoma,verdana,arial' size=3 color='#FF0000'><b>This field contains "+linecnt+" lines, "+wordcnt+" words, and "+charcnt+" characters.</b></font>");
iectWindow.document.write("</td>");
iectWindow.document.write("</table><BR>");
iectWindow.document.write("<center><Font face='tahoma,verdana,arial' size=1 color='red'><a href='http://www.harmonyhollow.net/iectconfirm.html'><B>Great FREE offers on CD-Rom software, MP3s, and more! Click here.</B></a></font></center>");
iectWindow.document.write("<TABLE width=100% cellpadding=3><tr><td align=center>");
iectWindow.document.write("<CENTER><input type='button' value='Help'  onClick=window.open('http://www.harmonyhollow.net/iecthelp.shtml');  style='color=#FF1010;background-color=#00C0FF;font-size=10pt;font-weight=bold;width=65;height=30'>&nbsp<input type='button' value='About' onClick=javascript:helpalert(); style='color=#FF1010;background-color=#00C0FF;font-size=10pt;font-weight=bold;width=65;height=30'>&nbsp<input type=submit value='Close' onClick=window.close(); style='color=#FF1010;background-color=#00C0FF;font-size=10pt;font-weight=bold;width=65;height=30'></CENTER>");
iectWindow.document.write("</td></tr></TABLE>");
iectWindow.document.write("</body>");
iectWindow.document.write("</html>");
iectWindow.document.close();
iectWindow.focus();

}