<!--

startList = function()
{
	if(document.all&&document.getElementById)
	{
		navRoot = document.getElementById("nav");
		
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if(node.nodeName=="LI")
			{
				node.onmouseover=function()
				{
					this.className+=" over";
				}
				
  				node.onmouseout=function()
				{
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

window.onload=startList;

// Inserts price in a SPAN after Purchase

function insert_price()
{
	if(document.order_prod.price[document.order_prod.price.selectedIndex].value != "")
	{
		if(document.order_prod.price[document.order_prod.price.selectedIndex].text == "Preview")
		{
			document.getElementById('the_price').innerHTML = document.order_prod.price[document.order_prod.price.selectedIndex].value;
		}
		else
		{
			document.getElementById('the_price').innerHTML = "$" + document.order_prod.price[document.order_prod.price.selectedIndex].value;
		}
		
		document.order_prod.custom2.value = "( " + document.order_prod.price[document.order_prod.price.selectedIndex].text + " )";
	}
	else
	{
		document.getElementById('the_price').innerHTML = "";
		document.order_prod.custom2.value = "";
	}
}

// Go to URL...

function gotoURL(url)
{
	if(document.topics.sel_topic[document.topics.sel_topic.selectedIndex].value != "")
	{
		window.location = document.topics.sel_topic[document.topics.sel_topic.selectedIndex].value;
	}
}

// Form validator function

function form_validator(theForm)
{
	if (theForm.price[theForm.price.selectedIndex].value == "")
	{
		alert("Please choose pricing.");
		return (false);
	}
}

function form_validator_sb()
{
	if(document.type_prod.type_price[document.type_prod.type_price.selectedIndex].value == "-1" || document.type_prod.type_price[document.type_prod.type_price.selectedIndex].value == "-2")
	{
		alert("Please choose pricing.");
		return (false);
	}
}
//-->