// JavaScript Document
function startit(){
	if(n==-1){
		clearcspot()
		choice=Math.floor(Math.random()*clist.length)
		//choice=17
		whichstructure=("What is the Lewis Structure for "+completeformula(datalist[choice][4]))
		showquest(whichstructure)
		document.forms[0].choose.value="Next Step"
		thephrase="The central atom is "+datalist[choice][0]+". There are "+datalist[choice][1]+" electrons and "+datalist[choice][2]+"Hs."
		showphrases(thephrase)
		thestring=needed[datalist[choice][3]]
		n++
		}
	else{
		if(n<5){
			if(thestring.charAt(n)=="1"){thequest="<img src=../images/lewis_dot_structures/"+clist[choice]+(n+1)+".gif>"
				thephrase=thephrases[n]
				showphrases(thephrase)
				showstructure(thequest)
				}
			else{
				thephrase=notneeded[n]
				showphrases(thephrase)
				}
			n++
			}
		else{
		n=-1	
		document.forms[0].choose.value="New Compound"
		}
	}
}
function skipit(){
	n=-1
	document.forms[0].choose.value="New Compound"
	clearqspot()
	clearinfospot()
}