// JavaScript Document temp solution, fix it to be more semantic - Cody
function clearText(thefield){
if(thefield.value=="search") {thefield.value = "";}
} 
function resetText(thefield)
{
if(thefield.value=="") {thefield.value = "search";}
}
function clearText2(thefield){
if(thefield.value=="enter security code") {thefield.value = "";}
} 
function resetText2(thefield)
{
if(thefield.value=="") {thefield.value = "enter security code";}
}
function submitform()
{
  function replaceChars(entry) {
	out = " "; // replace this
	add = "+"; // with this
	temp = "" + entry; // temporary holder

	while (temp.indexOf(out)>-1) {
	pos= temp.indexOf(out);
	temp = "" + (temp.substring(0, pos) + add + 
	temp.substring((pos + out.length), temp.length));
	}
		document.myform.story.value = temp;
	}
  replaceChars(document.myform.story.value);
  location.href = './?dosearch=yes&story=' + document.myform.story.value;
  //+ '&title=' + document.myform.story.value;
  //document.myform.submit();
}

