﻿function qstring(key) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == key) {
var tPhone = ft[1];
var tMod = "(" + tPhone.substr(0,3) + ") " + tPhone.substr(3,3) + " - " + tPhone.substr(6,4);
return tMod;
}
}
}

function qstringvalue(key) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == key) {
return ft[1];
}
}
return "empty";
}

