function subloc() {
// go to new URL
textbox = document.form1.text1.value;
words = textbox.split(" ");
if (words[1] == undefined) {
words[1] = "";
}
if (words[2] == undefined) {
words[2] = "";
}
if (words[3] == undefined) {
words[3] = "";
}

adname = (words[0] + words[1] + words[2] + words[3])
top.location.href=(adname.toLowerCase() + "/index.htm");
}

function resubloc() {
// go to new URL
textbox = document.form1.text1.value;
words = textbox.split(" ");
if (words[1] == undefined) {
words[1] = "";
}
if (words[2] == undefined) {
words[2] = "";
}
if (words[3] == undefined) {
words[3] = "";
}

adname = (words[0] + words[1] + words[2] + words[3]);
top.location.href=("../" + adname.toLowerCase() + "/index.htm");
}

function hideloc() {
// go to new URL
textbox = document.form2.text2.value;
words = textbox.split(" ");
if (words[1] == undefined) {
words[1] = "";
}
if (words[2] == undefined) {
words[2] = "";
}
if (words[3] == undefined) {
words[3] = "";
}
hideword = (words[0] + words[1] + words[2]);
top.location.href=(hideword.toLowerCase() + ".htm"); 
/*top.location.href=("smahide" + "/" + hideword.toLowerCase() + ".htm");*/ 
}
