function print_table(){
var options="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=850,height=600,left=100,top=25";
var contents = "<p><p>"; 
contents += document.getElementById('plain_printout').innerHTML;
contents = contents.replace (/<font color.*?>|<b>/gi,""); 
contents = contents.replace (/<table>/gi,"<table font size=-1>");
//contents = contents.replace (/[()]/gi,"");// Nums in parenth made neg in Excel BUT...
var winprint = window.open("","",options);
winprint.document.open();
winprint.document.write('<html><title>VP table output</title><body><font face=arial size=-1>');
winprint.document.write(contents);
winprint.document.write('</body></html>');
winprint.document.close();
winprint.focus();
}


function print_list(){
var options  ="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=750,height=600,left=100,top=25";
var contents="<p><p>";
contents += document.getElementById('lists_plain').innerHTML;
contents = contents.replace (/<p>/gi,'pppp'); 
contents = contents.replace (/<br>/gi,'brbr'); 
contents = contents.replace (/<hr>/gi,'hrhr');
contents = contents.replace (/<blockquote>/gi,'blblstart');
contents = contents.replace (/<.*?>/gi,""); 
contents = contents.replace (/pppp/gi,'<p>');
contents = contents.replace (/brbr/gi,'<br>');
contents = contents.replace (/hrhr/gi,'<hr>');
contents = contents.replace (/blblstart/gi,'<p>');
var winprint = window.open("","",options);
winprint.document.open();
winprint.document.write('<html><body><title>VP lists output</title><font face=arial size=-1>');
winprint.document.write(contents);
winprint.document.write('</body></html>');
winprint.document.close();
winprint.focus();
}




function strip_returns(){
document.anal.text_input.value = document.anal.text_input.value.replace(/\r\n/g," ");//FOR LISTS
}



function wordcount() {
document.anal.text_input.value = document.anal.text_input.value.replace(/\r\n/g," ");//ADDED AUG 07 FOR LISTS
var charcount = document.anal.text_input.value;
var cleanstrg = document.anal.text_input.value;
 do {
 cleanstrg = cleanstrg.replace("  ", " "); //replaces all double spacing with single spacing
 } while(cleanstrg.indexOf("  ") > 0); //while there is double spacing //I changed, 0 was -1
var wordcount = cleanstrg.split(" "); //produces a string array
if (charcount.length == 0) { //My addition (error '1' for '0' words)
wordcount.length = 0
}
alert("Entry window contains:\n" + wordcount.length + " words, " + charcount.length + " characters. ");
}


function demo_isogram()
{
var $title = "Isogram";
var $names="";

var $demotext="Below, dear reader, you will encounter perhaps the longest English-language literary isogram ever constructed: every word therein is unique. While reading, please watch carefully for inadvertent duplication  (hopefully they appear impossible to find). Professor H.J. Verschuyl has written a Dutch example three times longer (see Battus's Opperlandse taal- & letterkunde, page 62); however, this work does not translate very felicitously. Had he, perchance, too many foreign idioms in his account?\n\n Formerly, some writers piled one adjective on another ad nauseum, but such concatenation was often criticized as making humdrum narrative. My essay employs those 33 words (emphasized with boldface type) rated most common by Kucera and Francis.\n\n Note that I have used an article here - profligate wastefulness, because it may never be reused. Why underline these? Similarities among letter sequences raise perplexing questions; can prefixing legitimize root reuse? What about changes of tense, shown above? Or plurals? Hyphenated terms cause additional problems; are their component parts disallowed? Clearly, different spellings must always generate admissible lexical forms.\n\n Who shall write more extensive prose passages which, free from any repetition whatever, sound natural throughout?";

document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}


function demo_lit_1()
{
var $title = "Literature 1";
var $names = "Buck Miller Elmo Manuel";

var $demotext="Call of the Wild, Chapter 1 \n\nInto the Primitive\n\nBuck did not read the newspapers, or he would have known that trouble was brewing, not only for himself, but for every tide-water dog, strong of muscle and with warm, long hair, from Puget Sound to San Diego. Because men, groping in the Arctic darkness, had found a yellow metal, and because steamship and transportation companies were booming the find, thousands of men were rushing into the Northland. These men wanted dogs, and the dogs they wanted were heavy dogs, with strong muscles by which to toil, and furry coats to protect them from the frost.\n\nBuck lived at a big house in the sun-kissed Santa Clara Valley. Judge Miller's place. He was neither house-dog nor kennel-dog. His father, Elmo, a huge St. Bernard, had been the Judge's inseparable companion, and Buck bid fair to follow in the way of his father. He was not so large,--he weighed only one hundred and forty pounds,--for his mother, Shep, had been a Scotch shepherd dog.\n\nIt was in the fall of 1897, that the Klondike strike dragged men from all the world into the frozen North. But Buck did not read the newspapers, and he did not know that Manuel, one of the gardener's helpers, was an undesirable acquaintance. Manuel had one besetting sin. He loved to play Chinese lottery. Also, in his gambling, he had one besetting weakness--faith in a system; and this made his damnation certain. For to play a system requires money, while the wages of a gardener's helper do not lap over the needs of a wife and numerous progeny.";

document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}


function demo_lit_2()
{
var $title = "Literature 2";
var $names = "Buck Dyea Curly";
var $demotext="Call of the Wild, Chapter 2 \n\nThe Law of Club and Fang \n\n Buck's first day on the Dyea beach was like a nightmare. Every hour was filled with shock and surprise. He had been suddenly jerked from the heart of civilization and flung into the heart of things primordial.  No lazy, sun-kissed life was this, with nothing to do but loaf and be bored. These dogs and men were not town dogs and men.  They were savages, all of them, who knew no law but the law of club and fang. \n\nHe had never seen dogs fight as these wolfish creatures fought, and his first experience taught him an unforgettable lesson.  It is true, it was a vicarious experience, else he would not have lived to profit by it.  Curly was the victim.  They were camped near the log store, where she, in her friendly way, made advances to a husky dog the size of a full-grown wolf, though not half so large as she.  There was no warning, only a leap in like a flash, a metallic clip of teeth, a leap out equally swift, and Curly's face was ripped open from eye to jaw. \n\nIt was the wolf manner of fighting, to strike and leap away; but there was more to it than this.  Thirty or forty huskies ran to the spot and surrounded the combatants in an intent and silent circle. Curly rushed her antagonist, who struck again and leaped aside.  He met her next rush with his chest, in a peculiar fashion that tumbled her off her feet.  She never regained them. This was what the onlooking huskies had waited for.  They closed in upon her, snarling and yelping, and she was buried, screaming with agony, beneath the bristling mass of bodies.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}

function demo_sci_1()
{
var $title = "Science 1";
var $names = "MEDLINE";
var $demotext="Automatic extraction of keywords from scientific text: Application to the knowledge domain of protein families. \n\n Abstract \n\n Annotation of the biological function of different protein sequences is a time-consuming process currently performed by human experts. Genome analysis tools encounter great difficulty in performing this task. Database curators, developers of genome analysis tools and biologists in general could benefit from the access to tools able to suggest functional annotations and facilitate access to functional information. \n\n In the paper, we present a prototype system for the automatic annotation of protein function. The system is triggered by collections of abstracts related to a given protein, and it is able to extract biological information directly from scientific literature, i.e., MEDLINE abstracts. Relevant keywords are selected by their relative accumulation in comparison with a domain-specific background distribution. Simultaneously, the most representative sentences and MEDLINE abstracts are selected and presented to the end-user. Evolutionary information is considered as a predominant characteristic in the domain of protein function. Our system consequently extracts domain-specific information from the analysis of a set of protein families. \n\n The system has been tested with different protein families, of which three examples are discussed in detail in the paper: \'ataxia-telangiectasia associated protein\', \'ran GTPase\' and \'carbonic anhydrase\'. We found generally good correlation between the amount of information provided to the system and the quality of the annotations. The current limitations and future developments of the system are discussed. ";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}

function demo_sci_2()
{
var $title = "Science 2";
var $names = "Brookhaven Long Island New York";
var $demotext="Relativistic heavy ion physics is of international and interdisciplinary interest to nuclear physics, particle physics, astrophysics, condensed matter physics and cosmology. The primary goal of this field of research is to re-create in the laboratory a novel state of matter, the quark-gluon plasma (QGP), which is predicted by the standard model of particle physics (Quantum Chromodynamics) to have existed ten millionths of a second after the Big Bang (origin of the Universe) and may exist in the cores of very dense stars. \n\n STAR searches for signatures of quark-gluon plasma formation and investigates the behavior of strongly interacting matter at high energy density by focusing on measurements of hadron production over a large solid angle. It utilizes a large volume Time Projection Chambers (TPC) for tracking and particle identification in a high track density environment. STAR will measure many observables simultaneously on an event-by-event basis to study signatures of a possible QGP phase transition and the space-time evolution of the collision process at their respective energy. The goal is to obtain a fundamental understanding of the microscopic structure of hadronic interactions, at the level of quarks and gluons, at high energy densities. \n\n STAR is one of two large-scale experiments under construction at the Relativistic Heavy Ion Collider (RHIC) at the Brookhaven National Laboratory (BNL) on Long Island (New York) for operation in 1999.  It has been designed to focus primarily on hadronic observables and features a large acceptance for high precision tracking and momentum analysis at center of mass (c.m.) rapidity. Specific to RHIC will be: \n\t significantly increased particle production (thousands of particles produced). \n\t hard parton-parton scattering in heavy ion collisions.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}

function demo_news_1()
{
var $title = "News 1";
var $names = "Stockwell Day Art Hanger Val Meredith";
var $demotext="Alliance MP calls on Day to resign despite new strategic plan \n\nCanadian Alliance Leader Stockwell Day couldn't keep a lid on dissent over his leadership Wednesday after presenting a plan to unite his caucus, with one MP again calling for his resignation.\n\nDespite Day's claim that he had unanimous support for his action plan, Art Hanger emerged from a private meeting with the leader to say that he and his constituents still don't have confidence in him. \n\nDay outlined his vision for improving party fortunes in the morning. That wasn't good enough for Hanger, who last week lost his job as defence critic when he questioned Day's competency. \n\n My concerns remain as they have been, said Hanger, adding he had no intention of resigning from the 66-member caucus. \n\n I think for the good of the party, that Mr. Day should step down. \n\n Hanger was the only MP to openly challenge Day's leadership. Several others offered only conditional support for his plan, stopping short of endorsing his leadership. \n\nI'll always do what's in the best interest of the party, and put the party first, was MP Val Meredith's repeated response to the question of whether she has confidence in the leader.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}

function demo_news_2()
{
var $title = "News 2";
var $names = "Greg Chamandy Gildan Laurence Sellyn ";
var $demotext="Fruit of the Loom is suing Gildan, claiming a high-level Gildan manager, who used to work for Fruit of the Loom, convinced one of his former subordinates to hand over Fruit of the Loom documents that would give Gildan information about its rival's costs, sales and pricing. Last week, under court order, Gildan returned the documents, but has never said why it had them. \n\n In a conference call with analysts yesterday, the company insisted it could not comment on the case, which is before the courts. Obviously, there's two sides to each story, said Greg Chamandy, Gildan's chief executive, and when our story is made clear, I think that it will speak for itself. \n\nGildan will provide its version during the second week of July, he said, when its lawyers submit the company's position to the court.  \n\nIn the meantime, Laurence Sellyn, Gildan's chief financial officer, said legal and public-relations costs associated with the lawsuit won't have a significant impact on the company's profitability. We're maybe talking about a couple of hundred thousand (dollars) at the moment, he said. \n\n Sellyn said the company also took a  writeoff associated with the closing of its plant in Barbados after police in Jamaica found marijuana in a container shipped from the plant. Drugs were also found in another container that did not belong to Gildan. \n\n The negative news about the lawsuit and the marijuana came at a time when Gildan was already confronted with a tough market as a result of unseasonably cold weather in the U.S., which reduced demand for its T-shirts, sports shirts and sweatshirts. \n\n The bulk of the company's products are sold in the Unites States. Chamandy said, for example, that people in North Carolina couldn't play golf this winter because of snow. \n\n Chamandy insisted the company was being ultra conservative in its estimates. The company's peak selling season has just begun and it could rebound in the second half of the year. ";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}




function demo_speech_1()
{
var $title = "Speech 1 (adults)";
var $names = "Chudowsky Mandel ";
var $demotext="I can\'t recall when, but it was for the writing assessment.\n\n And one of the concerns at that point is what happens if students have more time? \n\n And so in that assessment, it was a comparison of 20 minutes and 15 minutes to see if in fact the additional time made a difference. \n\n I\'m mentioning this here not because it\'s writing, but people might have been concerned about how much time was given to the students to read and then write the extended passage. \n\n And they found that with the additional time, it made almost no difference. \n\n The students who were least able to make any additional scoring advantage with the additional time were the students who were in fact the lower scorers anyway. \n\n And the students who were the higher scorers did ever so much better.\n\n Now, this is 20 minutes to 15 minutes. It\'s not a very insignificant amount of time, but 20 that minutes would be sufficient time.\n\n This was -- I honestly don\'t know. I assume this was an eighth grade study instead of a fourth grade study.\n\n So I just think we need to take that into account, too, when we are discussing time. \n\n CHUDOWSKY: Can I just say that another concern we talked about with the Technical Group is that it\'s harder to standardize? \n\n Some schools, because of logistics, are just going to cut it off and send the kids onto their next class. They are not going to give the kids as much time as they need. \n\n Whereas, other sites may really take advantage of the opportunity. So it just really increases the standardization. And that was another concern. \n\n MANDEL: Yes. I would say the last, the related issue, there was a discussion about sort of both this committee\'s and the Math Committee\'s interest in having a second extended response item, even though the initial instructions were that the exam will have one. ";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}

function demo_speech_2()
{
var $title = "Speech 2 (kids)";
var $names = "steven scott driscoll haag kelly keyla ";
var $demotext="I like baseball, it is fun, when i play it I hit homeruns. I like baseball because you, you get to get people out. That\'s all, baseball is easy what you do is you, you, if there is a fly ball and you\'re running on the base you go halfway and if they catch it you are out and if they drop it  you are not out, you just keep running. If you do an overthrow you only can go one base. If you were playing out in the outfield you must pay attention so the ball won\'t hit you in the head.\n\n This weekend i went to my grandma\'s to spend the night on saturday and then i went, in the morning i went on a bike on my grandma\'s harley away in forest grove, and cornelius, and then we went up a mountain and then when we came home. We went to Haag Lake and played for a while and that was the weekend. That\'s it, well, my mom\'s name is Kelly,  my dad\'s name is Scott. I\'m the older brother and my sister\'s name is, my sister\'s name is Keyla and my mom\'s pregnant and she\'ll have a baby, on june ninth and it\'s a boy and his name is steven scott driscoll.\n\nI\'m involved in sports, I have played football i\'ve, i\'m on the speech team, i do track. I\'m running for, as vice president. I\'m putting up signs, i\'m uh making fliers and passing them out. I played running back, i was second string on varsity and I played safety, free safety, and i also backed up corner on varsity.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}


function demo_rex()
{
var $title = "Rex Murphy on Michael Moore";
var $names = "Michael Moore Stephen Harper Sean Penn Halifax Céline Jim Dan  Avril Alex Baldwin Janeane Garofalo Al Franken Utah Mikey Dick Cheney Karl Rove John Kerry George Bush";
var $demotext="Well, it was a narrow escape. But we did it. Canadians have preserved their liberties and independence against the always rapacious American beast. \n\n We knew there were powerful elements in the United States that wanted us to kowtow and genuflect to a simplistic worldview, that knuckle-dragging Good-versus-Evil script they have been remorselessly propagandizing all over the world since 9/11. \n\n They have been trying to drag Canada into this simpleton\'s game for years, mauling truth and banishing nuance with a continuous stream of invective posing as reason, and caricature passing itself off as accuracy. \n\n It\'s a difficult thing to resist the mighty United States at any time, and especially difficult in all the dust and storm of a national election. But we did it. \n\n It was a close-run thing. But on Monday night, Canada fought back and won. On Jan. 20, just three days before our vote, Michael Moore, entrepreneur, fabulist, philosophe, issued a broadside to the citizens of this country warning us sternly, and with the imperious irony of which he is so fully a master, against the perils of electing a Stephen Harper government: \n\n Do you want to help George Bush by turning Canada into his latest conquest? Is that how you want millions of us down here to see you from now on? The next notch on the cowboy belt? \n\n I was worried at first that the subtlety of the pitch might obscure its wonderful impertinence — worried that the charm of Mr. Moore\'s address might distract Canadians from the consideration that an American millionaire celebrity pitchman was interfering in, and attempting to influence, the Canadian vote. \n\n I was worried, too, that this one-man shock-and-awe “documentarian” might be leading a charge, that the other bright bulbs of international busybodyism were massed behind his formidable massed behind. Was Sean Penn on the way to monitor the vote in Etobicoke? Was he planning one of his patented fact-finding junkets like the visits that brought such comfort and peace to the citizens of Baghdad? I could see the headlines: Penn in Halifax. Visits Bar. Reads Construction-Site Posters. Warns Harper is Christian. Says “God Bless Canada.”  \n\n Well, that didn\'t happen. We\'re were spared the fast-food internationalism of Mr. Penn, and that probably meant we were spared assorted sermons from Alex Baldwin, Janeane Garofalo, Al Franken and that whole posse of celebrity dilettantes who see the whole world as an audience for their inch-deep, paint-by-numbers, cause-a-day homilies. Maybe they were off somewhere saving a seal. \n\n Or, what is much more likely, maybe he concluded there was really no need for the secondary battalions. We, the respectful, bland and polite citizens of a country that is really only a farm team for the U.S. entertainment industry — hello Céline, Jim, Dan and Avril — would naturally be flattered into sheer insensibility that the portentous Mr. Moore even knew we were having an election. He has a taste for insolence, referring to Stephen Harper, who has more brain than Michael Moore has girth, as someone “who should be running for governor of Utah,“ and whose election would “reduce Canada to a cheap download of Bush & Co.” \n\n One size fits all — that\'s our Mikey. Because he thinks he has a problem with George Bush, that must be the script for the rest of the world. This is the very essence of imperialism. To believe that your story is everyone else\'s. To believe that your political drama is the template for every other political drama in the whole wide world. Michael Moore could go to Fogo Island, Nfld., for the municipal elections and find them a perfect parable of the Halliburton super-conspiracy. He\'d see Dick Cheney\'s influence in the selection of the town clerk. \n\n Ego turns the world into one big mirror, and nothing looks back at the celebrity narcissus but the vacant monomaniac staring in. News flash, Mr. Moore: Our election wasn\'t about Dick Cheney. Or George Bush. Paul Martin (thank God) isn\'t Bill Clinton. Stephen Harper doesn\'t own a decoder ring sent him by Karl Rove. Considering the success you\'ve had in stopping George Bush in the country where he actually runs — and on last report he is in his second term — do you really think you should be sparing the time and the shavings of your wit to offer advice to others? \n\n George Bush got three million votes more than John Kerry in the last U.S. presidential election. Karl Rove is on bended knee every day in thanks for the contribution Fahrenheit 9/11 made to that surplus. If you can\'t win your own elections, Michael, what made you think you had anything to say about ours? \n\n Other than that, I\'m glad you called. But we defied you. Stephen Harper is prime minister, and I suppose that tells you all you need to know, which is: Canadians don\'t care what you think you think.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}


function demo_rex2()// BNC only, Batia job June 09
{
var $title = "Rex Murphy on Michael Moore";
var $names = "Paul";
var $demotext="Well, it was a narrow escape. But we did it. Canadians have preserved their liberties and independence against the always rapacious American beast. \n\n We knew there were powerful elements in the United States that wanted us to kowtow and genuflect to a simplistic worldview, that knuckle-dragging Good-versus-Evil script they have been remorselessly propagandizing all over the world since 9/11. \n\n They have been trying to drag Canada into this simpleton\'s game for years, mauling truth and banishing nuance with a continuous stream of invective posing as reason, and caricature passing itself off as accuracy. \n\n It\'s a difficult thing to resist the mighty United States at any time, and especially difficult in all the dust and storm of a national election. But we did it. \n\n It was a close-run thing. But on Monday night, Canada fought back and won. On Jan. 20, just three days before our vote, Michael Moore, entrepreneur, fabulist, philosophe, issued a broadside to the citizens of this country warning us sternly, and with the imperious irony of which he is so fully a master, against the perils of electing a Stephen Harper government: \n\n Do you want to help George Bush by turning Canada into his latest conquest? Is that how you want millions of us down here to see you from now on? The next notch on the cowboy belt? \n\n I was worried at first that the subtlety of the pitch might obscure its wonderful impertinence — worried that the charm of Mr. Moore\'s address might distract Canadians from the consideration that an American millionaire celebrity pitchman was interfering in, and attempting to influence, the Canadian vote. \n\n I was worried, too, that this one-man shock-and-awe “documentarian” might be leading a charge, that the other bright bulbs of international busybodyism were massed behind his formidable massed behind. Was Sean Penn on the way to monitor the vote in Etobicoke? Was he planning one of his patented fact-finding junkets like the visits that brought such comfort and peace to the citizens of Baghdad? I could see the headlines: Penn in Halifax. Visits Bar. Reads Construction-Site Posters. Warns Harper is Christian. Says “God Bless Canada.”  \n\n Well, that didn\'t happen. We\'re were spared the fast-food internationalism of Mr. Penn, and that probably meant we were spared assorted sermons from Alex Baldwin, Janeane Garofalo, Al Franken and that whole posse of celebrity dilettantes who see the whole world as an audience for their inch-deep, paint-by-numbers, cause-a-day homilies. Maybe they were off somewhere saving a seal. \n\n Or, what is much more likely, maybe he concluded there was really no need for the secondary battalions. We, the respectful, bland and polite citizens of a country that is really only a farm team for the U.S. entertainment industry — hello Céline, Jim, Dan and Avril — would naturally be flattered into sheer insensibility that the portentous Mr. Moore even knew we were having an election. He has a taste for insolence, referring to Stephen Harper, who has more brain than Michael Moore has girth, as someone “who should be running for governor of Utah,“ and whose election would “reduce Canada to a cheap download of Bush & Co.” \n\n One size fits all — that\'s our Mikey. Because he thinks he has a problem with George Bush, that must be the script for the rest of the world. This is the very essence of imperialism. To believe that your story is everyone else\'s. To believe that your political drama is the template for every other political drama in the whole wide world. Michael Moore could go to Fogo Island, Nfld., for the municipal elections and find them a perfect parable of the Halliburton super-conspiracy. He\'d see Dick Cheney\'s influence in the selection of the town clerk. \n\n Ego turns the world into one big mirror, and nothing looks back at the celebrity narcissus but the vacant monomaniac staring in. News flash, Mr. Moore: Our election wasn\'t about Dick Cheney. Or George Bush. Paul Martin (thank God) isn\'t Bill Clinton. Stephen Harper doesn\'t own a decoder ring sent him by Karl Rove. Considering the success you\'ve had in stopping George Bush in the country where he actually runs — and on last report he is in his second term — do you really think you should be sparing the time and the shavings of your wit to offer advice to others? \n\n George Bush got three million votes more than John Kerry in the last U.S. presidential election. Karl Rove is on bended knee every day in thanks for the contribution Fahrenheit 9/11 made to that surplus. If you can\'t win your own elections, Michael, what made you think you had anything to say about ours? \n\n Other than that, I\'m glad you called. But we defied you. Stephen Harper is prime minister, and I suppose that tells you all you need to know, which is: Canadians don\'t care what you think you think.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
document.anal.hold_to_1k.value = "Bush";
document.anal.all_caps.checked = true;
}





function demo_kid_1()
{
var $title = "Boy Dog & Frog story by S1, 4 yr 11 mo";
var $names = "um ";
var $demotext=" A boy, a dog and a frog.  Hey! That rhymes! Boy, dog, frog.  Um. Nope.  He\'s going to get a fish.  He\'s got a fishing rod, a bucket to put the fish in.  When he came up, he saw the frog, and then he was up there.  The dog is scratching. Turn the page.  And then when he was running to catch the frog, he tripped.  And he\'s the one who fell in the water. He\'s getting up and he has the bucket on his head. And next, and he tried to catch it but he jumped away just in time, and then there he is.  OK. Turn the page.  And then he got up and he went over that way and there he is.  He grabbed his net and wanted to catch him.  And he didn\'t .. and he didn\'t catch him because the frog jumped just in time and instead the little boy caught the dog.  He was over there and he was really mad.  And then he looked back. I don\'t know what\'s he doing. He left away, back home.  And then he\'s alone.  Well, he does have a lot of lily pads he can jump on.  Then he looks at the tracks and he follows them right into his home.  And then his dog and him were taking a bath, and he came in.  Let\'s see.  He found them and he hopped right in and that\'s the end.  They\'re happy. ";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;}


function demo_kid_2()
{
var $title = "Boy Dog & Frog story by S2, 5 yr 6 mo";
var $names = "";
var $demotext="I think he\'s going fishing.  He has a net so I know it.  And I know he has a fishing rod. It looks like he\'s going fishing.  Then he sees the frog.  He\'s running down the hill to the frog.  And then he trips on the log and he\'s stuck.  He fell in the water.  He fell in the water, that\'s what happened. Soaked!  The bucket is over his eyes.  The frog jumped and the dog is swimming.  And the boy sees the frog on the tree stump.  The frog is sitting there watching those guys. He\'s going to touch the dog and they\'re all on a stump of a tree.  Now they\'re sitting on the stump.  He wants to catch the frog, that\'s what he wants to do.  The frog went underneath and he caught his dog instead.  Where\'s the frog? He has his dog and now I don\'t know what he\'ll do with it.  Well, the frog is over there.  He\'s never going to get that frog now. He\'s giving up.  I think he\'s going back home.  He\'s mad he didn\'t get that frog.  The frog has no one out there.  The boy and the dog got home.  Tracks! The frog can follow the tracks.  I know that.  The boy is taking a bath and the frog is going to see him.  Frog is happy now.  Now they\'re taking a bath.  The frog jumped in.  In the end they\'re happy being together.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
}

function demo_kid_3()
{
var $title = "Boy Dog & Frog story by S3, 5 yr 8 mo";
var $names = "";
var $demotext="The boy\'s going to catch a frog, a fish with the dog.  He runs and he finds a frog sitting on a lily pad.  He tries to catch the frog with the dog.  The frog looks sad.  Then he trips and falls into the lake with the dog.  He falls in with his boots hanging out and the bucket\'s flying and the net\'s on the ground with the dog sticking his feet out and the fish is holding on to the lily pad. And then the boy looks at him with the pail on his head, frowning, with the dog swimming and the net\'s on the ground and the frog stares at him.  The frog jumps away before he can get him and the dog just stares at the frog.  Then the little boy puts his hands on his hips and the frog safely lands on the tree.  And then he says, \'Go away doggie!\' Then they trap the frog.  The dog goes that way and the boy goes that way and they try to catch the frog. And then he tries to catch him the dog is going to bite him then the frog jumped away and he caught his own dog. He picked the dog up, and the frog hopped into some grass on a rock.  Then the boy yells at the frog and the dog\'s in the net.  The frog feels sad.  Then the boy leaves and the frog just stares at him leaving with lily pads floating in the water. And the boy stomps off out of the lake with the dog with his bucket in his hand.  And the frog is a way back on a lily pad. The frog feels lonely.  He likes his company coming.  Then he sees the footprints.  He follows the footprints all the way into the house.  He sees them playing in the bath.  He likes to play in the bath, so he smiles.  Then the frog jumps in.  He jumps into the water with the boy and the frog.  Then they have fun.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;}



function demo_kid_4()
{
var $title = "Boy Dog & Frog story by S4, 6 yr 4 mo";
var $names = "Ruff";
var $demotext="What are we going to do?  A boy with a dog, with a bucket.  The dog walking and the boy walking.  The boy was looking into a bush while the dog is scratching his ear, and right beside him is his bucket. Then he started up.  He used his net, he picked up his net, he picked up his shovel and he called his dog over and he saw a branch and a frog.  Then they ran down to catch the frog but then he tripped and fell into the water head first feet up, bucket in the air.  And then the frog looked at him happy and the boy looked at him sad with the bucket on his head and the net by the tree and the dog in the water.  The frog jumped.  The bucket went over his head.  He could not see. The dog laughed. The frog landed on the branch.  The boy looked mad. The dog looked mad.  The frog standing on the log and the boy pointed for the dog to go.  And then the boy went on the log and the dog went on the log to catch the frog.  Then they - the dog \'Ruff\' and the boy was in behind him and caught the dog instead of the frog. And then he sat there holding the dog looking very mad. And then the frog was looking mad.  So the boy holds up his hand and called a bad word to the frog.  The frog looked sad.  Then the boy went away. The frog looked sad.  The boy carried his net and went with his dog and held his bucket looking very mad. Then - I don\'t know this page. The frog was looking sad.  The frog was looking very sad.  The frog was looking even more sad.  Then he followed the footprints into the house.  Then followed them - he followed the footprints all the way up to the bath and there was the frog happy jumping into the bath with the boy and the dog.  And the frog sat on the dog.  The end.";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;}



function demo_list()
{
var $title = "AWL Heads";
var $names = "";
var $demotext="abandon \nabstract \nacademy \naccess \naccommodate \naccompany \naccumulate \naccurate \nachieve \nacknowledge \nacquire \nadapt \nadequate \nadjacent \nadjust \nadministrate \nadult \nadvocate \naffect \naggregate \naid \nalbeit \nallocate \nalter \nalternative \nambiguous \namend \nanalogy \nanalyse \nannual \nanticipate \napparent \nappend \nappreciate \napproach \nappropriate \napproximate \narbitrary \narea \naspect \nassemble \nassess \nassign \nassist \nassume \nassure \nattach \nattain \nattitude \nattribute \nauthor \nauthority \nautomate \navailable \naware \nbehalf \nbenefit \nbias \nbond \nbrief \nbulk \ncapable \ncapacity \ncategory \ncease \nchallenge \nchannel \nchapter \nchart \nchemical \ncircumstance \ncite \ncivil \nclarify \nclassic \nclause \ncode \ncoherent \ncoincide \ncollapse \ncolleague \ncommence \ncomment \ncommission \ncommit \ncommodity \ncommunicate \ncommunity \ncompatible \ncompensate \ncompile \ncomplement \ncomplex \ncomponent \ncompound \ncomprehensive \ncomprise \ncompute \nconceive \nconcentrate \nconcept \nconclude \nconcurrent \nconduct \nconfer \nconfine \nconfirm \nconflict \nconform \nconsent \nconsequent \nconsiderable \nconsist \nconstant \nconstitute \nconstrain \nconstruct \nconsult \nconsume \ncontact \ncontemporary \ncontext \ncontract \ncontradict \ncontrary \ncontrast \ncontribute \ncontroversy \nconvene \nconverse \nconvert \nconvince \ncooperate \ncoordinate \ncore \ncorporate \ncorrespond \ncouple \ncreate \ncredit \ncriteria \ncrucial \nculture \ncurrency \ncycle \ndata \ndebate \ndecade \ndecline \ndeduce \ndefine \ndefinite \ndemonstrate \ndenote \ndeny \ndepress \nderive \ndesign \ndespite \ndetect \ndeviate \ndevice \ndevote \ndifferentiate \ndimension \ndiminish \ndiscrete \ndiscriminate \ndisplace \ndisplay \ndispose \ndistinct \ndistort \ndistribute \ndiverse \ndocument \ndomain \ndomestic \ndominate \ndraft \ndrama \nduration \ndynamic \neconomy \nedit \nelement \neliminate \nemerge \nemphasis \nempirical \nenable \nencounter \nenergy \nenforce \nenhance \nenormous \nensure \nentity \nenvironment \nequate \nequip \nequivalent \nerode \nerror \nestablish \nestate \nestimate \nethic \nethnic \nevaluate \neventual \nevident \nevolve \nexceed \nexclude \nexhibit \nexpand \nexpert \nexplicit \nexploit \nexport \nexpose \nexternal \nextract \nfacilitate \nfactor \nfeature \nfederal \nfee \nfile \nfinal \nfinance \nfinite \nflexible \nfluctuate \nfocus \nformat \nformula \nforthcoming \nfoundation \nfounded \nframework \nfunction \nfund \nfundamental \nfurthermore \ngender \ngenerate \ngeneration \nglobe \ngoal \ngrade \ngrant \nguarantee \nguideline \nhence \nhierarchy \nhighlight \nhypothesis \nidentical \nidentify \nideology \nignorant \nillustrate \nimage \nimmigrate \nimpact \nimplement \nimplicate \nimplicit \nimply \nimpose \nincentive \nincidence \nincline \nincome \nincorporate \nindex \nindicate \nindividual \ninduce \ninevitable \ninfer \ninfrastructure \ninherent \ninhibit \ninitial \ninitiate \ninjure \ninnovate \ninput \ninsert \ninsight \ninspect \ninstance \ninstitute \ninstruct \nintegral \nintegrate \nintegrity \nintelligence \nintense \ninteract \nintermediate \ninternal \ninterpret \ninterval \nintervene \nintrinsic \ninvest \ninvestigate \ninvoke \ninvolve \nisolate \nissue \nitem \njob \njournal \njustify \nlabel \nlabour \nlayer \nlecture \nlegal \nlegislate \nlevy \nliberal \nlicence \nlikewise \nlink \nlocate \nlogic \nmaintain \nmajor \nmanipulate \nmanual \nmargin \nmature \nmaximise \nmechanism \nmedia \nmediate \nmedical \nmedium \nmental \nmethod \nmigrate \nmilitary \nminimal \nminimise \nminimum \nministry \nminor \nmode \nmodify \nmonitor \nmotive \nmutual \nnegate \nnetwork \nneutral \nnevertheless \nnonetheless \nnorm \nnormal \nnotion \nnotwithstanding \nnuclear \nobjective \nobtain \nobvious \noccupy \noccur \nodd \noffset \nongoing \noption \norient \noutcome \noutput \noverall \noverlap \noverseas \npanel \nparadigm \nparagraph \nparallel \nparameter \nparticipate \npartner \npassive \nperceive \npercent \nperiod \npersist \nperspective \nphase \nphenomenon \nphilosophy \nphysical \nplus \npolicy \nportion \npose \npositive \npotential \npractitioner \nprecede \nprecise \npredict \npredominant \npreliminary \npresume \nprevious \nprimary \nprime \nprincipal \nprinciple \nprior \npriority \nproceed \nprocess \nprofessional \nprohibit \nproject \npromote \nproportion \nprospect \nprotocol \npsychology \npublication \npublish \npurchase \npursue \nqualitative \nquote \nradical \nrandom \nrange \nratio \nrational \nreact \nrecover \nrefine \nregime \nregion \nregister \nregulate \nreinforce \nreject \nrelax \nrelease \nrelevant \nreluctance \nrely \nremove \nrequire \nresearch \nreside \nresolve \nresource \nrespond \nrestore \nrestrain \nrestrict \nretain \nreveal \nrevenue \nreverse \nrevise \nrevolution \nrigid \nrole \nroute \nscenario \nschedule \nscheme \nscope \nsection \nsector \nsecure \nseek \nselect \nsequence \nseries \nsex \nshift \nsignificant \nsimilar \nsimulate \nsite \nso-called \nsole \nsomewhat \nsource \nspecific \nspecify \nsphere \nstable \nstatistic \nstatus \nstraightforward \nstrategy \nstress \nstructure \nstyle \nsubmit \nsubordinate \nsubsequent \nsubsidy \nsubstitute \nsuccessor \nsufficient \nsum \nsummary \nsupplement \nsurvey \nsurvive \nsuspend \nsustain \nsymbol \ntape \ntarget \ntask \nteam \ntechnical \ntechnique \ntechnology \ntemporary \ntense \nterminate \ntext \ntheme \ntheory \nthereby \nthesis \ntopic \ntrace \ntradition \ntransfer \ntransform \ntransit \ntransmit \ntransport \ntrend \ntrigger \nultimate \nundergo \nunderlie \nundertake \nuniform \nunify \nunique \nutilise \nvalid \nvary \nvehicle \nversion \nvia \nviolate \nvirtual \nvisible \nvision \nvisual \nvolume \nvoluntary \nwelfare \nwhereas \nwhereby \nwidespread ";
document.anal.exceptions.value = $names;
document.anal.text_input.value = $demotext;
document.anal.text_name.value = $title;
document.anal.hold_to_1k.value = "";
document.anal.all_caps.checked = false;
}















var edit_rows;
var edit_cols;

var newWindow="";
var results;

function makeNewWindow()
{newWindow=window.open("","250","width=470px,height=640px,scrollbars=1,menubar=1");}
//250 is top left
//'menubar=0,status=0,location=0,width=800px,height=600px,top=20,left=20,scrollbars,resizable')"></td>




function show_results(){
if (newWindow>""){newWindow.close()}
makeNewWindow();
var data=document.anal.text_input.value;

var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();

if (minutes < 10){minutes = "0" + minutes;}

var results="<html>";
results+="<body bgcolor=black text=white><font face=arial><b></b>";

results+="Profile-Edited version of text at ";

results+= hours + ":" + minutes + " ";
if(hours > 11){
results+= "PM";} else {results+="AM";}

results+= " on "+ month + "/" + day + "/" + year +" ";

results += "<br>Press Alt to get File Save on some new IEs, or"

results+="<input type=button value='copy/paste\' onClick='javascript:anal.text.focus();anal.text.select();'>"
results+="<form name=anal>";
results+="<textarea cols=50 rows=37 name=text>";
results += data;
results += "</textarea></form></body></html>";

newWindow.document.write(results);
newWindow.document.close;
}

function size_up(){
edit_rows=document.anal.text_input.rows;
edit_rows +=5;
document.anal.text_input.rows=edit_rows;
document.anal.store_rows.value=edit_rows;
}

function size_down(){
edit_rows=document.anal.text_input.rows;
edit_rows -=5;
if (edit_rows >10){
document.anal.text_input.rows=edit_rows;
document.anal.store_rows.value=edit_rows;
}
}


function size_wider(){
edit_cols=document.anal.text_input.cols;
edit_cols +=5;
document.anal.text_input.cols=edit_cols;
document.anal.exceptions.cols=edit_cols;
document.anal.store_cols.value=edit_cols;

}

function size_narrower(){
edit_cols=document.anal.text_input.cols;
edit_cols -=5;
if (edit_cols>10) {
document.anal.text_input.cols=edit_cols;
document.anal.exceptions.cols=edit_cols;
document.anal.store_cols.value=edit_cols;
}
}

