function switchUrl() {
	var url= window.location.href;
	var remove = 'http://extranet.ch.sauter-bc.com/';
    var newurl = url.replace(remove, 'https://extranet.ch.sauter-bc.com/');
	if (window.location.href != newurl){
		window.location.href=newurl; 
	}
}

/*
redirects optins from form to NSO URL
*/
function country_redirect() {
	//Belgien
	if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 1)
	{
	window.open('http://www.sauter-controls.com/de/lebensraum-sauter/unternehmen-sauter/kontakt/europa/belgien.html');
	return false;
	}
	//Deutschland
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 2)
	{
	window.open('http://www.sauter-cumulus.de');
	return false;
	}
	//Frankreich
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 3)
	{
	window.open('http://www.sauter.fr');
	return false;
	}
	//Grossbritannien
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 4)
	{
	window.open('http://www.sauterautomation.co.uk');
	return false;
	}
	//Italien
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 5)
	{
	window.open('http://www.sauteritalia.it');
	return false;
	}
	//Niederlande
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 6)
	{
	window.open('http://www.sauter-controls.nl');
	return false;
	}
	//Österreich
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 7)
	{
	window.open('http://www.sauter-controls.at');
	return false;
	}
	//Polen
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 8)
	{
	window.open('http://www.sauter.pl');
	return false;
	}
	//Rumänien
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 16)
	{
	window.open('http://www.sauter-control.ro');
	return false;
	}
	//Schweden
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 9)
	{
	window.open('http://www.sauter.se');
	return false;
	}
	//Schweiz
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 10)
	{
	window.open('http://www.sauter-building-control.ch');
	return false;
	}
	//Serbien
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 11)
	{
	window.open('http://www.sauter.co.rs/sr.html');
	return false;
	}
	//Slowakei
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 12)
	{
	window.open('http://www.sauter.sk');
	return false;
	}
	//Spanien
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 13)
	{
	window.open('http://www.sauteriberica.com');
	return false;
	}
	//Tschechische Republik
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 14)
	{
	window.open('http://www.sauter.cz');
	return false;
	}
	//Ungarn
	else if ((window.document.country_selection.country.options[window.document.country_selection.country.selectedIndex].value) == 15)
	{
	window.open('http://www.sauter.hu');  
	return false;
	}
}

