﻿var myUrl = window.location;
var parsedUrl = parser(myUrl);

function parser(myUrl) {
	//return myUrl.match(/[^.]*\.com/); //<< "myUrl.match is not a function" in FireFox 3.6
	return /[^\/]*\.com/.exec(myUrl);
}

// redirect to gerbing.com if a different name is used to reach our site
if ((parsedUrl != 'gerbing.com') && (parsedUrl != 'local.gerbing.com') && (parsedUrl != 'military.gerbing.com')) {
	window.location = 'http://gerbing.com';
}
