function getValue(x)
{

	if (x.value=="Go")
	{
		if (document.quiz.username.value=="")
		{
			alert("Enter username...")
			return false
		}
		else if (document.quiz.password.value=="")
		{
			alert("Enter Password...")
			return false
		}
	}

	if (x.name=="addmore" )
	{
		if (document.quiz.query.value=="")
			{
			 	alert("Enter Question..")
				document.quiz.query.focus()
				return false
				}
		else if(document.quiz.choice1.value=="")
			{
			 	alert("Enter First choice..")
				document.quiz.choice1.focus()
				return false
				}
		else if(document.quiz.choice2.value=="")
			{
			 	alert("Enter Second choice..")
				document.quiz.choice2.focus()
				return false
				}
		else if(document.quiz.choice3.value=="")
			{
			 	alert("Enter Third choice..")
				document.quiz.choice3.focus()
				return false
				}
		else if(document.quiz.choice4.value=="")
			{
			 	alert("Enter Fourth choice..")
				document.quiz.choice4.focus()
				return false
				}
	}

	if (x.name=="continue")
	{
			 if(document.quiz.qtitle.value=="")
			{
			 	alert("Enter Title..")
				document.quiz.qtitle.focus()
				return false
				}
		else if(document.quiz.categories.value=="")
			{
			 	alert("Select Category..")
				document.quiz.categories.focus()
				return false
				}
		else if(document.quiz.description.value=="")
			{
			 	alert("Enter Description..")
				document.quiz.description.focus()
				return false
				}

	}



	document.quiz.action="quiz.asp?event1=" + x.name

	if (x.type=="button")
	//if (x.value=="Go" || x.name=="enterQuery")
		document.quiz.submit()

}

function getPage(x)
{
	//alert("hi")
	//alert(document.quiz.getevent.value)
	document.quiz.pageno.value=x
	document.quiz.action="quiz.asp?event1=" + x
	document.quiz.submit()
}

function searchVal(x)
{
	document.quiz.action="quiz.asp?event1=" + x.name
	document.quiz.submit()
}
function getLinkVal(x)
{
	document.quiz.action="quiz.asp?event1=fire&subevent=" + x.id
	document.quiz.submit()
}
function getCategoryVal(x)
{
	document.quiz.action="quiz.asp?event1=category&subevent=" + x.id
	document.quiz.submit()
}
function getFameVal(x)
{
	document.quiz.action="quiz.asp?event1=fame"
	document.quiz.submit()
}
function getMemberVal(x)
{
	document.quiz.action="quiz.asp?event1=member&subevent=" + x.id
	document.quiz.submit()
}

function getLinkValEdit(x)
{
	document.quiz.action="quiz.asp?event1=editmyquiz&subevent=" + x.id
	document.quiz.submit()
}
function getLink(x)
{
	document.quiz.action="quiz.asp?event1="+x.id
	document.quiz.submit()
}
function changeColor(x)
{
	x.style.color="red"
}
function changeColor1(x)
{
	x.style.color="purple"
}
function changeColorSignin(x)
{
	x.style.color="red"
}
function changeColorSignin1(x)
{
	x.style.color="#27271B"
}

function buttonColor1(x)
{
	x.style.backgroundColor="#00CD66"
}
function buttonColor(x)
{

	x.style.backgroundColor="yellow"
}
function passValue(x)
{
	document.quiz.action="quiz.asp?event1=" + x.name
	document.quiz.answerval.value=x.id
}
function dobirth(x)
{
	//alert(x.name)
//alert(form1.monthname.value + "/" + form1.dayname.value + "/" + form1.yearname.value)
	document.quiz.dob.value=document.quiz.monthname.value+"/"+document.quiz.dayname.value+"/"+document.quiz.yearname.value
	document.quiz.action="quiz.asp?event1=" + x.name
	document.quiz.submit()
	//alert(quiz.action)
}
function getImage(x)
{
	document.quiz.action="quiz.asp?event1="+x
	document.quiz.submit()
}
function openwin()
{
		window.open ("help.htm","xyz",'scrollbars=yes,resizable=no,width=500,height=450,left=10,top=10')

}