

//this function switches the location the website. 
//takes in the id of the <select> tag as well as the string of the current location of the website
function locationSwitch(locationTag, defaultLocation)
{
	location_element = document.getElementById(locationTag);
	if(location_element.value == "AUS" && location_element.value != defaultLocation )
	{
		 window.location="http://www.legrandsoftware.com.au/";
	}
	if (location_element.value =="USA")
	{
		window.location="http://www.legrandcrm.com/";
	}
	if (location_element.value =="Europe")
	{
		window.location="http://www.legrandcrm.co.uk/";
	}
}


function PageSwitch(hop_to)
{
	location_element = document.getElementById(hop_to);
	
	switch (location_element.value)
	{
	case "VIDEO" :
	window.location="videoclips.aspx";
	break
	
	case "CASE" :
	window.location="case_studies.aspx";
	break
	
	case "CUST" :
	window.location="contact_management.aspx";
	break
	
	case "SALES" :
	window.location="sales_management.aspx";
	break
	
	case "SERV" :
	window.location="customer_service_module.aspx";
	break
	
	case "OUTLOOK" :
	window.location="outlook.aspx	";
	break

	case "BUY" :
	window.location="legrand_partners.aspx";
	break
	
	case "JOIN" :
	window.location="legrand_partner_enquiry.aspx";
	break
	}
}
