﻿
function acrostictothejoglab()
{

var str_out = "http://www.joglab.com/?theme=";
var e = "Enter a word to make an acrostic...";
var acroword = document.getElementById('tbacrosticword').value

if(acroword == "") alert(e);
else 
{
acroword =  acroword.replace(/[^a-zA-Z 0-9]+/g,'');

str_out = str_out + acroword + "&targetwords=" 

for(i = 0; i < acroword.length; i++) 
{
str_out = str_out + acroword.charAt(i) +"*"
}
}

window.location=str_out;

}

