/*--------------------------------------------------------------------------

   FILE:  JavaScript/tests/psyc.js
   Date:  April 19, 1999
   LMD :  February 2, 2009

--------------------------------------------------------------------------*/

function psycInit() {

num = 1

psyc_text = ""

psyc_text = getQuestion()

document.forms[0].question.value = psyc_text

} // psycInit



function next( form ) {

psyc_text = ""

if ( num == 1 ) {
   if ( form.choice[0].checked )
	num = 2
   if ( form.choice[1].checked )
	num = 3
   if ( form.choice[2].checked )
	num = 4
}
else if ( num == 2 ) {
   if ( form.choice[0].checked )
	num = 4
   if ( form.choice[1].checked )
	num = 3
}
else if ( num == 3 ) {
   if ( form.choice[0].checked )
	num = 4
   if ( form.choice[1].checked )
	num = 5
   if ( form.choice[2].checked )
	num = 6
}
else if ( num == 4 ) {
   if ( form.choice[0].checked )
	num = 5
   if ( form.choice[1].checked )
	num = 6
}
else if ( num == 5 ) {
   if ( form.choice[0].checked )
	num = 6
   if ( form.choice[1].checked )
	num = 7
   if ( form.choice[2].checked )
	num = 8
}
else if ( num == 6 ) {
   if ( form.choice[0].checked )
	num = 7
   if ( form.choice[1].checked )
	num = 8
}
else if ( num == 7 ) {
   if ( form.choice[0].checked )
	num = 9
   if ( form.choice[1].checked )
	num = 10
}
else if ( num == 8 ) {
   if ( form.choice[0].checked )
	num = 9
   if ( form.choice[1].checked )
	num = 10
   if ( form.choice[2].checked )
	num = 14
}
else if ( num == 9 ) {
   if ( form.choice[0].checked )
	num = 12
   if ( form.choice[1].checked )
	num = 11
}
else if ( num == 10 ) {
   if ( form.choice[0].checked )
	num = 12
   if ( form.choice[1].checked )
	num = 13
}

psyc_text = getQuestion()
document.forms[0].question.value = psyc_text


} // next


function getQuestion() {

if ( num == 1 ) {
   psyc_text += "Which place do you want to have a travel most?\n\n"
   psyc_text += "A.  Beijing\n"
   psyc_text += "B.  Tokyo\n"
   psyc_text += "C.  Paris"
}
if ( num == 2 ) {
   psyc_text += "Have you ever cried when u see a touching movie?\n\n"
   psyc_text += "A.  Yes\n"
   psyc_text += "B.  No"
}
if ( num == 3 ) {
   psyc_text += "If your boyfriend or girlfriend still has not come yet after\n"
   psyc_text += "an hour when you date with him/her, what will you do?\n\n"
   psyc_text += "A.  wait for another 30 mins\n"
   psyc_text += "B.  leave immediately\n"
   psyc_text += "C.  wait until he/she comes"
}
if ( num == 4 ) {
   psyc_text += "Do you like to go to see a movie alone?\n\n"
   psyc_text += "A.  Yes\n"
   psyc_text += "B.  No"
}
if ( num == 5 ) {
   psyc_text += "When he/she asks for a kiss in your first date, what will you do?\n\n"
   psyc_text += "A.  Refuse\n"
   psyc_text += "B.  light kiss on his/her forehand\n"
   psyc_text += "C.  Agree and kiss him/her"
}
if ( num == 6 ) {
   psyc_text += "Are you a humorous person?\n\n"
   psyc_text += "A.  I think i am\n"
   psyc_text += "B.  I think i am not"
}
if ( num == 7 ) {
   psyc_text += "Do you think you are a capable leader?\n\n"
   psyc_text += "A.  Yes\n"
   psyc_text += "B.  No"
}
if ( num == 8 ) {
   psyc_text += "Which gender will you choose to be born if you are given a chance?\n\n"
   psyc_text += "A.  Male\n"
   psyc_text += "B.  Female\n"
   psyc_text += "C.  I don't mind"
}
if ( num == 9 ) {
   psyc_text += "Have you ever got more than one boyfriends or girlfriends at a time?\n\n"
   psyc_text += "A.  Yes\n"
   psyc_text += "B.  No"
}
if ( num == 10 ) {
   psyc_text += "Do you think you are intelligent?\n\n"
   psyc_text += "A.  Yes\n"
   psyc_text += "B.  No"
}
if ( num == 11 ) {
   psyc_text += "Congratulations!\n"
   psyc_text += "You can extremely attract the opposite sex!  You possess a charming\n"
   psyc_text += "beauty in the eyes of them.  You not only have a pretty figure, but\n"
   psyc_text += "also have a humorous and gentle personality.  You should be a literate\n"
   psyc_text += "person and know how to get along with people and can allocate your time\n"
   psyc_text += "well, thus you are always popular among the opposite sex."
}
if ( num == 12 ) {
   psyc_text += "Quite good!\n"
   psyc_text += "You can easily attract the opposite sex, but you are not easily fell\n"
   psyc_text += "into the loving trap.  Your humor makes them want to get along with\n"
   psyc_text += "you.  He/She will be happy being with you!"
}
if ( num == 13 ) {
   psyc_text += "Not bad!\n"
   psyc_text += "You cannot attract the opposite sex very well, but you still have\n"
   psyc_text += "something good which make them like to get along with you.  You should\n"
   psyc_text += "be an honest person and have a unique view in seeing things.  You are\n"
   psyc_text += "quite friendly in the eyes of your friends."
}
if ( num == 14 ) {
   psyc_text += "Oh!\n"
   psyc_text += "You do not attract the opposite sex.  You do not have much knowledge,\n"
   psyc_text += "and not much intrinsic humane values.  You are too rude to the opposite\n"
   psyc_text += "sex.  Thus, you are not very popular among them."
}

return psyc_text

} // getQuestion

