var previd
		function NodeClick(id,type)
		{
			if (type == "P")
				{
					if (document.all.item('d' + id).style.display == "block")
						{
							document.all.item('d' + id).style.display = "none"
							document.all.item('i' + id).src = "Images/ResultView/plus.gif"
							NodeProcess(id,type)
							if (previd != "") {document.all.item(previd).style.backgroundColor=""}
							document.all.item('a' + id).style.backgroundColor="#dcdcdc"
							previd = 'a' + id
							
						}
					else
						{
							document.all.item('d' + id).style.display = "block"
							document.all.item('i' + id).src = "Images/ResultView/minus.gif"
							NodeProcess(id,type)
							if (previd != "") {document.all.item(previd).style.backgroundColor=""}
							document.all.item('a' + id).style.backgroundColor="#dcdcdc"
							previd = 'a' + id
						}
				}
			else
				{
					NodeProcess(id,type)
					if (previd != "") {document.all.item(previd).style.backgroundColor=""}
					document.all.item('a' + id).style.backgroundColor="#dcdcdc"
					previd = 'a' + id
				}
		}
		
		
		function NodeClick2(id,type)
		{
			if (type == "P")
				{
					if (document.all.item('d' + id).style.display == "block")
						{
							document.all.item('d' + id).style.display = "none"
							document.all.item('i' + id).src = "../Images/ResultView/plus.gif"
							NodeProcess(id,type)
							if (previd != "") {document.all.item(previd).style.backgroundColor=""}
							document.all.item('a' + id).style.backgroundColor="#dcdcdc"
							previd = 'a' + id
							
						}
					else
						{
							document.all.item('d' + id).style.display = "block"
							document.all.item('i' + id).src = "../Images/ResultView/minus.gif"
							NodeProcess(id,type)
							if (previd != "") {document.all.item(previd).style.backgroundColor=""}
							document.all.item('a' + id).style.backgroundColor="#dcdcdc"
							previd = 'a' + id
						}
				}
			else
				{
					NodeProcess(id,type)
					if (previd != "") {document.all.item(previd).style.backgroundColor=""}
					document.all.item('a' + id).style.backgroundColor="#dcdcdc"
					previd = 'a' + id
				}
		}
		function NodeProcess(id,type)
		{
		/*
			if (type == "P") 
				{
					alert("You Clicked a Parent and its Key is : " + id)
				}
			else
				{
					alert("You Clicked a Child and its Key is : " + id)
				}*/
		}