// Pig Latin Converter 1.0
// 1998. RustyBrickSoftware. http://www.glattwok.com/rbs/
function convertIt(form) {
in_text = form.inputT.value
first_char = in_text.substring(0,1)
first_char = first_char.toLowerCase()
if (first_char == '') form.outputT.value = 'Enter your word above.'
else if ((first_char != 'a') && (first_char != 'e') &&
         (first_char != 'i') && (first_char != 'o') &&
         (first_char != 'u'))   {
out_text = in_text.substring(1,in_text.length) + first_char + 'ay'
form.outputT.value = out_text
setfocus()
}
else {
form.outputT.value = in_text
setfocus()
}
}
function setfocus() {
document.myForm.inputT.focus();
document.myForm.inputT.select();
} 