flag=0

function addTex(let)
{
var story = document.tex.texarea.value
if(let=="BACK"){
story=story.substring(0, story.length-1)
document.tex.texarea.value=story
document.tex.texarea.focus()
}

else if(flag==1)
{
story+=let.toUpperCase()
flag=0
document.tex.texarea.value=story
document.tex.texarea.focus()
}
else
{
story+=let
flag=0
document.tex.texarea.value=story
document.tex.texarea.focus()
}
}
function capIt()
{
flag=1
}



function HighlightAll(obj) {
  var tempval=obj;
  tempval.focus()
  tempval.select()
  if (document.all){
    therange=tempval.createTextRange()
    therange.execCommand("Copy")
    window.status="Contents copied to your clipboard, now go to your Messenger chat window and press CONTROL+V"
    setTimeout("window.status=''",1800)
  }
  else { alert("Press CONTROL+C, then go to your Messenger chat window and press CONTROL+V"); }
}