var w,z,k 
var month=new Array(12)
month[0]="January"
month[1]="February"
month[2]="March"
month[3]="April"
month[4]="May"
month[5]="June"
month[6]="July"
month[7]="August"
month[8]="September"
month[9]="October"
month[10]="November"
month[11]="December"
 

/*start long code for tooltip*/
/***********************************************
* Fixed ToolTip script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
		
var tipwidth='150px' //default tooltip width
var tipbgcolor='lightyellow'  //tooltip bgcolor
var disappeardelay=250  //tooltip disappear speed onMouseout (in miliseconds)
var vertical_offset="0px" //horizontal offset of tooltip from anchor link
var horizontal_offset="-3px" //horizontal offset of tooltip from anchor link

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="fixedtipdiv" style="visibility:hidden;width:'+tipwidth+';background-color:'+tipbgcolor+'" ></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, tipwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function fixedtooltip(menucontents, obj, e, tipwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidetip()
dropmenuobj=document.getElementById? document.getElementById("fixedtipdiv") : fixedtipdiv
dropmenuobj.innerHTML=menucontents

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", tipwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
}

function hidetip(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidetip(){
if (ie4||ns6)
delayhide=setTimeout("hidetip()",disappeardelay)
}

function clearhidetip(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
/*end long code for tooltip*/

//questions that will possibly be removed marked in comments as 
//weird

//maybe add an OPINION section
	//possible problems with double underscores __ because of translation from cookies
var crazyK=0
var motivationK=0



//Plans for cookies to save pdna...possibly ask to save, ask to retrieve
//let user know they must have completed a section before saving
//have a way for valid or invalid PDNA with red and green indicator

function startAnalyze()
{
alert('You must have cookies enabled for this to work properly. ')
window.open('http://friendpair.50webs.org/analyze.htm')
}

function anon()
{
var m=confirm('This action is irreversible. You will have to re-enter such information once anonymized. \nAre you sure you wish to continue?')
if (m)
{
removeAfter("Name:")
removeAfter("Link to your MySpace page:")
removeAfter("Birthday:")
removeAfter("Birthplace:")
removeAfter("Lives in State/City:")
removeAfter("Link to your photo:")
removeAfter("E-mail/screen name:")
removeAfter("Been employed before:")
}
}

//val ex: "Name:"  would make "Name:Bob" to "Name:***"

function removeAfter(val)
{
var TEXTAREA1=document.getElementById('TEXTAREA1')

if (TEXTAREA1.value.length>0)
{
var z=(TEXTAREA1.value.indexOf(val)+val.length)
if (z-val.length >= 0)
{
do
{
if (TEXTAREA1.value.charAt(z)!='\n' && TEXTAREA1.value.charAt(z)!='\t' && TEXTAREA1.value.charAt(z)!='\f' && TEXTAREA1.value.charAt(z)!='\r')
{
TEXTAREA1.value=setCharAt(TEXTAREA1.value,z,'*')
}
//proper+=z.charAt(n)
z++
}
while(TEXTAREA1.value.charAt(z)!='\n')
}
}//end sufficient length if

}

function setCharAt (s, at, c) { 
return s.substr(0,at) + 
c.substr(0,s.length-at) + s.substr(at + c.length);
}


function analyze()
{
alert('Note: in future you will only be able to analyze your full personality DNA, for proper analysis purposes')
var n=0
var proper=""
var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.length>0)
{
var m=document.getElementById('TEXTAREA2')
m.value=""
if (TEXTAREA1.value.indexOf("Name:null")>=0)
m.value+="Name Analysis\n************************************************************\nYou failed to provide a name. Meaning you like anonymity, were too lazy to type a name, or are ashamed of your name.\n************************************************************\n\n"
else //start else
{
var z=TEXTAREA1.value.substring(TEXTAREA1.value.indexOf("Name:")+5)
do
{
if (z.charAt(n)!='\n' && z.charAt(n)!='\t' && z.charAt(n)!='\f' && z.charAt(n)!='\r')
proper+=z.charAt(n)
n++
}
while(z.charAt(n)!='\n')
m.value+="Name Analysis\n************************************************************\n You are "  +proper+   " .\n************************************************************\n\n"

} //end else

if (TEXTAREA1.value.indexOf("Gender:null")>=0)
{
m.value+="Gender Analysis\n************************************************************\n You are of UNSPECIFIED GENDER .\n************************************************************\n\n"
}
else if (TEXTAREA1.value.indexOf("Gender:M")>=0)
{
m.value+="Gender Analysis\n************************************************************\n You are male: boy or man.\n\n************************************************************\n\n"
}
else if (TEXTAREA1.value.indexOf("Gender:F")>=0)
{
m.value+="Gender Analysis\n************************************************************\n You are female: girl or woman.\n\n************************************************************\n\n"
}
n=0
proper=""
if (TEXTAREA1.value.indexOf("Astrological Sign:")>=0)
{
var z=TEXTAREA1.value.substring(TEXTAREA1.value.indexOf("Astrological Sign:")+18)
do
{
if (z.charAt(n)!='\n' && z.charAt(n)!='\t' && z.charAt(n)!='\f' && z.charAt(n)!='\r')
proper+=z.charAt(n)
n++
}
while(z.charAt(n)!='\n')
var horo=document.getElementById('Button3')
if (horo)
{

horo.onclick = function() {  javascript:void(window.open('http://www.superhoroscopes.com/index.php?sign='+proper)) }
horo.disabled=false
}

}


if (TEXTAREA1.value.indexOf("Relationship status:single")>=0)
m.value+="Dating Analysis\n************************************************************\nYou provided your relationship status as single. You did not specify whether your are looking for a partner or not.\n************************************************************\n\n"
else if (TEXTAREA1.value.indexOf("Relationship status:single and looking")>=0)
m.value+="Dating Analysis\n************************************************************\n You specified that you are single and looking.\n************************************************************\n\n"
else if (TEXTAREA1.value.indexOf("Relationship status:null")>=0)
m.value+="Dating Analysis\n************************************************************\n You failed to specify your relationship status.  \n************************************************************\n\n"

m.value+="\n\n That's all for now...remember this is still in development so visit http://pdna.vi.to if you are interested in contributing.\n\n"
//married,divorced,single and looking,single and not looking
} //end length if...checking that textbox has value
else
alert('***Error: Invalid length. Please load from clipboard or copy and paste your personality DNA into the first textbox.***')
}

function hotkey()
{
alert('These are some keyboard combinations, that trigger buttons, without you needing to click them. Here are the hotkeys: \nAlt+1 Step 1 \nAlt+2 Step 2 \nAlt+3 Step 3 \nAlt+4 Step 4 \nAlt+5 Step 5 \nAlt+6 Step 6 \nAlt+7 Step 7 \nAlt+A Save to File\nAlt+S Save to Clipboard\nAlt+H Toggle Hide/Unhide Personality DNA\nAlt+M Access This Menu\n')
}

function reasons()
{
alert(' Top 5 benefits of Personality DNA:  \n************************************************************\n This is a revolutionary idea, to capture an entire person\'s personality, into a personality profile. \n Imagine the ease of finding true friends or partners that really relate to you. See how remarkable it is to know and respect someone as much as yourself. \n************************************************************ \n Here are some of the best reasons to take this quiz: \n 1. Have your personality DNA analyzed and DNA matched with singles \n 2. Get to know your friends better \n 3. Get to know yourself better \n 4. This is a world-class personality quiz, the first, and to date, the ONLY extensive quiz of its kind. \n 5. Relate better to others, rather than being a total mystery to one another...\nget to know people and yourself, strengths, weaknesses, things in common and things different, that you otherwise would NEVER have discovered!  ')
}

function submitForm()
{
//ClipBoard()
window.open('http://pdna.smf.instant-forum.com/index.php?action=post;topic=12.0')
//link from member
}

function submitForm2()
{
//ClipBoard()
window.open('http://pdna.smf.instant-forum.com/index.php?action=post;topic=13.0')
//link from guest
}

function go2()
{
//old is window.open('http://friendpair.50webs.org/searchbeta.html')
//just finds first occurence ...
window.open('http://friendpair.50webs.org/searchbeta2.html')
}


function doneSteps()
{
//var k=document.getElementById('f1')
//alert('Congratulations on your completion. \n The first submission box is to optionally submit your personality DNA to site admin for improvement purposes. The second is to post to the forum. ')
//window.open('http://novogate.com/exco/postreply.php?threadid=160456&forumid=28842')
document.f1.submit()
}

function killCookie()
{
document.cookie=""
}

function uphidepdna()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
var expDate = new Date()
expDate.setMonth(expDate.getMonth() + 1)
if (TEXTAREA1.style.display=="none")
TEXTAREA1.style.display="block"
else
TEXTAREA1.style.display="none"

if (document.getElementById('Checkbox3'))
{
if (document.getElementById('Checkbox3').checked)
document.cookie = "txtshow=" +"true"+";expires="+expDate.toGMTString()
else
document.cookie = "txtshow=" +"false"+";expires="+expDate.toGMTString()
}

}

function hidepdna()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.style.display=="none")
TEXTAREA1.style.display="block"
else
TEXTAREA1.style.display="none"
}

function WriteToFile()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
var content=TEXTAREA1.value
var w=window.open()
var p=0
var last=0
while(p<content.length)
{
if (content.charAt(p)=='\n')
{
w.document.write(content.substring(last,p)+'<br />')
last=p+1
}
p++
}
w.document.write(content.substring(last)+'<br />')
w.document.execCommand("SaveAs",null,"PDNA.txt");
w.close()
}

function WriteToFile2()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
var content=TEXTAREA1.value
var w=window.open()
var p=0
var last=0
while(p<content.length)
{
if (content.charAt(p)=='\n')
{
w.document.write(content.substring(last,p)+'<br />')
last=p+1
}
p++
}
w.document.write(content.substring(last)+'<br />')
w.document.execCommand("SaveAs",null,"PDNA.html");
w.close()
}


function txtChange()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
var t=document.getElementById('Checkbox1')
var expDate = new Date()
expDate.setMonth(expDate.getMonth() + 1)


/****
var p 
p=0
p=parseInt(Math.ceil(TEXTAREA1.value.length/4096))
numCookies=p
if (numCookies<1)
numCookies=1
alert(numCookies)
document.cookie="numCookies="+numCookies+";expires="+expDate.toGMTString()
var z=new Array()
var start=0
//var end=4095
var end=4000
var pos=0
for (var j=0;j<numCookies;j++)
{
z[pos]=TEXTAREA1.value.substring(start,end)
pos++
start=end+1
end+=4000
}
for (var i=0;i<numCookies;i++)
document.cookie = "TEXTAREA" + (i+1)+"="  +z[i]+";expires="+expDate.toGMTString()
//document.cookie = "TEXTAREA1="  + z[0]+";expires="+expDate.toGMTString()


***************/
/**
if (t)
{
if (document.getElementById('Checkbox1').checked)
{
Copied = TEXTAREA1.createTextRange();
Copied.execCommand("Copy");
document.cookie = "autosave=" +"true"+";expires="+expDate.toGMTString()
}
else
document.cookie = "autosave=" +"false"+";expires="+expDate.toGMTString()

if (document.getElementById('Checkbox2').checked)
document.cookie = "autoload=" +"true"+";expires="+expDate.toGMTString()
else
document.cookie = "autoload=" +"false"+";expires="+expDate.toGMTString()

if (document.getElementById('Checkbox3').checked)
document.cookie = "txtshow=" +"true"+";expires="+expDate.toGMTString()
else
document.cookie = "txtshow=" +"false"+";expires="+expDate.toGMTString()


} //end check if a page has a checkbox..used so analysis page doesnt get error.
***/


}

function clearClip()
{
 window.clipboardData.clearData()

}

function paste()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
  var rng = TEXTAREA1.createTextRange(); 
     rng.execCommand("paste"); 
}

function ClipBoard() 
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
Copied = TEXTAREA1.createTextRange();
Copied.execCommand("Copy");
alert('Your personality DNA is saved to the clipboard. This is useful for easy forum posting.')
}



function resetForm()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
txtChange()
TEXTAREA1.value=""
var z=confirm('Are you sure you wish to reset the form? (Your Personality DNA will be lost if you have not saved it.)')
if (z)
{
alert('Textarea is now cleared.(Your saved settings are intact.)')
document.getElementById('b3').disabled=false
document.getElementById('b4').disabled=false
document.getElementById('b5').disabled=false
document.getElementById('b6').disabled=false
document.getElementById('b7').disabled=false
document.getElementById('b8').disabled=false
document.getElementById('b9').disabled=false
document.getElementById('b10').disabled=false
document.getElementById('b11').disabled=false
document.getElementById('b12').disabled=false
document.getElementById('b13').disabled=false
}
}

function loadStatus()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
if (document.getElementById('b3')) //basically..if the page has any of the buttons..the analysis page doesnt..
{
if (TEXTAREA1.value.indexOf("PART 1")>=0  )
document.getElementById('b3').disabled=true
else
document.getElementById('b3').disabled=false

if  (TEXTAREA1.value.indexOf("PART 2")>=0  )
document.getElementById('b4').disabled=true
else
document.getElementById('b4').disabled=false

if  (TEXTAREA1.value.indexOf("PART 3")>=0  )
document.getElementById('b5').disabled=true
else
document.getElementById('b5').disabled=false

if  (TEXTAREA1.value.indexOf("PART 4")>=0  )
document.getElementById('b6').disabled=true
else
document.getElementById('b6').disabled=false

if  (TEXTAREA1.value.indexOf("PART 5")>=0  )
document.getElementById('b7').disabled=true
else
document.getElementById('b7').disabled=false

if  (TEXTAREA1.value.indexOf("PART 6")>=0  )
document.getElementById('b8').disabled=true
else
document.getElementById('b8').disabled=false

if  (TEXTAREA1.value.indexOf("PART 7")>=0  )
document.getElementById('b9').disabled=true
else
document.getElementById('b9').disabled=false

if  (TEXTAREA1.value.indexOf("PART 8")>=0  )
document.getElementById('b10').disabled=true
else
document.getElementById('b10').disabled=false

if  (TEXTAREA1.value.indexOf("PART 9")>=0  )
document.getElementById('b11').disabled=true
else
document.getElementById('b11').disabled=false

if  (TEXTAREA1.value.indexOf("PART 10")>=0  )
document.getElementById('b13').disabled=true
else
document.getElementById('b13').disabled=false


if  (TEXTAREA1.value.indexOf("PART 11")>=0  )
document.getElementById('b12').disabled=true
else
document.getElementById('b12').disabled=false


txtChange()
}


}

//updated to handle = sign!
function loadCookie()
{
var i, cookies = document.cookie.split("; ")
var TEXTAREA1=document.getElementById('TEXTAREA1')
var autos=document.getElementById('CheckBox1')
var autos2=document.getElementById('CheckBox2')
var autos3=document.getElementById('CheckBox3')
for (i=0; i < cookies.length; i++) {     
  if (cookies[i].split("=")[0]=="autosave")
            {
            if (autos)
            {
               if (cookies[i].split("=")[1]=="true")
                  autos.checked=true
               else
                  autos.checked=false
             }
             
                        } //end autosave if
                        

 if (cookies[i].split("=")[0]=="autoload")
            {
            if (autos2)
            {
               if (cookies[i].split("=")[1]=="true")
             {
                  autos2.checked=true
                  
              }
               else
                  autos2.checked=false
             }
             
                        } //end autoload if
                        
                        if (cookies[i].split("=")[0]=="txtshow")
            {
            if (autos3)
            {
               if (cookies[i].split("=")[1]=="true")
             {
                  autos3.checked=true
                  
              }
               else
                  autos3.checked=false
             }
             
                        } //end txtshow if
                        
                        } //end loop
                        

/********


          var i, cookies = document.cookie.split("; ")
         for (i=0; i < cookies.length; i++) {     
            if (cookies[i].split("=")[0] == "TEXTAREA1") {
            alert('found first')
            for (var lame=1;lame<cookies[i].length;lame++)
             if (cookies[i].split("=")[lame] ) 
              TEXTAREA1.value += cookies[i].split("=")[lame]
              //TEXTAREA1.value = cookies[i].split("=")[1]
              //break
            }
            
            else if (cookies[i].split("=")[0] == "TEXTAREA2")
            {
            alert('found second')
            for (var lame=1;lame<cookies[i].length;lame++)
             if (cookies[i].split("=")[lame] ) 
              TEXTAREA1.value += cookies[i].split("=")[lame]
            
            }
            else if (cookies[i].split("=")[0] == "TEXTAREA3")
            {
            alert('found third')
            for (var lame=1;lame<cookies[i].length;lame++)
             if (cookies[i].split("=")[lame] ) 
              TEXTAREA1.value += cookies[i].split("=")[lame]
            
            }
            else if (cookies[i].split("=")[0]=="autosave")
            {
            if (autos)
            {
               if (cookies[i].split("=")[1])
                  autos.checked=true
               else
                  autos.checked=false
             }
             
                        } //end autosave if
                        
                        else if (cookies[i].split("=")[0]=="numCookies")
            {
            alert(cookies[i].split("=")[1])
            
     
            }
            
         } //end for	
         
         

for (i=0;i<TEXTAREA1.value.length;i++)
if (TEXTAREA1.value.charAt(i)=='_' && TEXTAREA1.value.charAt(i+1)=='_')
{
TEXTAREA1.value=TEXTAREA1.value.substr(0,i)+'\n'+TEXTAREA1.value.substr(i+2)
}
*************/

//if (autos2)
//if (!(autos2.checked))
//window.open('http://pdna.smf.instant-forum.com')

if (autos3)
{
if (autos3.checked)
TEXTAREA1.style.display="none"
else
TEXTAREA1.style.display="block"
}

if (document.getElementById('b3')) //basically..if the page has any of the buttons..the analysis page doesnt..
{


if (TEXTAREA1.value.indexOf("PART 1")>=0  )
document.getElementById('b3').disabled=true
else
document.getElementById('b3').disabled=false

if  (TEXTAREA1.value.indexOf("PART 2")>=0  )
document.getElementById('b4').disabled=true
else
document.getElementById('b4').disabled=false

if  (TEXTAREA1.value.indexOf("PART 3")>=0  )
document.getElementById('b5').disabled=true
else
document.getElementById('b5').disabled=false

if  (TEXTAREA1.value.indexOf("PART 4")>=0  )
document.getElementById('b6').disabled=true
else
document.getElementById('b6').disabled=false

if  (TEXTAREA1.value.indexOf("PART 5")>=0  )
document.getElementById('b7').disabled=true
else
document.getElementById('b7').disabled=false

if  (TEXTAREA1.value.indexOf("PART 6")>=0  )
document.getElementById('b8').disabled=true
else
document.getElementById('b8').disabled=false

if  (TEXTAREA1.value.indexOf("PART 7")>=0  )
document.getElementById('b9').disabled=true
else
document.getElementById('b9').disabled=false

if  (TEXTAREA1.value.indexOf("PART 8")>=0  )
document.getElementById('b10').disabled=true
else
document.getElementById('b10').disabled=false

if  (TEXTAREA1.value.indexOf("PART 9")>=0  )
document.getElementById('b11').disabled=true
else
document.getElementById('b11').disabled=false

if  (TEXTAREA1.value.indexOf("PART 10")>=0  )
document.getElementById('b13').disabled=true
else
document.getElementById('b13').disabled=false

if  (TEXTAREA1.value.indexOf("PART 11")>=0  )
document.getElementById('b12').disabled=true
else
document.getElementById('b12').disabled=false



}


}




function go()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
alert("Welcome to Personality DNA - The World Standard of Personality Profiles! \n You may begin by clicking the Step#1 button. This is set-up so you can easily do one section at a time and come back later. For your convenience, your personality DNA will save itself automatically via cookies, and you can also save to a .txt file and copy and paste here. \n To SKIP A QUESTION, type N/A as your answer or press ESCAPE.")
}




function step1()
{
var fail
fail=false
var TEXTAREA1=document.getElementById('TEXTAREA1')
//if step already done..
if (TEXTAREA1.value.indexOf("PART 1")>=0  )
{
document.getElementById('b3').disabled=true
alert('It appears you have already completed step #1. \n If you would like to revise, you can either edit the textbox for minor changes, or click the reset button and start again.')
return 0
}
var lamo=confirm('This site allows you to quickly make and analyze your personality profile, using popups such as this, for quick user input. By continuing, you agree to the terms of usage policy. \nClick Okay to Continue,  Cancel to Exit')
if (lamo)
{
//var bbb=document.getElementById('Text1')
var noww = new Date();
//bbb.value=month[noww.getMonth()]+ " "+ noww.getDate()+","+ noww.getFullYear()+ ", " + noww.getHours()+":" + noww.getMinutes()+ ":" + noww.getSeconds()

//Privacy Warning/Disclaimer
alert("Instructions:\n"+ "Exit this site immediately if you have not read, or do not agree with it.\n"+ "All questions are OPTIONAL, if you at any time feel uncomfortable to answer a question, simply press Esc (escape) or type N/A, and this will skip to the next question.")
//name age gender
//the below line clears text area of other text.
TEXTAREA1.value="Your PDNA starts here:\n"
TEXTAREA1.value+="PART 1:\n"

k=prompt("What is your name?\n ","Bobby")

TEXTAREA1.value+="Name:"+k+"\n"

k=prompt("Enter your screen name(Be sure to register it at http://pdna.vi.to) or e-mail address for DNA friend/partner match contact purposes.")
alert('Hello ' +k + '. Please register this screen name on the forum at http://pdna.vi.to , for optimal satisfaction and experience, as well as personality matching with others.')
TEXTAREA1.value+="E-mail/screen name:"+k+"\n"





k=prompt("What is today's date? (DD/MM/YYYY)")
TEXTAREA1.value+="Today's Date:"+k+"\n"
var age
do
{
k=prompt("What is your age \ni.e(as of the END of this year)?","-1")
if (parseInt(k)<=0 || parseInt(k)>125 )
alert('Invalid Age. Please try again.')
}
while(parseInt(k)<=0 || parseInt(k)>125 )
age=k
TEXTAREA1.value+="Age:"+age+"\n"

k=prompt("What is your website? \n i.e. N/A or http://mywebsite.com")
TEXTAREA1.value+="Your website:"+k+"\n"



k=prompt("What is your relationship status? \n i.e. married,divorced,dating,single and looking,single and not looking,etc.")
TEXTAREA1.value+="Relationship status:"+k+"\n"

k=prompt("Do you consider your family structure to be normal?  \n i.e. y or n")
TEXTAREA1.value+="Family structure is normal:"+k+"\n"

k=prompt("Are you young?\n i.e. y or n")
TEXTAREA1.value+="Is young:"+k+"\n"

k=prompt("Enter a link to your photo(optional as are all questions.):")
TEXTAREA1.value+="Link to your photo:"+k+"\n"

k=prompt("Enter a link to your MySpace page(optional as are all questions.):")
TEXTAREA1.value+="Link to your MySpace page:"+k+"\n"

k=prompt("What is your highest level of education completed: \n i.e. grade 4/grade 12/university 2nd year/college diploma/university degree")
TEXTAREA1.value+="Highest level of education completed:"+k+"\n"

k=prompt("Are you a high school dropout? i.e. y or n")
TEXTAREA1.value+="Is a high school dropout:"+k+"\n"

k=prompt("Are you currently enrolled in postsecondary education(university or college) i.e. y or n")
TEXTAREA1.value+="Pursuing postsecondary education:"+k+"\n"

k=prompt("Are you currently employed? If so where \n i.e. Yes, Loblaws/No")
TEXTAREA1.value+="Currently employed:"+k+"\n"

k=prompt("Have you ever been employed before? If so where \n i.e. Yes, Loblaws/No")
TEXTAREA1.value+="Been employed before:"+k+"\n"

//in all validation notice that the textarea written to after valid info entered...

//lifespan >0 years max age less than (approx) oldest human in history..

k=prompt("What is your birthday? (DD/MM/YYYY)")
TEXTAREA1.value+="Birthday:"+k+"\n"



if (k==null || now.getFullYear()- parseInt(k.substring(6)) !=age)
fail=true
if (fail!=null )
if (fail ==true)
{
TEXTAREA1.value+="Critical Error: Fradulent Age Detected"+"\n"
alert('This occurs if you did not enter a birthdate and age, or if the birthdate and age do not match.')
}
k=prompt("What is your birthplace? \n i.e. hospital name/region ")
TEXTAREA1.value+="Birthplace:"+k+"\n"


k=prompt("What is your gender? M for male, F for female")
TEXTAREA1.value+="Gender:"+k+"\n"

k=prompt("What is your astrological/horoscope sign? \n","Aries,Taurus,Gemini,Cancer,Leo,Virgo,Libra,Scorpio,Sagittarius,Capricorn,Aquarius,Pisces")
TEXTAREA1.value+="Astrological Sign:"+k+"\n"

//Sexual Orientation
k=prompt("What is your sexual orientation?:","Straight/Gay/Bisexual/Transgender")
TEXTAREA1.value+="Sexual Orientation:"+k+"\n"

// location state/city, country
k=prompt("What is your country?")
TEXTAREA1.value+="Lives in country:"+k+"\n"
k=prompt("What is your State/City/district?")
TEXTAREA1.value+="Lives in State/City:"+k+"\n"
k=prompt("What is your socioeconomic status? \n i.e. rich, middle-class, poor")
TEXTAREA1.value+="Socio-economic status:"+k+"\n"
if (fail)
TEXTAREA1.value+="*****Critical Error: Fradulent Age Detected!*****"+"\n"
alert('Congratulations, You have completed Step 1!')

document.getElementById('b3').disabled=true
txtChange()


} //end if lamo
}
//8 questions


function step2()
{

var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 2")>=0  )
{
document.getElementById('b4').disabled=true
alert('It appears you have already completed step #2. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
TEXTAREA1.value+="PART 2:\n"
//height and weight
k=prompt("Enter your height:","3\"3")
TEXTAREA1.value+="Height:"+k+"\n"
k=prompt("Enter your weight:","56 pounds")
TEXTAREA1.value+="Weight:"+k+"\n"

k=prompt("Are you disabled or handicapped? \n i.e. y or n")
TEXTAREA1.value+="Disabled/Handicapped:"+k+"\n"

k=prompt("Are you healthy? \n i.e. y or n")
TEXTAREA1.value+="Is Healthy:"+k+"\n"

k=prompt("Do you have AIDS or any other STD? \n i.e. y or n")
TEXTAREA1.value+="Has AIDS/STD:"+k+"\n"

k=prompt("Are you strong? \n i.e. y or n")
TEXTAREA1.value+="Is Strong:"+k+"\n"

k=prompt("Do you work out? \n i.e. y or n")
TEXTAREA1.value+="Works out:"+k+"\n"

k=prompt("Do you have an eating disorder?\n(such as anorexia/bulimia) \n i.e. y or n")
TEXTAREA1.value+="Has an eating disorder:"+k+"\n"


k=prompt("Do you have a learning disorder?(such as dyslexia, ADHD, etc.) \n i.e. y or n")
TEXTAREA1.value+="Has a learning disorder:"+k+"\n"

k=prompt("Do you have a mental disorder? (such as depression,bipolar disorder,etc.)   \n i.e. y or n")
TEXTAREA1.value+="Has a learning disorder:"+k+"\n"

k=prompt("Do you have a genetic disorder?(such as Diabetes, Down Syndrome, etc.) \n i.e. y or n")
TEXTAREA1.value+="Has a genetic disorder:"+k+"\n"

//blood type
k=prompt("What is your blood type:","A+,A-,B+,B-,O+,etc.")
TEXTAREA1.value+="Blood type:"+k+"\n"
k=prompt("Are you right-handed or left-handed?","right/left")
TEXTAREA1.value+="Dominant hand:"+k+"\n"
k=prompt("Describe your body fitness as either: skinny,athletic,chubby,fat,or perfect")
TEXTAREA1.value+="Body Fitness:"+k+"\n"
k=prompt("Are you obese? \n i.e. y or n")
TEXTAREA1.value+="Is obese:"+k+"\n"
k=prompt("Are you on a diet? \n i.e. y or n")
TEXTAREA1.value+="Is on a diet:"+k+"\n"
if (k=='y' || k=='yes')
{
k=prompt("Describe your diet:")
TEXTAREA1.value+="Your diet described:"+k+"\n"
}

k=prompt("Describe your endurance: \n i.e. long-distance runner/ short-distance runner/ couch potato/average")
TEXTAREA1.value+="Body endurance:"+k+"\n"
k=prompt("What is your shoe size?")
TEXTAREA1.value+="Shoe size:"+k+"\n"
k=prompt("What is your pant size?")
TEXTAREA1.value+="Pant size:"+k+"\n"
k=prompt("What is your shirt size?")
TEXTAREA1.value+="Shirt size:"+k+"\n"

//eyes
k=prompt("Natural eye color:")
TEXTAREA1.value+="Natural eye color:"+k+"\n"
k=prompt("Visible eye color:(Skip unless color eye contact lenses)")
TEXTAREA1.value+="Visible eye color:"+k+"\n"

//hair
k=prompt("Describe the length of your hair as: short,long,medium, bald, or N/A")
TEXTAREA1.value+="Length of hair:"+k+"\n"
k=prompt("Natural hair color:")
TEXTAREA1.value+="Natural hair color:"+k+"\n"
k=prompt("Dyed hair color:(Skip unless hair is dyed another color)")
TEXTAREA1.value+="Dyed hair color:"+k+"\n"


//skin color
k=prompt("What is your nationality/background?")
TEXTAREA1.value+="Nationality/Background:"+k+"\n"
k=prompt("What is your religion?")
TEXTAREA1.value+="Religion:"+k+"\n"

k=prompt("Do you wear a religious head gear?")
TEXTAREA1.value+="Wears a religious head gear:"+k+"\n"

//languages spoken

k=prompt("Describe your voice as one of the following:\n deep,low pitch,normal,high pitch,screechy?:")
TEXTAREA1.value+="Voice:"+k+"\n"


k=prompt("Enter the languages you speak fluently:","English")
TEXTAREA1.value+="Languages spoken fluently:"+k+"\n"
k=prompt("Do you have an accent:","n")
TEXTAREA1.value+="Has an accent:"+k+"\n"

k=prompt("What is your skin color?")
TEXTAREA1.value+="Skin color:"+k+"\n"

//hygiene/genetics...

k=prompt("How often do you smoke cigarettes? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency smokes cigarettes:"+k+"\n"


k=prompt("How often do you laugh? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of laughing:"+k+"\n"


k=prompt("Have you ever done any illegal drugs? \n i.e. y or n")
TEXTAREA1.value+="Has ever done illegal drugs:"+k+"\n"


k=prompt("Does your face have pimples,scars,blackheads?")
TEXTAREA1.value+="Face has pimples/scars/blackheads:"+k+"\n"

k=prompt("Do you have acne?\n i.e. y or n")
TEXTAREA1.value+="Has acne:"+k+"\n"

k=prompt("Do you have wear cologne or perfume? \n i.e. y or n")
TEXTAREA1.value+="Wears cologne/perfume:"+k+"\n"

k=prompt("Do you have wear deodrant/antipersperant? \n i.e. y or n")
TEXTAREA1.value+="Wears deodrant/antipersperant:"+k+"\n"

k=prompt("Do you have exercise daily? \n i.e. y or n")
TEXTAREA1.value+="Exercises daily:"+k+"\n"

k=prompt("Do you have exercise more than 3 times per week? \n i.e. y or n")
TEXTAREA1.value+="Exercises more than 3 times per week:"+k+"\n"

k=prompt("How many times a day do you brush your teeth or use mouthwash?")
TEXTAREA1.value+="# of times daily uses mouthwash or brushes teeth:"+k+"\n"

k=prompt("How many times per week do you shower?\n i.e. #")
TEXTAREA1.value+="# of times weekly you shower:"+k+"\n"

k=prompt("How often do you have bad breath: \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Has bad breath:"+k+"\n"

k=prompt("Do you have clean ears? \n i.e. y or n")
TEXTAREA1.value+="Has clean ears:"+k+"\n"

k=prompt("Do you maintain your nails regularly? \n i.e. y or n")
TEXTAREA1.value+="Maintains nails:"+k+"\n"

k=prompt("Can you roll your tongue? \n i.e. y or n")
TEXTAREA1.value+="Roll tongue:"+k+"\n"

//weird ..elbow too
k=prompt("Can you lick your nose? \n i.e. y or n")
TEXTAREA1.value+="Can lick your nose:"+k+"\n"

k=prompt("Do you wear eyeglasses? \n i.e. y or n")
TEXTAREA1.value+="Wears eyeglasses:"+k+"\n"
k=prompt("Do you wear braces? \n i.e. y or n")
TEXTAREA1.value+="Wears braces:"+k+"\n"

k=prompt("Do you wear a hearing aid? \n i.e. y or n")
TEXTAREA1.value+="Wears a hearing aid:"+k+"\n"

k=prompt("Do have obvious birthmarks? \n i.e. y or n")
TEXTAREA1.value+="Has obvious birthmarks:"+k+"\n"

k=prompt("Describe your vision: \n i.e. excellent,good,average,bad,horrible")
TEXTAREA1.value+="Vision:"+k+"\n"

k=prompt("Which level of driver's license have you achieved?")
TEXTAREA1.value+="Driver's license level achieved:"+k+"\n"

k=prompt("What is your major transportation method? \n ex: ride from family member, I drive,I bike,I bus,etc.")
TEXTAREA1.value+="Major Transportation method:"+k+"\n"

k=prompt("Do you wear a watch? \n i.e. y or n")
TEXTAREA1.value+="Wears a watch:"+k+"\n"
if (k=='y' || k=='yes')
{
k=prompt("What brand of watch do you wear:")
TEXTAREA1.value+="Wears watch brand:"+k+"\n"
k=prompt("What type of watch do you wear:\n i.e. with hands, or digital")
TEXTAREA1.value+="Wears watch type:"+k+"\n"
}

//wears jewelry...asked indirectly 


k=prompt("Do you wear 1 or more necklaces? \n i.e. y or n")
TEXTAREA1.value+="Wears 1 or more necklaces:"+k+"\n"

if (k=='y' || k=='yes')
{
k=prompt("Describe your necklace(s)?")
TEXTAREA1.value+="Necklaces:"+k+"\n"
}

k=prompt("Do you wear 1 or more bracelets? \n i.e. y or n")
TEXTAREA1.value+="Wears 1 or more bracelets:"+k+"\n"
if (k=='y' || k=='yes')
{
k=prompt("Describe your bracelet(s)?")
TEXTAREA1.value+="Bracelet(s):"+k+"\n"
}


k=prompt("Do you have 1 or more tattoos? \n i.e. y or n")
TEXTAREA1.value+="Has 1 or more tattoos:"+k+"\n"
if (k=='y' || k=='yes')
{
k=prompt("What is your tattoo?")
TEXTAREA1.value+="Tattoo is:"+k+"\n"
}


k=prompt("How many earrings do you wear? \n i.e 0,1,2,...,etc.","0")
TEXTAREA1.value+="Wears # of earrings:"+k+"\n"
if (k!=null&&k.toString()>0)
{
k=prompt("Describe style or color of earrings? \n i.e. 2 diamond-like earrings, big circular pink")
TEXTAREA1.value+="Style/color of earrings:"+k+"\n"
}

k=prompt("Do you have 1 or more body piercings? \n i.e. y or n")
TEXTAREA1.value+="Has 1 or more body piercings:"+k+"\n"

if (k=='y' || k=='yes')
{
k=prompt("Describe your body piercings.","N/A")
TEXTAREA1.value+="Body piercings:"+k+"\n"
}

k=prompt("Describe your body posture as: proper, improper, or neither ")
TEXTAREA1.value+="Body posture:"+k+"\n"

k=prompt("How often do you use nonverbal gestures such as body language to express yourself:","Always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Uses Nonverbal gestures:"+k+"\n"

k=prompt("How often do you use facial expressions to express yourself:","Always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Uses Facial expressions:"+k+"\n"

k=prompt("Is your belly button an innie or outie? ")
TEXTAREA1.value+="Belly button:"+k+"\n"
//invalid sample input to prevent bias results.

do
{
k=prompt("Rate your body on a scale of 1 to 10 (inclusive), 10 being best.","-5")
if (parseInt(k)<1 || parseInt(k)>10 )
alert('Invalid Rating. Please try again.')
}
while(parseInt(k)<1 || parseInt(k)>10 )
TEXTAREA1.value+="Body self-rating:"+k+"\n"

do
{
k=prompt("How do others rate your body on a scale of 1 to 10 (inclusive), 10 being best.","-5")
if (parseInt(k)<1 || parseInt(k)>10 )
alert('Invalid Rating. Please try again.')
}
while(parseInt(k)<1 || parseInt(k)>10 )
TEXTAREA1.value+="Body rating from others:"+k+"\n"


alert('Congratulations, You have completed Step 2!')
document.getElementById('b4').disabled=true
txtChange()
}
//14

function step3()
{

var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 3")>=0  )
{
alert('It appears you have already completed step #3. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 3, then paste the remaining parts below.')
document.getElementById('b5').disabled=true
return 0
}
TEXTAREA1.value+="PART 3:\n"
//personal weaknesses?

k=prompt("Label yourself negatively in one word.")
TEXTAREA1.value+="1 negative word describing yourself:"+k+"\n"

//personal quality?
k=prompt("Label yourself positively in one word.")
TEXTAREA1.value+="1 positive word describing yourself:"+k+"\n"
k=prompt("On a scale of 1 to 5 how easy is it to be your friend for ANYBODY your age \n 5= VERY EASY, 1 =VERY HARD")
TEXTAREA1.value+="Ease of being your friend:"+k+"\n"


//experience?
//-->things said
k=prompt("What is the nicest thing anyone has ever said to you?")
TEXTAREA1.value+="Nicest thing said to you:"+k+"\n"
k=prompt("What is the nicest thing you have said to anyone?")
TEXTAREA1.value+="Nicest thing you said:"+k+"\n"
k=prompt("What is the meanest thing anyone has ever said to you?")
TEXTAREA1.value+="Meanest thing said to you:"+k+"\n"
k=prompt("What is the meanest thing you have said to anyone?")
TEXTAREA1.value+="Meanest thing you said:"+k+"\n"




//things done

k=prompt("What is the nicest thing you ever did? \n i.e. Describe")
TEXTAREA1.value+="Nicest thing you ever did:"+k+"\n"
k=prompt("What is the worst thing you ever did? \n i.e. Describe")
TEXTAREA1.value+="Worst thing you ever did:"+k+"\n"

k=prompt("What is something you did that you would take back given a chance? \n i.e. Describe")
TEXTAREA1.value+="Someone you did, that you would take back given a chance:"+k+"\n"

k=prompt("What is the nicest thing someone did for you? \n i.e. Describe")
TEXTAREA1.value+="Nicest thing that someone did for you:"+k+"\n"
k=prompt("What is the worst thing someone ever did to you? \n i.e. Describe")
TEXTAREA1.value+="Worst thing that someone did to you:"+k+"\n"

k=prompt("Do you like to take risks? \n i.e. y or n")
TEXTAREA1.value+="Risk-Taker:"+k+"\n"

k=prompt("Are you spontaneous? \n i.e. y or n")
TEXTAREA1.value+="Spontaneous:"+k+"\n"

k=prompt("Are you arrogant? \n i.e. y or n")
TEXTAREA1.value+="Arrogant:"+k+"\n"

k=prompt("Are you wise? \n i.e. y or n")
TEXTAREA1.value+="Wise:"+k+"\n"

k=prompt("Do you have common sense? \n i.e. y or n")
TEXTAREA1.value+="Has common sense:"+k+"\n"

k=prompt("Have you ever stolen someone\'s locker combination or password? \n i.e. y or n")
TEXTAREA1.value+="Has stolen someone\'s locker combination or password:"+k+"\n"

k=prompt("Have you ever stolen or copied someone\'s work without them noticing? \n i.e. y or n")
TEXTAREA1.value+="Has stolen\'s someone\'s work without them noticing:"+k+"\n"

k=prompt("Have you ever cheated to meet a deadline? \n i.e. y or n")
TEXTAREA1.value+="Cheated to meet a deadline:"+k+"\n"

k=prompt("Have you ever been caught cheating in school or the workplace? \n i.e. y or n")
TEXTAREA1.value+="Got caught cheating in school or the workplace:"+k+"\n"

k=prompt("What is the best thing in the world: \n ex: money,etc.")
TEXTAREA1.value+="Best thing in the world:"+k+"\n"

k=prompt("What is the worst thing in the world: \n ex: poverty,etc.")
TEXTAREA1.value+="Worst thing in the world:"+k+"\n"

k=prompt("What is the worst news story you ever heard?")
TEXTAREA1.value+="Worst news story you ever heard:"+k+"\n"



k=prompt("What was the best thing that ever happened to you? \n i.e. Describe")
TEXTAREA1.value+="Best thing that ever happened to you:"+k+"\n"

k=prompt("What is the worst thing you ever did? \n i.e. Describe")
TEXTAREA1.value+="Worst that that ever happened to you:"+k+"\n"


k=prompt("Have you ever felt like a slave or prisoner? \n i.e. y or n")
TEXTAREA1.value+="Has ever felt like a slave/prisoner:"+k+"\n"
k=prompt("How many times a week, on average, do you eat fast food such as McDonald\'s, KFC, pizza, etc. \n i.e. #","0")
TEXTAREA1.value+="#times average weekly eats fast food:"+k+"\n"

//doesnt like other people?

//multiple choice question...

//skills



k=prompt("Can you drive for 1 hour or more in extremely busy traffic without crashing? \n i.e. y or n")
TEXTAREA1.value+="Can drive in extremely busy traffic for 1 hour or more:"+k+"\n"
//end skills

//interests


//done extremes...

//EITHER YES OR NO...?

k=prompt("Are you strictly religious? \n i.e. y or n")
TEXTAREA1.value+="You are strictly religious:"+k+"\n"

k=prompt("Do you attend a religious institution such as a church, temple, or equivalent? \n i.e. y or n")
TEXTAREA1.value+="Attends a religious institution such as a church,temple or equivalent:"+k+"\n"

k=prompt("Do you often read or recite religious literature? \n i.e. y or n")
TEXTAREA1.value+="Often reads or recites religious literature:"+k+"\n"



k=prompt("Are you strictly cultural? \n i.e. y or n")
TEXTAREA1.value+="You are strictly cultural:"+k+"\n"

k=prompt("Are you proud of your culture? \n i.e. y or n")
TEXTAREA1.value+="Proud of your culture:"+k+"\n"

k=prompt("Do you pray regularly? \n i.e. y or n")
TEXTAREA1.value+="Prays regularly:"+k+"\n"
k=prompt("Do you cry often? \n i.e. y or n")
TEXTAREA1.value+="Cries often:"+k+"\n"
k=prompt("Do you swear/curse often? \n i.e. y or n")
TEXTAREA1.value+="Swears/Curses often:"+k+"\n"
k=prompt("Have you ever spied on someone? \n i.e. y or n")
TEXTAREA1.value+="Has spied on someone:"+k+"\n"
k=prompt("Have you ever felt excluded? \n i.e. y or n")
TEXTAREA1.value+="Has felt excluded:"+k+"\n"


k=prompt("Have you ever disobeyed your parents? \n i.e. y or n")
TEXTAREA1.value+="Has disobeyed your parents:"+k+"\n"

k=prompt("Ever seen someone your age that gave you eye contact or silent gestures that made you want to talk to them \n i.e. y or n")
TEXTAREA1.value+="Has felt like talking to someone based on eye contact or silent gestures:"+k+"\n"

//been to places...
k=prompt("Have you ever been to a music concert? \n i.e. y or n")
TEXTAREA1.value+="Has been to a music concert:"+k+"\n"
k=prompt("Have you ever been clubbing? \n i.e. y or n")
TEXTAREA1.value+="Has been clubbing:"+k+"\n"
k=prompt("Have you ever been heartbroken? \n i.e. y or n")
TEXTAREA1.value+="Has been heartbroken:"+k+"\n"
//end been to places...

//romance?
k=prompt("Have you ever given your special someone a Valentine's day present? \n i.e. y or n")
TEXTAREA1.value+="Has given a Valentine's day present to your special someone:"+k+"\n"

//have you ever..
k=prompt("Have you ever stayed up all night with less than 15 minutes of sleep \n i.e. y or n")
TEXTAREA1.value+="Has stayed up all night with < 15 minutes of sleep:"+k+"\n"
if (k=='y' || k=='yes')
{
k=prompt("What were you staying up for? \n i.e. y or n")
TEXTAREA1.value+="Stayed up whole night for:"+k+"\n"
}





k=prompt("Have you ever been counselled for personal problems? \n i.e. y or n")
TEXTAREA1.value+="Has been counselled for personal problems:"+k+"\n"


//school displinary record
k=prompt("Have you ever been suspended from school? \n i.e. y or n")
TEXTAREA1.value+="Been suspended from school:"+k+"\n"
if (k=='y' || k=='yes')
{
k=prompt("What were you suspended for? \n i.e. y or n")
TEXTAREA1.value+="Was suspended for:"+k+"\n"
}
k=prompt("Have you ever been expelled from school? \n i.e. y or n")
TEXTAREA1.value+="Been expelled from school:"+k+"\n"
if (k=='y' || k=='yes')
{
k=prompt("What were you expelled for? \n i.e. y or n")
TEXTAREA1.value+="Was expelled for:"+k+"\n"
}
//end school record

k=prompt("Do you think A. humans are good people or  B. that everyone is out to get you? \n i.e. choose a letter")

if (k=='a' || k=='A')
TEXTAREA1.value+="View on people:You find that humans are good people"+"\n"
else if (k=='b' || k=='B')
TEXTAREA1.value+="View on people:You find that everyone is out to get you"+"\n"
else
TEXTAREA1.value+="View on people:N/A"+"\n"

//weird
k=prompt("Whats up?")
TEXTAREA1.value+="Whats up:"+k+"\n"
k=prompt("How are you?")
TEXTAREA1.value+="How are you:"+k+"\n"


//possesions/normal necessities/luxuries of life ==>could be a section :)
k=prompt("Describe your residence. \n i.e. a house, a condominium,a semi-detached,a hotel,etc.")
TEXTAREA1.value+="Your place of residence is briefly described as:"+k+"\n"

k=prompt("How many bedrooms does the residence you reside in have?")
TEXTAREA1.value+="#bedrooms of residence:"+k+"\n"
k=prompt("How many bathrooms does the residence you reside in have?")
TEXTAREA1.value+="#bathrooms of residence:"+k+"\n"

k=prompt("Does your house have a swimming pool? \n i.e. y or n")
TEXTAREA1.value+="House has a swimming pool:"+k+"\n"

k=prompt("Do you have your own room?(i.e. not shared)")
TEXTAREA1.value+="Have your own room:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("Do you have a computer with internet in your room?\n i.e. y or n")
TEXTAREA1.value+="Have a computer with internet in your room:"+k+"\n"
k=prompt("Do you have a television in your room?\n i.e. y or n")
TEXTAREA1.value+="Have a television in your room:"+k+"\n"
k=prompt("Do you have a gaming system in your room?\n i.e. y or n")
TEXTAREA1.value+="Have a gaming system in your room:"+k+"\n"
}
k=prompt("Do you have your own cellphone?\n i.e. y or n")
TEXTAREA1.value+="Have your own cellphone:"+k+"\n"
k=prompt("Do you have your own mp3 player?\n i.e. y or n")
TEXTAREA1.value+="Have your own mp3 player:"+k+"\n"
k=prompt("Do you have your own satisfactory collection of clothing?\n i.e. y or n")
TEXTAREA1.value+="Have your own satisfactory collection of clothing:"+k+"\n"

k=prompt("Do you get more than 100 television channels?\n i.e. y or n")
TEXTAREA1.value+="Gets more than 100 television channels:"+k+"\n"

k=prompt("What one material(non-living) thing could you NOT live without ex: computer,internet, car, house,cell phone")
TEXTAREA1.value+="Material thing you could NOT live without:"+k+"\n"

k=prompt("What one material(non-living) thing could you live without ex: computer,internet, car, house,cell phone")
TEXTAREA1.value+="Material thing you could live without:"+k+"\n"

k=prompt("What one living thing could you NOT live without ex: friends,family,my dog,etc.")
TEXTAREA1.value+="One living thing you could NOT live without:"+k+"\n"

k=prompt("What one living thing could you live without ex: friends,family,my dog,etc.")
TEXTAREA1.value+="One living thing you could live without:"+k+"\n"

//skills
k=prompt("What are you best at? \n i.e. Describe")
TEXTAREA1.value+="You are best at:"+k+"\n"
k=prompt("What are you worst at? \n i.e. Describe")
TEXTAREA1.value+="You are worst at:"+k+"\n"
k=prompt("What are you average at? \n i.e. Describe")
TEXTAREA1.value+="You are average at:"+k+"\n"

k=prompt("Can you play a musical instrument? \n i.e. y or n")
TEXTAREA1.value+="Can play 1 or more musical instruments:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("What music instrument(s) can you play? \n i.e. list them")
TEXTAREA1.value+="You can play the music instrument(s):"+k+"\n"
k=prompt("Are you skilled at playing 1 or more of these instrument(s)?\n i.e. y or n")
TEXTAREA1.value+="Is skilled at playing 1 or more of these instrument(s):"+k+"\n"
}

k=prompt("What is your pet peeve(a small thing that really annoys you)? \n i.e. Describe")
TEXTAREA1.value+="Your pet peeve:"+k+"\n"

alert('Congratulations, You have completed Step 3!')
document.getElementById('b5').disabled=true
txtChange()
}


//favourites ==>favourite website
//addictions
//intelligence
function step4()
{

var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 4")>=0  )
{
document.getElementById('b6').disabled=true
alert('It appears you have already completed step #4. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
TEXTAREA1.value+="PART 4:\n"
//could possible add checking answer here...
  
  k =prompt("What color is a red apple?")
  TEXTAREA1.value+="You found the color of a red apple to be:"+k+"\n"
  if (k!="red")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Solve. 1+1=")
  TEXTAREA1.value+="You found 1+1=:"+k+"\n"
  if (k!="2")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  TEXTAREA1.value
  k =prompt("Solve. 300-1=")
  TEXTAREA1.value+="You found 300-1=:"+k+"\n"
  if (k!="299")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Solve. 300-34=")
  TEXTAREA1.value+="You found 300-34=:"+k+"\n"
    if (k!="266")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Solve. 256+34=")
  TEXTAREA1.value+="You found 256+34=:"+k+"\n"
  
    if (k!="290")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Solve. 3*3=")
  TEXTAREA1.value+="You found 3*3=:"+k+"\n"
  
    if (k!="9")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Solve. 13*13=")
  TEXTAREA1.value+="You found 13*13=:"+k+"\n"
   if (k!="169")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  
  
  
  k =prompt("Solve. 999*999=")
  TEXTAREA1.value+="You found 999*999=:"+k+"\n"
     if (k!="998001")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Solve. 50/2=")
  TEXTAREA1.value+="You found 50/2=:"+k+"\n"
    if (k!="25")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Simplify to lowest terms. 16/200=")
  TEXTAREA1.value+="You found simplified 16/200 as=:"+k+"\n"
    if (k!="2/25")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Find the derivative of 2x")
  TEXTAREA1.value+="You found the derivative of 2x to be=:"+k+"\n"
     if (k!="2")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Find the derivative of 5x^3")
  TEXTAREA1.value+="You found the derivative of 5x^3 to be=:"+k+"\n"
     if (k!="15x^2")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("What is the square root of pi to 5 decimal places?")
  TEXTAREA1.value+="You found square root of pi to 5 decimal places:"+k+"\n"
  
  k =prompt("What is the 15th letter of the alphabet?")
  TEXTAREA1.value+="You found the 15th letter of the alphabet to be:"+k+"\n"
  if (k!="o")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("What color do you get when you mix yellow and blue?")
  TEXTAREA1.value+="You found yellow,blue mixed to make the color:"+k+"\n"
  if (k!="green")
  TEXTAREA1.value+="WRONG ANSWER.\n"
  else
  TEXTAREA1.value+="Right answer.\n"
  
  k =prompt("Find the X intercept and Y intercept of y=2x+1 \n i.e. state coordinates in brackets of X int. , Y int. ex: (-5,0),(3,0)")
  TEXTAREA1.value+="Found intercepts of y=2x+1 to be:"+k+"\n"

k=prompt("Enter a 20 digit number in the shortest way possible. Anything equaling 0 is NOT allowed. ")
TEXTAREA1.value+="Your entry of a 20 digit number in the shortest way possible:"+k+"\n"

k=prompt("What are the sum of the digits of the 20 digit number you entered before?")
TEXTAREA1.value+="You found the sum of the 20 digit number you entered before to be:"+k+"\n"

k=prompt("How many different arrangements of the letters \'abcde\' are there, if each letter can only be used once, and sequence matters?")
TEXTAREA1.value+="You found # of different arrangements of \'abcde\'(sequence matters,each letter used only once) to be:"+k+"\n"

k=prompt("Name a 1 word palindrome with more than 3 letters: \n ex: evil is live")
TEXTAREA1.value+="Name a 1 word palindrome with more than 3 letters:"+k+"\n"


alert('Congratulations, You have completed Step 4!')

document.getElementById('b6').disabled=true
txtChange()

}

function step5()
{


var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 5")>=0  )
{
document.getElementById('b7').disabled=true
alert('It appears you have already completed step #5. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
TEXTAREA1.value+="PART 5:\n"


//Is repetitive from relationship status...but okay.
k=prompt("Are you currently dating someone? \n i.e. y or n")
TEXTAREA1.value+="Currently dating someone:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("What is the gender of the person you are dating? \n i.e. M or F")
TEXTAREA1.value+="Gender of person you are dating:"+k+"\n"

k=prompt("Are you happy with this current boyfriend or girlfriend? \n i.e. y or n")
TEXTAREA1.value+="Happy with your current boyfriend or girlfriend:"+k+"\n"

k=prompt("Is this a long distance relationship? \n i.e. y or n")
TEXTAREA1.value+="Long distance relationship:"+k+"\n"

k=prompt("Please describe the best part of this relationship.")
TEXTAREA1.value+="Best part of this relationship:"+k+"\n"

k=prompt("Please describe the worst part of this relationship.")
TEXTAREA1.value+="Worst part of this relationship:"+k+"\n"


k=prompt("On a scale of 1-10, 10 being excellent,0 being terrible what is your level of satisfaction with this partner?")
TEXTAREA1.value+="Level of satisfaction with this partner:"+k+"\n"

}


k=prompt("Have you dated someone before? \n i.e. y or n")
TEXTAREA1.value+="You have dated someone before:"+k+"\n"

k=prompt("What is your preferred gender of partner: \n i.e. M or F")
  TEXTAREA1.value+="Your preferred gender of partner:"+k+"\n"

k=prompt("Are you currently interested in someone, but not currently a relationship with them?")
  TEXTAREA1.value+="Currently interested in dating someone(but not dating):"+k+"\n"



k=prompt("What is the age difference you prefer in a relationship?  \n ex: same age,or 3 years older maximum,etc.")
  TEXTAREA1.value+="Preferred age difference for relationship:"+k+"\n"

k=prompt("Preferred nationality of partner:")
  TEXTAREA1.value+="Preferred nationality of partner:"+k+"\n"

k=prompt("Preferred skin color of partner: \n ")
  TEXTAREA1.value+="Preferred skin color of partner:"+k+"\n"

k=prompt("Preferred eye color of partner: \n ex: none,brown,blue,etc.")
  TEXTAREA1.value+="Preferred eye color of partner:"+k+"\n"

k=prompt("Preferred hair color of partner: \n ex: brown,black,blonde,etc.")
  TEXTAREA1.value+="Preferred hair color of partner:"+k+"\n"

k=prompt("Have you had previous unsuccessful dating relationships?")
  TEXTAREA1.value+="Had previous unsuccessful dating relationships:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("Briefly describe why were these previous relationships unsuccessful?")
TEXTAREA1.value+="These previous relationships were unsuccessful because:"+k+"\n"
k=prompt("Was it your fault or your ex-partner\'s fault for the relationship being unsuccessful?")
TEXTAREA1.value+="Whose fault for unsuccessful relationship:"+k+"\n"
}

k=prompt("Describe the body size of your partner:\n ex: very skinny, somewhat skinny, average,chubby,fat")
  TEXTAREA1.value+="Body size of partner:"+k+"\n"

k=prompt("Describe the height of your partner:\n ex: 6\"1 ")
  TEXTAREA1.value+="Height of partner:"+k+"\n"


k=prompt("Would you want your partner to be smart? \n i.e. y or n")
  TEXTAREA1.value+="Want partner to be smart:"+k+"\n"

k=prompt("Would you want your partner to be athletic? \n i.e. y or n")
  TEXTAREA1.value+="Want partner to be athletic:"+k+"\n"

k=prompt("Should your partner to have same or higher level of education as you? ")
  TEXTAREA1.value+="Want partner to be have same or higher level of education as you:"+k+"\n"

k=prompt("Would you want your partner to be able to cook? \n i.e. y or n")
  TEXTAREA1.value+="Want partner to be able to cook:"+k+"\n"


k=prompt("Would you want your partner to buy you stuff?\n i.e. y or n")
  TEXTAREA1.value+="Want partner to buy you stuff:"+k+"\n"

k=prompt("Does money matter in relationships? \n i.e. y or n")
  TEXTAREA1.value+="You think money matters in relationships:"+k+"\n"

k=prompt("Can money buy love? \n i.e. y or n")
  TEXTAREA1.value+="Money can buy love:"+k+"\n"

k=prompt("Would you ditch your partner for someone richer? \n i.e. y or n")
  TEXTAREA1.value+="Would ditch your partner for someone richer:"+k+"\n"

k=prompt("Would you ditch your partner for someone more skilled? \n i.e. y or n")
  TEXTAREA1.value+="Would ditch your partner for someone more skilled:"+k+"\n"

k=prompt("What is the physical quality you like most in a date?  \n i.e. Describe/Explain")
  TEXTAREA1.value+="The quality you like most in a date:"+k+"\n"

k=prompt("What is the physical quality you like most in a friend  \n i.e. Describe/Explain")
  TEXTAREA1.value+="The quality you like most in a friend:"+k+"\n"

k=prompt("What is the personality quality you like most in a date?  \n i.e. Describe/Explain")
  TEXTAREA1.value+="The quality you like most in a date:"+k+"\n"

k=prompt("What is the personality quality you like most in a friend  \n i.e. Describe/Explain")
  TEXTAREA1.value+="The quality you like most in a friend:"+k+"\n"

k=prompt("Have you ever approached someone for friendship? \n i.e. Greeted a stranger, or invited some you don't know very well somewhere")
  TEXTAREA1.value+="Ever approached someone for friendship:"+k+"\n"
  
  //how social or interested in friendship!
k=prompt("To you, what would you define a BEST FRIEND as \n i.e. Describe/Explain")
  TEXTAREA1.value+="What you define a BEST FRIEND as:"+k+"\n"
    


alert('Congratulations, You have completed Step 5!')
document.getElementById('b7').disabled=true
txtChange()


}

/********************************************************
start functions for crazy factor
***********************************************************/
function isYes(checkString)
{
if (checkString)
{
var temp=checkString.toUpperCase()
return temp.match(/Y/ig) || temp.match(/yes/ig) || temp.match(/ya/ig) || temp.match(/yup/ig) || temp.match(/yeah/ig)
}
else
return false
}

//for this function if it is a Y answer they are crazy.
function doX(cond)
{
if (cond)
crazyK++
}

//writes to textarea in form str:val (new line...)

function writeAns(str,val)
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
TEXTAREA1.value+=str+":"+val+"\n"

}



//for this if it is a N answer they are crazy.
function doY(cond)
{
if (cond==false)
crazyK++
}

function doY2(cond)
{
if (cond==false);
else
crazyK++
}

/********************************************************
end functions for crazy factor
***********************************************************/
	
function step6()
{

var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 6")>=0  )
{
document.getElementById('b8').disabled=true
alert('It appears you have already completed step #6. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
TEXTAREA1.value+="PART 6:\n"
var x
x=prompt("Do you like hurting others? Y/N")
doX(isYes(x))
writeAns("Likes hurting others",x)
x=prompt("Do you listen to the same sad song over and over? Y/N")
doX(isYes(x))
writeAns("Likes listening to same sad song over and over",x)
x=prompt("Do you like hurting yourself? Y/N")
doX(isYes(x))
writeAns("Like hurting yourself",x)
x=prompt("Do you like getting revenge? Y/N")
doX(isYes(x))
writeAns("Likes getting revenge",x)
x=prompt("Do you like making others feel your pain? Y/N")
doX(isYes(x))
writeAns("Like making others feel your pain",x)
x=prompt("Do you feel left out by the world? Y/N")
doX(isYes(x))
writeAns("Feels left out by the world",x)
x=prompt("Do you hate talking to others? Y/N")
doX(isYes(x))
writeAns("Hates talking to others",x)
x=prompt("Do you have friends and like talking to them? Y/N")
doY(isYes(x))
writeAns("Has friends and likes talking to them",x)
x=prompt("Do you have friends and like spending time with them? Y/N")
doY(isYes(x))
writeAns("Has friends and likes spending time with them",x)
x=prompt("Has a recent relationship or failed attempt at one left you extremely upset? Y/N")
doX(isYes(x))
writeAns("Is extremely upset by a recent relationship or failed attempt at one",x)
//10 at this point
x=prompt("Do you like making others suffer? Y/N")
doX(isYes(x))
writeAns("Likes making others suffer",x)
//11 
x=prompt("Do you like torturing others? Y/N")
doX(isYes(x))
writeAns("Likes torturing others",x)
//12
x=prompt("Do you like using people to get your way? Y/N")
doX(isYes(x))
writeAns("Like using others to get your own way",x)
//13
x=prompt("Are you selfish? Y/N")
doX(isYes(x))
writeAns("Is selfish",x)
//14
x=prompt("Have you ever been especially nice to someone to get something in return? Y/N")
doX(isYes(x))
writeAns("Was especially nice to someone to get something in return",x)
//15
x=prompt("Have you ever blackmailed someone ? Y/N")
doX(isYes(x))
writeAns("Has blackmailed someone",x)
//16


alert('Your craziness factor is(higher is more crazy):'+crazyK + '\n You are '+((crazyK/16)*100).toFixed(2)+'% crazy ' +'\nCongratulations, you have completed Step 6!')
writeAns("Your Craziness factor(Higher is crazier,out of maximum craziness 16)",crazyK)
TEXTAREA1.value+="You are "+((crazyK/16)*100).toFixed(2)+"% crazy." +"\n"
document.getElementById('b8').disabled=true
txtChange()

}

//reuse crazyK variable
function step7()
{

var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 7")>=0  )
{
document.getElementById('b9').disabled=true
alert('It appears you have already completed step #7. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
TEXTAREA1.value+="PART 7:\n"
crazyK=0
var x


x=prompt("Do you strive to get your work done on time? Y/N")
doX(isYes(x))
writeAns("Strive to get your work done on time",x)
x=prompt("Are you comfortable in your skill to meet your deadlines? Y/N")
doX(isYes(x))
writeAns("Comfortable in being skilled enough to meet deadlines",x)
x=prompt("Do you motivate others? Y/N")
doX(isYes(x))
writeAns("Motivates others",x)
x=prompt("Are you self motivated? Y/N")
doX(isYes(x))
writeAns("Self Motivated",x)
x=prompt("Have you ever been late hand in an assignment or project? Y/N")
doY2(isYes(x))
writeAns("Ever been late to hand in an assignment or project",x)
x=prompt("Do you set daily , weekly or monthly goals? Y/N")
doX(isYes(x))
writeAns("You set daily, weekly or monthly goals",x)
x=prompt("Do you hate starting things? Y/N")
doY2(isYes(x))
writeAns("You hate starting things",x)
x=prompt("Do you begin things early? Y/N")
doX(isYes(x))
writeAns("You being things early",x)
x=prompt("Do you find your work satisfying? Y/N")
doX(isYes(x))
writeAns("You find your work satisfying",x)
x=prompt("Do you do what it takes to get your work done? Y/N")
doX(isYes(x))
writeAns("You do what it takes to get your work done",x)
alert('Your motivation factor is(higher is more motivation):'+crazyK+'\n Congratulations, You have completed step 7!')
writeAns("Your Motivation Factor(Higher is more motivated, out of maximum motivation of 10)",crazyK)
document.getElementById('b9').disabled=true
txtChange()
}

function step8()
{

var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 8")>=0  )
{
document.getElementById('b10').disabled=true
alert('It appears you have already completed step #8. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
TEXTAREA1.value+="PART 8:\n"

k=prompt("What is your most favourite thing ever? ")
TEXTAREA1.value+="Your most favourite thing ever:"+k+"\n"

k=prompt("What is your most favourite work of art? ex: Mona Lisa")
TEXTAREA1.value+="Your most favourite work of art:"+k+"\n"

k=prompt("Favourite Season?\n i.e. Summer,Spring,Fall,Winter")
TEXTAREA1.value+="Favourite Season:"+k+"\n"

k=prompt("Why is " +k + " your favourite season?")
TEXTAREA1.value+="Reason it is your favourite Season:"+k+"\n"

k=prompt("What is your favourite place?")
TEXTAREA1.value+="Favourite Place:"+k+"\n"

k=prompt("What is your favourite country?")
TEXTAREA1.value+="Favourite country:"+k+"\n"

k=prompt("What is your favourite country for vacation?")
TEXTAREA1.value+="Favourite country for vacation:"+k+"\n"

k=prompt("Favourite smell? \n ex: cologne name, fresh pie,etc.")
TEXTAREA1.value+="Favourite Smell:"+k+"\n"

k=prompt("What is your favourite food/thing to taste? ")
TEXTAREA1.value+="Favourite Taste:"+k+"\n"

k=prompt("Do you like seafood? \n i.e. y or n ")
TEXTAREA1.value+="Likes seafood:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("What kind of seafood do you like? ex: shrimp,salmon,etc.")
TEXTAREA1.value+="Likes kind of seafood:"+k+"\n"
}

k=prompt("What is your favourite fast food restaurant? \n ex: McDonald\'s,KFC,Wendy\'s,Harvey\'s ")
TEXTAREA1.value+="Favourite Fast food restaurant:"+k+"\n"

k=prompt("What is your favourite pub restaurant? \n ex: Swiss Chalet,Mandarin, East Side Marios,Pickel Barrel ")
TEXTAREA1.value+="Favourite pub restaurant:"+k+"\n"

k=prompt("What is your favourite pizza company? \n ex: Gino\'s Pizza,Pizza Hut,Pizza Pizza ")
TEXTAREA1.value+="Favourite pizza company:"+k+"\n"

k=prompt("What is the best brand of hamburger? \n ex: Harvey\'s,Lick\'s,McDonalds,Wendys")
TEXTAREA1.value+="Best hamburger brand:"+k+"\n"

k=prompt("What is the best brand of fries? \n ex: New York Fries,Harvey\'s,McDonalds,KFC,Burger King")
TEXTAREA1.value+="Best fries brand:"+k+"\n"

k=prompt("What is your favourite milkshake brand? \n ex: Easterbrooks,Dairy Queen,Baskin Robbins,Pickle Barrel")
TEXTAREA1.value+="Favourite milkshake brand:"+k+"\n"

k=prompt("What is your favourite ice cream brand? \n ex: Dairy Queen,Baskin Robbins,Laura Second,Ben & Jerrys")
TEXTAREA1.value+="Favourite ice cream brand:"+k+"\n"

k=prompt("What is your favourite candy \n ex: Starburst,Skittles,Twizzlers,Licorice,Werther\'s")
TEXTAREA1.value+="Favourite candy:"+k+"\n"

k=prompt("What is your favourite bowling club \n ex: Roseland bowl,Strike Zone,Bowlerama,Planet Bowl")
TEXTAREA1.value+="Favourite bowling club:"+k+"\n"

k=prompt("What is your favourite party store \n ex: Value village/michaels/party place/party shop")
TEXTAREA1.value+="Favourite party store:"+k+"\n"

k=prompt("What is your favourite rollerskating club \n ex: Scooter\'s,the wave,meadowvale 4 rinks/roller ramps")
TEXTAREA1.value+="Favourite rollerskating club:"+k+"\n"

k=prompt("What is your favourite sub sandwich brand? \n ex: Subway,Quizno\'s,Mr.Sub")
TEXTAREA1.value+="Favourite sub sandwich brand:"+k+"\n"

k=prompt("What is your favourite juice brand? \n ex:Sunny D,booster juice,Fruitopia,Tropicana")
TEXTAREA1.value+="Favourite juice brand:"+k+"\n"

k=prompt("What is your favourite cereal? \n ex:Rice Krispies,Cheerios,Captain Crunch,Honeycomb ")
TEXTAREA1.value+="Favourite cereal:"+k+"\n"

k=prompt("What is your favourite hotdog brand? \n ex:Shopsy\'s,Easterbrooks,Schnieders,Maple Leaf top dogs ")
TEXTAREA1.value+="Favourite hot dog brand:"+k+"\n"

k=prompt("What is your favourite chocolate bar brand?	 \n ex:Kit Kat/Aero/Mars/Coffee Crisp ")
TEXTAREA1.value+="Favourite chocolate bar brand:"+k+"\n"

k=prompt("What is your favourite snack bar?	 \n ex:Nutrigrain,Vector energy,Quaker Chewy Dipps,Nutribar")
TEXTAREA1.value+="Favourite snack bar:"+k+"\n"

k=prompt("What is your favourite gum brand?	 \n ex:Double bubble,Juicy fruit,Hubba Bubba,Bubblicious,Trident,Excel,Chlorets")
TEXTAREA1.value+="Favourite gum brand:"+k+"\n"



k=prompt("What is your favourite thing to touch? ")
TEXTAREA1.value+="Favourite Touch:"+k+"\n"

k=prompt("What is your favourite sound? ")
TEXTAREA1.value+="Favourite sound:"+k+"\n"

k=prompt("What is your favourite feeling? ")
TEXTAREA1.value+="Favourite feeling:"+k+"\n"

k=prompt("What is your favourite movement? \n ex: walking,dancing,running,etc.")
TEXTAREA1.value+="Favourite movement:"+k+"\n"


k=prompt("What is your favourite television channel name? \n  ex: YTV,Family etc.")
TEXTAREA1.value+="Favourite telvision channel name:"+k+"\n"

k=prompt("What is your favourite television show? \n")
TEXTAREA1.value+="Favourite telvision show:"+k+"\n"
 
k=prompt("What is your favourite movie?")
TEXTAREA1.value+="Favourite movie:"+k+"\n"

k=prompt("What is your favourite theatre brand? \n ex: Cineplex, Famous Players, etc.")
TEXTAREA1.value+="Favourite theatre brand:"+k+"\n"

k=prompt("What is your favourite toy or video gaming system? \n ex: Xbox,PS3,etc.")
TEXTAREA1.value+="Favourite Toy/Video Gaming System:"+k+"\n"

k=prompt("What is your favourite trading card game \n ex: hockey, Yu Gi Oh!, pokemon,etc..")
TEXTAREA1.value+="Favourite trading card game:"+k+"\n"

k=prompt("What is your favourite Internet Service Provider \n ex: Sympatico,Rogers,etc.")
TEXTAREA1.value+="Favourite Internet Service Provider:"+k+"\n"

k=prompt("What is your favourite theme park? ex: Canada's Wonderland, Disneyland ,etc. ")
TEXTAREA1.value+="Favourite theme park:"+k+"\n"

k=prompt("What is your favourite ride at a theme park?  ")
TEXTAREA1.value+="Favourite ride at a theme park:"+k+"\n"

k=prompt("What is your favourite museum?  ")
TEXTAREA1.value+="Favourite museum:"+k+"\n"

k=prompt("What is your favourite movie genre? \n ex: Horror,Drama,Romance,Suspense,Comedy,etc.")
TEXTAREA1.value+="Favourite movie genre"+k+"\n"

k=prompt("What is your favourite Radio Station? ")
TEXTAREA1.value+="Favourite Radio Station:"+k+"\n"

k=prompt("What is your favourite sport to play? ")
TEXTAREA1.value+="Favourite Sport to play:"+k+"\n"

k=prompt("What is your favourite sport to watch? ")
TEXTAREA1.value+="Favourite Sport to watch:"+k+"\n"

k=prompt("What is your favourite sport's team? ")
TEXTAREA1.value+="Favourite Sport's team:"+k+"\n"

k=prompt("What is your favourite car model? \n ex: Corvette")
TEXTAREA1.value+="Favourite car model:"+k+"\n"

//18+ ?
k=prompt("What is your favourite beer brand? ")
TEXTAREA1.value+="Favourite beer brand:"+k+"\n"

k=prompt("What is your favourite alcohol brand? ")
TEXTAREA1.value+="Favourite alcohol brand:"+k+"\n"

k=prompt("What is your favourite phrase? ")
TEXTAREA1.value+="Favourite phrase:"+k+"\n"

k=prompt("What is your favourite quote? ")
TEXTAREA1.value+="Favourite quote:"+k+"\n"

k=prompt("What is your favourite motivational quote? ")
TEXTAREA1.value+="Favourite motivational quote:"+k+"\n"

k=prompt("What is your favourite joke? ")
TEXTAREA1.value+="Favourite joke:"+k+"\n"

k=prompt("What is your favourite pet\'s name? ")
TEXTAREA1.value+="Favourite pet's name:"+k+"\n"

k=prompt("What is your favourite color? ")
TEXTAREA1.value+="Favourite color:"+k+"\n"

k=prompt("What is your favourite mall? ")
TEXTAREA1.value+="Favourite mall:"+k+"\n"

k=prompt("What is your favourite thing to do at the mall? ")
TEXTAREA1.value+="Favourite thing to do at the mall:"+k+"\n"

k=prompt("What is your favourite clothing store? ")
TEXTAREA1.value+="Favourite clothing store:"+k+"\n"

k=prompt("What is your favourite clothing brand? \n ex: Ecko,TNA,etc.")
TEXTAREA1.value+="Favourite clothing brand:"+k+"\n"

k=prompt("What is your favourite shoe store? ")
TEXTAREA1.value+="Favourite shoe store:"+k+"\n"



k=prompt("What is your favourite sports store? \n ex: Sports Chek, National Sports,Canadian Tire")
TEXTAREA1.value+="Favourite sports store:"+k+"\n"

k=prompt("What is your favourite rock climbing centre? ")
TEXTAREA1.value+="Favourite rock climbing centre:"+k+"\n"

k=prompt("What is your favourite personal care store? \n ex: L\'oreal Kids,Body Shop,etc.")
TEXTAREA1.value+="Favourite personal care store:"+k+"\n"

k=prompt("What is your favourite shoe brand? ")
TEXTAREA1.value+="Favourite shoe brand:"+k+"\n"



k=prompt("What is your favourite music store? ")
TEXTAREA1.value+="Favourite music store:"+k+"\n"

k=prompt("What is your favourite furniture store? ")
TEXTAREA1.value+="Favourite furniture store:"+k+"\n"

k=prompt("What is your favourite school supply store? ")
TEXTAREA1.value+="Favourite school supply store:"+k+"\n"

k=prompt("What is your favourite computer store? ")
TEXTAREA1.value+="Favourite computer store:"+k+"\n"

k=prompt("What is your favourite accessory store? \n ex: Wal-Mart,Ardene,Claire,etc. ")
TEXTAREA1.value+="Favourite accessory store:"+k+"\n"

k=prompt("What is your favourite toy store? \n ex: Toys R' Us, Wal-Mart,etc. ")
TEXTAREA1.value+="Favourite toy store:"+k+"\n"

k=prompt("What is your favourite pet store? \n ex: PetSmart,Pet Value,etc.")
TEXTAREA1.value+="Favourite pet store:"+k+"\n"

k=prompt("What is your favourite book store? \n ex: Indigo,Chapters,Coles")
TEXTAREA1.value+="Favourite book store:"+k+"\n"

k=prompt("What is your favourite book ?")
TEXTAREA1.value+="Favourite book:"+k+"\n"

k=prompt("What is your favourite book genre? \n ex: suspense, drama,romance,etc.")
TEXTAREA1.value+="Favourite book genre:"+k+"\n"

k=prompt("What is your favourite hobby or craft store \n ex:Michaels,Mastermind,Science City,etc.")
TEXTAREA1.value+="Favourite hobby/craft store:"+k+"\n"


k=prompt("What kind/genre of music do you listen to? \n ex: Rap,Rock,Hip Hop,Reggae,Pop,Classical")
TEXTAREA1.value+="Listens to music genre/kind:"+k+"\n"

k=prompt("Who is your favourite music artist?")
TEXTAREA1.value+="Favourite music artist:"+k+"\n"

k=prompt("Who is your favourite celebrity?")
TEXTAREA1.value+="Favourite celebrity:"+k+"\n"

k=prompt("Who is your celebrity role model?")
TEXTAREA1.value+="Celebrity role model:"+k+"\n"

k=prompt("Who is your favourite music cd/album?")
TEXTAREA1.value+="Favourite music cd/album:"+k+"\n"

k=prompt("What is your favourite song?")
TEXTAREA1.value+="Favourite song:"+k+"\n"

k=prompt("What is your least favourite song?")
TEXTAREA1.value+="Least Favourite song:"+k+"\n"

k=prompt("What is the most annoying song?")
TEXTAREA1.value+="Most annoying song:"+k+"\n"

k=prompt("What is your favourite cellphone brand? \n ex: Motorola Razr")
TEXTAREA1.value+="Favourite cellphone brand:"+k+"\n"
k=prompt("What is your favourite GSM carrier network? \n ex: Fido,Rogers Wireless,etc.")
TEXTAREA1.value+="Favourite GSM carrier network:"+k+"\n"

k=prompt("What is your favourite website?")
TEXTAREA1.value+="Favourite website:"+k+"\n"

//dislikes?
k=prompt("What is/was your favourite subject in school?")
TEXTAREA1.value+="Favourite subject in school:"+k+"\n"
k=prompt("What is/was the subject you really hated in school?")
TEXTAREA1.value+="Subjected you hated in school:"+k+"\n"
k=prompt("Why was " + k+ " the subjected you hated in school?")
TEXTAREA1.value+="You hated this subject because:"+k+"\n"


document.getElementById('b10').disabled=true
txtChange()
alert('Congratulations, You have completed Step 8!')
}

function step9()
{


var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 9")>=0  )
{
document.getElementById('b11').disabled=true
alert('It appears you have already completed step #9. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
TEXTAREA1.value+="PART 9:\n"

//how often

k=prompt("How often are you happy? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of happiness:"+k+"\n"

k=prompt("How often are you sad? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of sadness:"+k+"\n"

k=prompt("How often are you angry? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of angry:"+k+"\n"

k=prompt("How often do you feel helpless? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of feeling helpless:"+k+"\n"

k=prompt("How often do you feel confident? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of feeling confident:"+k+"\n"

k=prompt("How often do you feel left out? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of feeling left out:"+k+"\n"

k=prompt("How often are you lonely? \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of loneliness:"+k+"\n"

k=prompt("How often do you go clubbing: \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency you go clubbing:"+k+"\n"

k=prompt("How often do go out with friends: \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of spending time with friends:"+k+"\n"

k=prompt("How often do you spend your free time alone: \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency of spending free time alone:"+k+"\n"

k=prompt("How often do you participate in illegal activities: \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency you participate in illegal activities:"+k+"\n"

k=prompt("How often do you participate in unethical activities: \n i.e. always,frequently,sometimes,rarely,never")
TEXTAREA1.value+="Frequency you participate in unethical activities:"+k+"\n"

//weird
k=prompt("Have you ever wanted to take a relationship to the next level, but not seem awkward? \n i.e. y or n")
TEXTAREA1.value+="Has wanted to take advance a relationship,but not seem awkard:"+k+"\n"

//weird
k=prompt("Are you allowed to have friends of the opposite gender in your room? \n i.e. y or n")
TEXTAREA1.value+="Is allowed to have friends of the opposite gender in your room:"+k+"\n"


k=prompt("What is the meaning of life?")
TEXTAREA1.value+="You find the meaning of life to be:"+k+"\n"

//actually opinion not experience..opinion on controversial topics..
k=prompt("Which came first the chicken or the egg? \n i.e. pick one and explain why")
TEXTAREA1.value+="Chicken/Egg you found:"+k+"came first \n"

k=prompt("How did the universe/world begin?")
TEXTAREA1.value+="You find that the universe/world began with:"+k+"\n"

k=prompt("Killing someone is NEVER self-defence? \n i.e. y or n")
TEXTAREA1.value+="Killing someone is NEVER self-defence:"+k+"\n"

k=prompt("Abortion is acceptable? \n i.e. y or n")
TEXTAREA1.value+="Abortion is acceptable:"+k+"\n"

k=prompt("Are same gender unions are acceptable? \n i.e. y or n")
TEXTAREA1.value+="Same gender unions are acceptable:"+k+"\n"

k=prompt("Prostitution should be legalized? \n i.e. y or n")
TEXTAREA1.value+="Prostitution should be legalized:"+k+"\n"

k=prompt("Are leather jackets cool? \n i.e. y or n")
TEXTAREA1.value+="Finds leather jackets cool:"+k+"\n"

k=prompt("Are you gullible? \n i.e. y or n")
TEXTAREA1.value+="Is gullible:"+k+"\n"

k=prompt("Have you ever spoken badly about someone behind their back? \n i.e. y or n")
TEXTAREA1.value+="Ever spoken badly about someone behind their back:"+k+"\n"

if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("Do you regret speaking behind this person\'s back? \n i.e. y or n")
TEXTAREA1.value+="Regrets speaking behind someone\'s back:"+k+"\n"
}

k=prompt("What do you think of two faced people?")
TEXTAREA1.value+="Your opinion on two faced people:"+k+"\n"

k=prompt("What do you think of people who talk about you behind your back?")
TEXTAREA1.value+="You think people who talk about you behind your back are:"+k+"\n"


k=prompt("Can you cook? \n i.e. y or n")
TEXTAREA1.value+="You can cook:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("What can you cook?   i.e. list things")
TEXTAREA1.value+="What can you cook:"+k+"\n"
}


k=prompt("Are you superstitious? \n i.e. y or n")
TEXTAREA1.value+="Is superstitious:"+k+"\n"

k=prompt("Are you better than everyone else? \n i.e. y or n")
TEXTAREA1.value+="Is better than everyone else:"+k+"\n"

k=prompt("Are you on time usually? \n i.e. y or n")
TEXTAREA1.value+="Is on time usually:"+k+"\n"

//weird
k=prompt("Do you eyes water in public? \n i.e. y or n")
TEXTAREA1.value+="Your eyes water in public:"+k+"\n"

k=prompt("Are you good at public speaking? \n i.e. y or n")
TEXTAREA1.value+="Good at public speaking:"+k+"\n"

k=prompt("Do you remember things easily? \n i.e. y or n")
TEXTAREA1.value+="You remember things easily:"+k+"\n"

k=prompt("Can you think fast? \n i.e. y or n")
TEXTAREA1.value+="Can think fast:"+k+"\n"

k=prompt("Are you talkative? \n i.e. y or n")
TEXTAREA1.value+="You are talkative:"+k+"\n"

k=prompt("Can you make decisions fast? \n i.e. y or n")
TEXTAREA1.value+="You can make decisions fast:"+k+"\n"

k=prompt("Do you hug your friends \n i.e. y or n")
TEXTAREA1.value+="Hug your friends:"+k+"\n"

k=prompt("Are you waiting for your special someone? \n i.e. y or n")
TEXTAREA1.value+="Waiting for your special someone:"+k+"\n"

k=prompt("Do you spend most of your free time alone? \n i.e. y or n")
TEXTAREA1.value+="Spend most of your free time alone:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("Do you enjoy spending most of your free time alone? \n i.e. y or n")
TEXTAREA1.value+="Enjoy spending most of your free time alone:"+k+"\n"
}
k=prompt("Please describe what you enjoy while you are alone. ")
TEXTAREA1.value+="What you enjoy while alone:"+k+"\n"

k=prompt("Please describe a time you were very sick.")
TEXTAREA1.value+="Describe a time you were very sick:"+k+"\n"

k=prompt("Have you ever received a massage?")
TEXTAREA1.value+="Has received a massage:"+k+"\n"

k=prompt("Please describe your best time with the opposite gender.")
TEXTAREA1.value+="Best time with the opposite gender:"+k+"\n"

k=prompt("Please describe your best conversation.")
TEXTAREA1.value+="Describe your best conversation:"+k+"\n"
 
 k=prompt("Please describe your best dream.")
TEXTAREA1.value+="Describe your best dream:"+k+"\n"
 
 k=prompt("Please describe your weirdest dream.")
TEXTAREA1.value+="Describe your weirdest dream:"+k+"\n"
 
 k=prompt("Please describe your worst nightmare.")
TEXTAREA1.value+="Describe your worst nightmare:"+k+"\n"
 
 k=prompt("State whether you like or dislike helping others. Explain why.")
TEXTAREA1.value+="How much you like or dislike like helping others:"+k+"\n"
 
 k=prompt("If you could help a friend, would you? \n i.e. y or n")
TEXTAREA1.value+="You would help a friend:"+k+"\n"
 
 k=prompt("If you could help a family member would you? \n i.e. y or n")
TEXTAREA1.value+="You would help a family member:"+k+"\n"
 
 k=prompt("If you could help a stranger, would you? \n i.e. y or n")
TEXTAREA1.value+="You would help a stranger:"+k+"\n"
 
 k=prompt("Please describe your worst fear. \n ex: heights")
TEXTAREA1.value+="Describe your worst fear:"+k+"\n"
 
 k=prompt("Are you afarid to answer the door ? \n i.e. y or n")
TEXTAREA1.value+="Afarid(fear) to answer the door:"+k+"\n"
 
 k=prompt("You dream often ? \n i.e. y or n")
TEXTAREA1.value+="You dream often:"+k+"\n"
 
 k=prompt("You are clumsy ? \n i.e. y or n")
TEXTAREA1.value+="You are clumsy:"+k+"\n"

k=prompt("You embarrass yourself in public ? \n i.e. y or n")
TEXTAREA1.value+="You embarrass yourself in public:"+k+"\n"

k=prompt("You embarrass others in public ? \n i.e. y or n")
TEXTAREA1.value+="You embarrass others in public:"+k+"\n"
 
 k=prompt("Please describe your best friend\'s qualities.")
TEXTAREA1.value+="Your best friend\'s qualities:"+k+"\n"
 
k=prompt("Do you talk to yourself? \n i.e. y or n")
TEXTAREA1.value+="Talk to yourself:"+k+"\n"

k=prompt("Are you popular? \n i.e. y or n")
TEXTAREA1.value+="Is popular:"+k+"\n"

k=prompt("Are you mentally mature? \n i.e. y or n")
TEXTAREA1.value+="Is mentally mature:"+k+"\n"

k=prompt("You wish you had more friends? \n i.e. y or n")
TEXTAREA1.value+="Wish you had more friends:"+k+"\n"

k=prompt("You wish you had friends that are there for you more? \n i.e. y or n")
TEXTAREA1.value+="Wish you had friends that are there for you more:"+k+"\n"

k=prompt("Do/did you participate in high school clubs? \n i.e. y or n")
TEXTAREA1.value+="Participated in high school clubs:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("Which clubs did you participate in? ")
TEXTAREA1.value+="High school clubs participated in:"+k+"\n"
k=prompt("Why did you participate in these high school clubs?")
TEXTAREA1.value+="Why you participated in high school clubs:"+k+"\n"
}

k=prompt("Do you read the newspaper? \n i.e. y or n")
TEXTAREA1.value+="You read the newspaper:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("What type of newspaper articles do you read? ex: (explain) horoscopes, sudoku, sports, front page,health")
TEXTAREA1.value+="Type of newspaper articles you read:"+k+"\n"
}


k=prompt("Have you ever given/donated blood? \n i.e. y or n")
TEXTAREA1.value+="Donated blood:"+k+"\n"

k=prompt("Do you read a lot? \n i.e. y or n")
TEXTAREA1.value+="Reads a lot:"+k+"\n"

k=prompt("Are you good at keeping a conversation going? \n i.e. y or n")
TEXTAREA1.value+="Is good at keeping a conversation going:"+k+"\n"

k=prompt("Do you have a good sense of humour? \n i.e. y or n")
TEXTAREA1.value+="Has a good sense of humour:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("Do you find humour in others getting hurt?")
TEXTAREA1.value+="Finds humour in others getting hurt:"+k+"\n"
k=prompt("Do you find humour in others suffering?")
TEXTAREA1.value+="Finds humour in others suffering:"+k+"\n"
k=prompt("Please provide an example of something you find humorous.")
TEXTAREA1.value+="Example of something you find humorous:"+k+"\n"
}

k=prompt("Can you make a good joke on the spot? \n i.e. y or n")
TEXTAREA1.value+="Can make a good joke on the spot:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("You can make a good joke on the spot. Type your joke here:")
TEXTAREA1.value+="You\'re on the spot joke:"+k+"\n"
}

k=prompt("Do you know how to have a good time? \n i.e. y or n")
TEXTAREA1.value+="Knows how to have a good time:"+k+"\n"

k=prompt("Do you like reading? \n i.e. y or n")
TEXTAREA1.value+="Likes reading:"+k+"\n"

k=prompt("Do you think stealing is wrong? \n i.e. y or n")
TEXTAREA1.value+="Stealing is wrong:"+k+"\n"

k=prompt("Do you think that violence is bad? \n i.e. y or n")
TEXTAREA1.value+="Violence is bad:"+k+"\n"

k=prompt("Do you often lose things? \n i.e. y or n")
TEXTAREA1.value+="Often lose things:"+k+"\n"

k=prompt("Do you often tear things in anger? \n i.e. y or n")
TEXTAREA1.value+="Often tears things in anger:"+k+"\n"

k=prompt("Have you ever tried your best and failed at something? \n i.e. y or n")
TEXTAREA1.value+="Have tried your best and failed at something:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("What did you try your best and fail at?")
TEXTAREA1.value+="You tried your best and failed at:"+k+"\n"
}



k=prompt("Are you happy with your life? \n i.e. y or n")
TEXTAREA1.value+="Happy with your life:"+k+"\n"

k=prompt("Is it possible for you to be completely happy in life? \n i.e. y or n")
TEXTAREA1.value+="It is possible for you to be completely happy in life:"+k+"\n"


k=prompt("Do you sing in the shower? \n i.e. y or n")
TEXTAREA1.value+="Sings in the shower:"+k+"\n"

k=prompt("Do you sing in public? \n i.e. y or n")
TEXTAREA1.value+="Sings in public:"+k+"\n"

k=prompt("Do you answer the phone the most in your house? \n i.e. y or n")
TEXTAREA1.value+="Answers the phone the most in your house:"+k+"\n"

k=prompt("Are your parents/guardians strict? \n i.e. y or n")
TEXTAREA1.value+="Your parents/guardians are strict:"+k+"\n"

k=prompt("Are your parents/guardians fair? \n i.e. y or n")
TEXTAREA1.value+="Your parents/guardians are fair:"+k+"\n"

k=prompt("Do your parents/guardians care? \n i.e. y or n")
TEXTAREA1.value+="Your parents/guardians care:"+k+"\n"

k=prompt("Do you have strong dancing ability? \n i.e. y or n")
TEXTAREA1.value+="Has strong dancing ability:"+k+"\n"
if (k=='y' || k=='Y' || k=='yes')
{
k=prompt("What dances are you skilled at?")
TEXTAREA1.value+="Dances you are skilled at:"+k+"\n"
}

k=prompt("If you could change one thing in your life what would it be? ")
TEXTAREA1.value+="If you could change one thing in your life you\'d change:"+k+"\n"

k=prompt("If you could have one super power, what would it be? \n ex: invisibility, super attraction, immortality,etc.")
TEXTAREA1.value+="The one super power you would choose:"+k+"\n"

k=prompt("If you had a $1,000,000(a million dollars), what would you spend it on?(Feel free to list)")
TEXTAREA1.value+="You would spend a million dollars on:"+k+"\n"

k=prompt("What is/are your biggest goal or dream?")
TEXTAREA1.value+="Your biggest goal or dream:"+k+"\n"

k=prompt("Are you racist? \n i.e. y or n")
TEXTAREA1.value+="Is racist:"+k+"\n"

k=prompt("Do you discriminate against groups of certain types people? \n i.e. y or n")
TEXTAREA1.value+="Discriminates against groups of certain types of people:"+k+"\n"



document.getElementById('b11').disabled=true
txtChange()
alert('Congratulations, You have completed Step 9!')

}



function step10()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 10")>=0  )
{
document.getElementById('b13').disabled=true
alert('It appears you have already completed step #10. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
TEXTAREA1.value+="PART 10:\n"
alert('Please answer all questions using lowercase letters, unless otherwish specified. Ex:\na')
//w=window.top
//z=window.open("")
//z.focus()
//z.document.write("<br /><br /> If you see someone you like BUT DON\'T KNOW you would: a-ignore b-say hi c-pray d-make a wish to your fairy godmother e-cry f-run away g-grab them h-scream i-get your brave friend to help<br />")
//w.focus()

//k=prompt("you choose letter:")
//z.close()
k=prompt(" If you see someone you like BUT DON\'T KNOW you would:\n use Home and End keys for quicker navigation","a-ignore b-say hi c-pray d-make a wish to your fairy godmother e-cry f-run away g-grab them h-scream i-get your brave friend to help")
TEXTAREA1.value+=" If you see someone you like BUT DON\'T KNOW you would: a-ignore b-say hi c-pray d-make a wish to your fairy godmother e-cry f-run away g-grab them h-scream i-get your brave friend to help:"+k+"\n"
var m1=new Array()
k=prompt("Pick the one you are most skilled at: 1) Drama 2) Music 3) Visual Arts")
if (k=='1')
k="Drama."
else if (k=='2')
k="Music."
else if (k=='3')
k="Visual arts."
TEXTAREA1.value+="Your are best skilled in the art of:"+k+"\n"

alert('***Please enter a number to specify your answer for the following questions, ex:\n1')
k=prompt("When in conflict you 1) avoid 2) discuss openly 3) fight for your way 4) give other person their way 5) negotiate ")
if (k=='1')
k="Avoid."
else if (k=='2')
k="Discuss openly."
else if (k=='3')
k="Fight for your way."
else if (k=='4')
k="Give in to the other person\'s way."
else if (k=='5')
k="Negotiate"
else
k="Invalid input."
TEXTAREA1.value+="When in conflict you:"+k+"\n"


//TEXTAREA1.value+="If you see someone you like BUT DON\'T KNOW you would: a-ignore b-say hi c-pray d-make a wish to your fairy godmother e-cry f-run away g-grab them h-scream i-get your brave friend to help:"+k+"\n"

/*
m1[0]="Ignore."
m1[1]="Say hi."
m1[1]="Pray."
m1[2]="Make a wish to your fairy godmother."
m1[3]="Cry."
m1[4]="Run away."
m1[5]="Grab them."
m1[6]="Scream."
m1[7]="Get your brave friend to help."
*/
//var d='a'
//d=(int)d
//var k=d -97
//TEXTAREA1.value+="If you see someone you like BUT DON\'T know you would:"+m[val]+"\n"
//alert(k)


document.getElementById('b13').disabled=true
txtChange()
alert('Congratulations, You have completed Step 10!')

}

function step11()
{
var TEXTAREA1=document.getElementById('TEXTAREA1')
if (TEXTAREA1.value.indexOf("PART 11")>=0  )
{
document.getElementById('b12').disabled=true
alert('It appears you have already completed step #11. \n If you would like to revise, you can either edit the textbox for minor changes, or copy and paste part 1 about, save the other parts, and complete step 2, then paste the remaining parts below.')
return 0
}
var now2=new Date()
var bbbb=document.getElementById('Text2')
var bbbb2=document.getElementById('Text1')
//bbbb.value=month[now2.getMonth()]+ " "+ now2.getDate()+","+ now2.getFullYear()+ ", " + now2.getHours()+":" + now2.getMinutes()+ ":" + now2.getSeconds()
TEXTAREA1.value+="PART 11:\n"

alert('Please answer the following regarding this personality quiz. Keep in mind that this quiz is subject to updates and major improvements')
k=prompt("What would you rate this personality quiz out of 10? \n i.e. 1 to 10")
TEXTAREA1.value+="Personality quiz rating out of 10:"+k+"\n"

k=prompt("Would you reccomend this personality quiz to a friend: \n i.e. y or n")
TEXTAREA1.value+="Would reccomend to a friend:"+k+"\n"

k=prompt("If you choose, name some suggested questions for this personality quiz:")
TEXTAREA1.value+="Suggested questions:"+k+"\n" 
k=prompt("Did you ever take a better personality quiz than this one \n i.e. y or n")
TEXTAREA1.value+="Ever took a better personality quiz than this one:"+k+"\n"
k=prompt("Did you post your personality quiz on the forum \n i.e. y or n")
if (k=='y' || k=='yes')
alert('Thank-you for your contribution! By posting your personality quiz on the forum, you allow yourself to be matched by other people looking for friendships or relationships.')
else
alert('Be sure to have your screen name registered on the forum at http://pdna.vi.to . Reasons to register, including getting the latest news, allowing making friendships or relationships, and allowing easy providing of your suggestions.')

k=prompt("Do you authorize the posting on the forum of your ANONYMOUS personality profile with removal of personal information such as name, birthdate, location?  i.e. y or n")
TEXTAREA1.value+="Gave consent for anonymous posting of their personality DNA on forum:"+k+"\n"


k=prompt("Do you authorize the posting on the forum of your full personality quiz including information such as your screen name, name, birthdate, location? i.e. y or n")
TEXTAREA1.value+="Gave consent for full posting of their personality DNA on forum:"+k+"\n"

k=prompt("Where did you hear about this personality quiz, or who referred you?")
TEXTAREA1.value+="Where you heard about this personality quiz/referring person:"+k+"\n"
//TEXTAREA1.value+="Started:"+bbbb2.value + "\nEnded:"+bbbb.value
TEXTAREA1.value+="\n\nPersonality Quiz via http://friendpair.50webs.org , get your personality DNA today!"

document.getElementById('b12').disabled=true
txtChange()
alert('Congratulations, You have completed Step 11!')


}
