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\">");
	drawinput("TEXT", "shopper_email", "Enter Email Address...", 20, 1, null," onfocus=\"if (focname == 0) { this.value=''; focname=1; }\" onblur=\"if (!this.value) { this.value='Enter Email Address...'; focname=0; }\"");
	//drawinput("TEXT","shopper_email","Enter Email Address...",14,1,null," onfocus=\"if (focname == 0) { this.value=''; focname=1; }\" onblur=\"if (!this.value) { this.value='Enter Email Address...'; focname=0; }\"");
	document.write("<br/><br/><input type=image src=\"assets/images/btnjoin.gif\" NAME=email > ");
	document.write("</form>");
}