 function chkStatus()  {
	var nameSingle = new Array()
	nameSingle[0]="You are a Hottie"
	nameSingle[1]="You are a Babe Magnet"
	nameSingle[2]="You are a Dud"
	nameSingle[3]="You are a Princess"
	nameSingle[4]="You are a Diva"
	nameSingle[5]="You are a Loser"
	nameSingle[6]="You are an Angel"
	var nameCouple = new Array()
	nameCouple[0] = "Its True Love"
	nameCouple[1] = "A match made in heaven"
	nameCouple[2] = "Careful it's on the ROCKS"
	nameCouple[3] = "You two are soul mates"
	nameCouple[4] = "Oh no you two are DOOMED"
	myOption = -1;
	for (i=0; i< document.myform.myradiobutton.length; i++) {
		if (document.myform.myradiobutton[i].checked) {
			myOption = i;
		}
	}
	if(myOption == 0) {	
		text=new Array(nameSingle[randomNum(nameSingle.length)])
	} else {
		text=new Array(nameCouple[randomNum(nameCouple.length)])
	}
	return text
}
if (document.all) { //Internet Explorer
	n=0 
	ie=1
	zoomText="document.all.zoom.innerText=text[num]"
	zoomSize="document.all.zoom.style.fontSize=size"
	closeIt=""
	fadeColor="document.all.zoom.style.color=color[num]"
}
if (document.layers) { //Netscape
	n=1;ie=0
	zoomText=""
	zoomSize="document.zoom1.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+size+'px; color:'+color[0]+'\">'+text[num]+'</p>')"
	closeIt="document.zoom1.document.close()"
	fadeColor="document.zoom1.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+endSize+'px; color:'+color[num]+'\">'+text[numText-1]+'</p>')"
}
var numText=1
color=new Array('yellow','red','green','blue')
var numColors=4
var endSize=45
var Zspeed=30
var Cspeed=200
var font='Arial Black'
var hide=true
var size=10
var gonum=0
function zoom(num,fn) {
	if (size<endSize){
		eval(zoomText)
		eval(zoomSize)
		eval(closeIt)
		size+=5;
		setTimeout("zoom("+num+",'"+fn+"')",Zspeed)
	}else{
		eval(fn);
	}
}
function fadeIt(num) {
	if (num<numColors) {
		eval(fadeColor)
		eval(closeIt)
		num+=1;
		setTimeout("fadeIt("+num+")",Cspeed)
	}else{
//hideIt()
	}
}
function hideIt() {	
	if(hide) {
		if(ie)document.all.zoom.style.visibility="hidden"
		if(n)document.layers.zoom1.visibility="hidden"
	}
}
function init() {
	chkStatus();
	if(ie)document.all.zoom.style.visibility="visible"
	if(n)document.layers.zoom1.visibility="visible"
	if(ie) {
		document.all.zoom.style.color=color[0]
		document.all.zoom.style.fontFamily=font}
		go(0)	
}
function go(num) {
	gonum+=1
	size=10
	if (num<numText) {
		zoom(num,'go('+gonum+')')
	}else{
		fadeIt(0)
	}
}
/* --------------------------------------------------------------------
 *	form validation
 *
 * --------------------------------------------------------------------*/
function randomNum(max) {

  var rNum=NaN

  while (isNaN(rNum)) {

    rNum=Math.floor(Math.random()*(max))
  }
  return rNum
}
function clearFields1() //clears fields when yourself button is checked
{
	document.myform.txtHisName.value = "";
	document.myform.txtHerName.value = "";
	
	document.myform.txtFullName.focus();
}
function clearFields2() //clears fields when couple button is checked
{
	document.myform.txtFullName.value = "";
	
	document.myform.txtHisName.focus();
}
function valbutton(thisform) {
 myOption = -1;
  for (i=0; i< document.myform.myradiobutton.length; i++) 
  {
    if (document.myform.myradiobutton[i].checked)
	 {
      myOption = i;
	  }
  }
  if(myOption == -1 )
   {
    alert("You must select either Single or Couple ");
	}  
  else if(myOption == 0 && document.myform.txtFullName.value == "")
  	{	
		alert("Please enter your Full Name");
		document.myform.txtFullName.focus();		
		}
		else if(myOption == 1 && document.myform.txtHisName.value == "" && document.myform.txtHerName.value == "" )
			{
			alert("Please Enter Both Names");
			document.myform.txtHisName.focus();
			}
			else if(myOption == 1 && document.myform.txtHisName.value != "" && document.myform.txtHerName.value == "")
   	 		{		
			alert("Please Enter Both Names");
			document.myform.txtHerName.focus();
			}			
			else if(myOption == 1 && document.myform.txtHisName.value == "" && document.myform.txtHerName.value != "")
   			{ 
			alert("Please Enter Both Names");
			document.myform.txtHisName.focus();
			}   
	else
	{	
	init();
	}
}