Customer Registration Script
<script type="text/JavaScript" language="JavaScript">
function DisplayLogName(name) {
var cookies=document.cookie;
var start = cookies.indexOf(name + "=");
var name = "";
var start1;
var end1;
var tmp;
var signed_in = -1;
if (start != -1) {
start = cookies.indexOf("=", start) +1;
var end = cookies.indexOf("|", start);
if (end != -1) {
signed_in = cookies.indexOf("|yes", start);
name = unescape(cookies.substring(start,end));
document.write("<b>" + name + "<\/b>");
if (signed_in != -1) {
document.write("<a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=3&storeid=[-- STORE.ID --]&html_reg=html\">[-- STORE.ViewEdit --]<\/a>");
document.write("<a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=4&storeid=[-- STORE.ID --]&html_reg=html\">[-- STORE.SignOut --]<\/a>");
}
else
{
document.write(" - You are no longer signed in<br>");
}
}
}
if (signed_in == -1) {
document.write("New Customer? <a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=1&storeid=[-- STORE.ID --]&html_reg=html\">[-- STORE.ToRegister --]<\/a>");
document.write("Returning Customer? <a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=2&storeid=[-- STORE.ID --]&html_reg=html\">[-- STORE.ToSignIn --]<\/a>");
}
}
DisplayLogName("[-- RegCookieName --]");
</script>
Need The Group A Customer Is Assigned To?
<script type="text/JavaScript">
function DisplayLogGroup(name) {
var cookies=document.cookie;
var start = cookies.indexOf(name + "=");
var name = "";
var start1;
var end1;
var tmp;
var signed_in = -1;
if (start != -1) {
start = cookies.indexOf("|", start) +1;
var end = cookies.indexOf("|", start);
if (end != -1) {
signed_in = cookies.indexOf("|yes", start);
group = unescape(cookies.substring(start,signed_in));
if ((signed_in != -1) && (group != "<none>")) {document.write(group);}
}
}
}
DisplayLogGroup("[-- RegCookieName --]");
</script>