// Formular nach https://secure-nidau.format-ag.ch... umleiten

var domain = "nidau.ch";

var domainname = domain.substring(0,domain.indexOf("."));
var securedomain = "secure-"+domainname+".format-webagentur.ch";

var url = location.href.toLowerCase();
var pos = url.indexOf("http://");
if(pos!=-1){
	var path = "https://"+securedomain+url.substring(location.protocol.length+2+location.host.length);
	//document.write(path);
	window.location.href = path;
}

