var url=window.location.href;
if (url.substr(0, 10)!="http://www" && url.substr(0, 16)!="http://localhost") {
	window.location.replace(url.replace("http://", "http://www."));
};