focname = 0;
focname2 = 0;

function email_signup(){
	if (user_email == "") {
		document.write("<form class=\"emailform\" 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("<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\">");
	//document.write("<span class=\"EmailSignupText\">SIGN UP FOR NEW ARRIVALS AND MORE: </span>");
	drawinput("TEXT","shopper_email","Enter email",18,1,null," onfocus=\"if (focname == 0) { this.value=''; focname=1; }\" onblur=\"if (!this.value) { this.value='Enter email'; focname=0; }\"");
	//document.write("<input type=image src=\"assets/images/btngo.gif\" NAME=\"email\" class=\"emailbtn\"> ");
	document.write("<input type=submit value='Get In The Know!' NAME=\"email\" class=\"emailbtn\"> ");
	document.write("</form>");
}