//javscript functions script Copyright Micmoo 2008

function countIt(){
var formcontent=document.wordcount.form1.value
formcontent=formcontent.split(" ")
document.getElementById("countwords").innerHTML=formcontent.length
}

  
function writeInput(){
	if(document.getElementById("replace").checked) {
document.getElementById("replacethis").innerHTML = 
'Find&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="find" type="text" /><br>Replace<input name="replacewith" type="text" />&nbsp; Case sensitive? <input name="case" type="checkbox" value="sensitive">'; }
	else {
document.getElementById("replacethis").innerHTML = 
'';}}

function countChar(str,f){
f.Count.value = str.split(' ').length--
}
function countChar3(str,f){
f.Count2.value = str.length--
}
function countChar4(){
form1.Count2.value = document.getElementById("textarea").value.length--

}
function displayM(){
document.getElementById("displayMM").innerHTML = 
' -- Enter your message to encrypt it.'; }
function displayMMM(){
document.getElementById("displayMM").innerHTML = 
''; }
function displayN(){
document.getElementById("displayNN").innerHTML = 
' -- Enter your Encrypted message to decryptify it.';
 }
function displayNNN(){
document.getElementById("displayNN").innerHTML = 
'';}
function displayO(){
document.getElementById("displayOO").innerHTML = 
' -- Take entered HTML and display it to the right.';
 }
function displayOOO(){
document.getElementById("displayOO").innerHTML = 
'';}
function displayP(){
document.getElementById("displayPP").innerHTML = 
' -- Remove all HTML code from input.';
 }
function displayPPP(){
document.getElementById("displayPP").innerHTML = 
'';}
function displayQ(){
document.getElementById("replacethis").innerHTML = 
'Find&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="find" type="text" /><br>Replace<input name="replacewith" type="text" />&nbsp; Case sensitive? <input name="case" type="checkbox" value="sensitive">'; }

function displayQQQ(){
document.getElementById("replacethis").innerHTML = 
'';}

function displayQQQQ(){
document.getElementById("displayQQQQQ").innerHTML = 
' -- This function always goes first'; }

function displayQQQQQQ(){
document.getElementById("displayQQQQQ").innerHTML = 
'';}
function displayZ(){
	if(document.getElementById("hash").checked && document.getElementById("md5").checked) {
document.getElementById("displayZZ").innerHTML = 
' -- The hash is done first THEN the MD5'; }
	else {
document.getElementById("displayZZ").innerHTML = 
'';}}
