
function email_signup(){
//open table background color controlled by style .EmailSignup
document.write("<table border=0  width=150 cellspacing=0 cellpadding=2>");
//text above form field 
document.write("<tr><td align=\"right\" class=\"EmailSignup\">Get updates on the latest offers and events</td></tr><tr valign=\"bottom\">");

if (user_email == "") {
document.write("<form name=\"surveynew\" method=\"POST\" action=\"shopper_new.asp\">");
document.write("<input type=\"hidden\" name=shopper_country value=\"USA\">");
document.write("<input type=\"hidden\" name=\"Validate\" value=\"1\">");
} else {
var AUTO_email = user_email.substring(0,user_email.lastIndexOf("_"));
	if (AUTO_email=="AUTO"){
	document.write("<form name=\"surveynew\" method=\"POST\" action=\"shopper_new.asp\">");
	document.write("<input type=\"hidden\" name=shopper_country value=\"USA\">");
	document.write("<input type=\"hidden\" name=\"Validate\" value=\"1\">");
	}else{
document.write("<form name=\"surveynew\" method=\"POST\" action=\"shopper_unsubscribe.asp\">");
	}
}
document.write("<td align=right><input type=\"hidden\" name=target value=\"text_4.asp\">");
document.write("<input type=\"hidden\" name=s_id value=\"0\">");
document.write("<input type=\"hidden\" name=\"shopper_pref_1\" value=\"YES\">");

/* drawinput in uu_shop.js if need to modify 
* vars in order are:  type,name,value,size (or width) ,target,iclass (set class from style sheet * here),selected) here created style class emlForm MUST BE IN QUOTES */
drawinput("TEXT","shopper_email","",14,1,"emlFORM",null);
document.write("</td></tr><tr><td align=right>");
//document.write("<img src=\"assets/images/btn_eml_bball.gif\" onMouseOut=\"this.src='assets/images/btn_eml_bball.gif'; return true;\" height=\"23\" width=\"73\"  onMouseOver=\"this.src='assets/images/btn_eml_bball_over.gif'; return true;\" NAME=email align=\"right\"   style=\"cursor:pointer;\">");
document.write("<input type=image src=\"assets/images/btn_eml_bball.gif\" NAME=email>");
//close table
document.write("</td></form></tr></table>");
}