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("<table border=\"0\"><tr valign=\"bottom\"><td valign=\"bottom\" align=\"left\" colspan=\"2\">");
	document.write("<label for=\"shopper_email\"><span class=\"first\">JOIN OUR EMAIL LIST FOR EXCLUSIVE OFFERS &#38; EVENTS</label>");
	document.write("<br>");
	document.write("<img src=\"assets/images/spacer.gif\" border=\"0\" height=\"3\" width=\"1\">");
	document.write("<br>");
	document.write("</td></tr><tr valign=\"bottom\"><td valign=\"bottom\" align=\"left\" width=\"50\">");	
// test - eric rimkus	
	drawinput("TEXT","shopper_email","&nbsp;Enter email",55,1,"Form-Field"," valign=\"top\" id=\"search_freetext\" onfocus=\"if (focname == 0) { this.value=''; focname=1; }\" onblur=\"if (!this.value) { this.value='&nbsp;Enter email'; focname=0; }\"");
	
	document.write("</td><td valign=\"bottom\" align=\"left\">");
	document.write("<img src=\"assets/images/spacer.gif\" valign=\"bottom\" border=\"0\" height=\"1\" width=\"9\">");	
	document.write("<input class=\"image\" valign=\"bottom\" type=\"image\" src=\"Assets/images/bobbyjones/buttons/btngo2.gif\" name=\"email\" class=\"emailbtn\" />");
	
	document.write("<img src=\"assets/images/spacer.gif\" valign=\"bottom\" border=\"1\" height=\"1\" width=\"98\">");	
	
	document.write("</tr></table>");
	document.write("</form>");
}