fullName = new String
var x = 0
var currentNum = 0
var currentChar
var y = 0

var hName = new Array("Mr. Parchute Pants", "Stomacky", "Bo Sticky", "That one dude", "Hey you guys!", "Schlomo", "Bob Dole", "Willie Nelson", "Phil McCrackin", "Hobo McCrackin", "McSpizz Master", "Funky Stunk", "Stink Master", "Goober", "Schlim", "Dumpster Dan", "Pigpen", "Dirty Dougie", "Stinky McFinkster", "Slick Vick", "Vinny with the Screwdriver", "Cheese Boy", "Sugar in the Britches", "Hobo Hank", "Gruff the Garbage Man", "Gooey Stickler", "Wicked Bad Sandman", "FooDiddly", "Spam Master", "Monkey Peddler", "Dancing Hippie")


function matchLtr() {

	if (currentChar == "a" || currentChar == "A") {
		currentNum = 1
	} else if (currentChar == "b" || currentChar == "B") {
		currentNum = 2
	} else if (currentChar == "c" || currentChar == "C") {
		currentNum = 3
	} else if (currentChar == "d" || currentChar == "D") {
		currentNum = 4
	} else if (currentChar == "e" || currentChar == "E") {
		currentNum = 5
	} else if (currentChar == "f" || currentChar == "F") {
		currentNum = 6
	} else if (currentChar == "g" || currentChar == "G") {
		currentNum = 7
	} else if (currentChar == "h" || currentChar == "H") {
		currentNum = 8
	} else if (currentChar == "i" || currentChar == "I") {
		currentNum = 9
	} else if (currentChar == "j" || currentChar == "J") {
		currentNum = 10
	} else if (currentChar == "k" || currentChar == "K") {
		currentNum = 11
	} else if (currentChar == "l" || currentChar == "L") {
		currentNum = 12
	} else if (currentChar == "m" || currentChar == "M") {
		currentNum = 13
	} else if (currentChar == "n" || currentChar == "N") {
		currentNum = 14
	} else if (currentChar == "o" || currentChar == "O") {
		currentNum = 15
	} else if (currentChar == "p" || currentChar == "P") {
		currentNum = 16
	} else if (currentChar == "q" || currentChar == "Q") {
		currentNum = 17
	} else if (currentChar == "r" || currentChar == "R") {
		currentNum = 18
	} else if (currentChar == "s" || currentChar == "S") {
		currentNum = 19
	} else if (currentChar == "t" || currentChar == "T") {
		currentNum = 20
	} else if (currentChar == "u" || currentChar == "U") {
		currentNum = 21
	} else if (currentChar == "v" || currentChar == "V") {
		currentNum = 22
	} else if (currentChar == "w" || currentChar == "W") {
		currentNum = 23
	} else if (currentChar == "x" || currentChar == "X") {
		currentNum = 24
	} else if (currentChar == "y" || currentChar == "Y") {
		currentNum = 25
	} else if (currentChar == "z" || currentChar == "Z") {
		currentNum = 26
	}
		
	x += currentNum
}

function hobofy() {
	x = 0
	fullName = document.hoboname.fullname.value
	
	for (i=0; i < fullName.length; i++) {
		currentChar = fullName.charAt(i)
		matchLtr()
	}
	showName()
}

function showName() {
	y = x % hName.length
	document.hoboname.newname.value = hName[y]
}  



