


function moveTo(panelNumber) {

// panelWidth is the width of each panel as defined in wizard.css
	var panelWidth = 650 ;

	panelSlide = panelNumber * panelWidth * -1;
	
    
	jQuery().find("div.panelContainer").animate({ left: panelSlide}, 750, "expoinout");
}

function valbutton(thisform) {

	myOption = -1;
	for (i=thisform.radios.length-1; i > -1; i--) {
		if (thisform.radios[i].checked) {
			myOption = i; i = -1;
		}
	}
	
	if (myOption == -1) {
		alert("Please make a choice");
		return false;
	}
	
	if (thisform.name == "haveSite") {
	
		if(thisform.radios[myOption].value == "yes") 
			moveTo(2);
		
		else 
			moveTo(1);
	
	} 
	

	if (thisform.name == "userNeeds") {

		if(thisform.radios[myOption].value == "beginner") 
			
			moveTo(3);
		
		else if (thisform.radios[myOption].value == "advanced")
		 
			moveTo(4);
			
		else if (thisform.radios[myOption].value == "sell")
		 
			moveTo(5);
			
		else 
			moveTo(6);
	
	
	}
	
	if (thisform.name == "upgradeSite") {

		if(thisform.radios[myOption].value == "sell") 
			
			moveTo(7);
		
		else if (thisform.radios[myOption].value == "traffic")
		 
			moveTo(8);
			
		else 
			moveTo(9);
	
	
	}
} 
	
	function chooseBusiness(thisform) {
		 var optionNumber = thisform.businessType.selectedIndex;
		 var businessURLs = new Array();
		 

		 businessURLs[1] = "http://www.networksolutions.com/professional-services/healthcare/";
		 businessURLs[2] = "http://www.networksolutions.com/professional-services/lawyers-consultants/";
		 businessURLs[3] = "http://www.networksolutions.com/professional-services/other/";
		 businessURLs[4] = "http://www.networksolutions.com/non-profit/community/";
		 businessURLs[5] = "http://www.networksolutions.com/non-profit/sports/";
		 businessURLs[6] = "http://www.networksolutions.com/non-profit/social-services/";
		 businessURLs[7] = "http://www.networksolutions.com/non-profit/charities/";
		 businessURLs[8] = "http://www.networksolutions.com/non-profit/religious/";
		 businessURLs[9] = "http://www.networksolutions.com/non-profit/local-government/";
		 businessURLs[10] = "http://www.networksolutions.com/non-profit/other/";
		 businessURLs[11] = "http://www.networksolutions.com/retail/other/";
		 businessURLs[12] = "http://www.networksolutions.com/e-commerce/";
		 businessURLs[13] = "http://www.networksolutions.com/business-solutions/retail-referee.jsp";
		 businessURLs[14] = "http://www.networksolutions.com/service-providers/home-improvement/";
		 businessURLs[15] = "http://www.networksolutions.com/service-providers/travel-dining/";
		 businessURLs[16] = "http://www.networksolutions.com/service-providers/personal-services/";
		 businessURLs[17] = "http://www.networksolutions.com/service-providers/entertainment/";
		 businessURLs[18] = "http://www.networksolutions.com/service-providers/business-services/";
		 businessURLs[19] = "http://www.networksolutions.com/service-providers/general/";
		 businessURLs[20] = "http://www.networksolutions.com/real-estate/agents/";
		 businessURLs[21] = "http://www.networksolutions.com/real-estate/property-managers/";
		 businessURLs[22] = "http://www.networksolutions.com/real-estate/other/";
		 

		if(optionNumber > 0)
			
			document.location = businessURLs[optionNumber];
		
		else 
		
			alert('Please choose your type of business');
		

		
	}

	function startOver() {
	
		moveTo(0);
	}
		



