focname = 0;
focname2 = 0;

function email_signup(){
	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("<label for=\"shopper_email\">Mailing list:</label>");
	drawinput("TEXT","shopper_email","email address",16,1,"email",null);
	document.write("<input class=\"image\" type=\"image\" src=\"assets/images/tpt/btngo_email.gif\" NAME=\"email\" /> ");
	document.write("<input type=\"hidden\" name=target value=\"text_4.asp\" />");
	document.write("<input type=\"hidden\" name=s_id value=\"2\" />");
	document.write("<input type=\"hidden\" name=\"shopper_pref_3\" value=\"YES\" />");
	document.write("</form>");
}