Online Store

Tee-On Golf Systems Inc.

Copyright © Tee-On Golf Systems Inc. All rights reserved

function getParameterByName(name, url) {
if (!url) {
url = window.location.href;
}
if (url.indexOf(name) == -1) {
url = document.referrer;
}
name = name.replace(/[\[\]]/g, “\\$&”);
var regex = new RegExp(“[?&]” + name + “(=([^&#]*)|&|#|$)”),
results = regex.exec(url);
if (!results) return ”;
if (!results[2]) return ”;
return decodeURIComponent(results[2].replace(/\+/g, ” “));
}
document.getElementById(“TeeOnLogin”).src = document.getElementById(“TeeOnLogin”).src + “&LandingPageName=”+encodeURIComponent(getParameterByName(“LandingPageName”));