//Ask Ryudo a Question - By Koby (koby411@gmail.com)
//http://grandia-online.net

function getAnswers() {

time = new Date()
randominteger = time.getSeconds()

if (document.input1.textfield.value == "") { 
alert("You didn't ask me a question!")
return
}

if (randominteger <= 3) answer="Did you really think so? Hahaha, I'm laughing now at your pitiful chances."
if ((randominteger >= 4) && (randominteger <= 6)) answer ="Yeah, it's got a 65% chance of happening."
if ((randominteger >= 7) && (randominteger <= 9)) answer ="Oh come on! No way!"
if ((randominteger >= 10) && (randominteger <= 12)) answer ="Dammit! Quit asking me questions, when you know they all lead to NO"
if ((randominteger >= 13) && (randominteger <= 15)) answer ="Why are you asking me instead of Skye? Do you really believe my answers? Then how bout, yes?"
if ((randominteger >= 16) && (randominteger <= 18)) answer ="For the first time... I see...Nah never mind that was just Skye.. Leave me alone!"
if ((randominteger >= 19) && (randominteger <= 21)) answer ="Good chances lie on the horizon."
if ((randominteger >= 22) && (randominteger <= 24)) answer ="Ask me again, I am restless, overworked, and underpaid."
if ((randominteger >= 25) && (randominteger <= 27)) answer ="Oh goodie, our pockets overflow with nuts. Hurrah! Wait almost forgot, YES!"
if ((randominteger >= 28) && (randominteger <= 30)) answer ="As the sun is hot, your answer is YES."
if ((randominteger >= 31) && (randominteger <= 33)) answer ="You're crazy! Gimme another one..."
if ((randominteger >= 34) && (randominteger <= 36)) answer ="Forget about it..."
if ((randominteger >= 37) && (randominteger <= 39)) answer ="Yeah, it could happen. 80% chance."
if ((randominteger >= 40) && (randominteger <= 42)) answer ="Hitler has a better chance of raising from the dead."
if ((randominteger >= 43) && (randominteger <= 45)) answer ="If you really think so, then it shall be."
if ((randominteger >= 46) && (randominteger <= 48)) answer ="Who said ambiguous answers were bad? Not me, so YES!"
if ((randominteger >= 49) && (randominteger <= 51)) answer ="You think I'm going to answer that after a day of hard work? Ask again later."
if ((randominteger >= 52) && (randominteger <= 54)) answer ="If you own a pet, yes. Otherwise, no."
if ((randominteger >= 55) && (randominteger <= 57)) answer ="The sun will rise in the east and set in the west. Thank you Captain Obvious. YES!"
if ((randominteger >= 58) && (randominteger <= 60)) answer ="I'm laughing hard, very hard. You'd better ask again."

var newWindow = window.open("test","Results","width=300,height=300")
newWindow.document.write("<body bgcolor='#EFF0F2' text='#2E2E2E' link='#5885C8' alink='#5885C8' vlink='#5885C8'>")
newWindow.document.write("<font size='4' color='#CB4C75'>Your Question: <font size='3' color='#2E2E2E'>")
newWindow.document.write("" + document.input1.textfield.value + "")
newWindow.document.write("<br /><br /><br /><font size='4' color='#CB4C75'>Ryudo says: ")
newWindow.document.write("<font size='3' color='#2E2E2E'>")
newWindow.document.write("" + answer + "")
newWindow.document.write("<p align='center'><a href='javascript:window.close()'>Close Me</a></p>")
newWindow.document.write("</body>")
}