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 style=\"margin-right: 10px; float:left;\">Stay Connected</span>");
	document.write("<table cellpadding=0 cellspacing=0><tr><td>");
	drawinput("TEXT","shopper_email","Enter Email Address",17,1,"Form-Field"," style=\"float:left;\" onfocus=\"if (focname == 0) { this.value=''; focname=1; }\" onblur=\"if (!this.value) { this.value='Enter Email Address'; focname=0; }\"");
	//document.write("<input type=image src=\"assets/images/RightArrow.gif\" NAME=\"email\" class=\"emailbtn\" style=\"border: 1px solid #000000; border-left: none; float:left;\"> ");
	
	document.write("</td><td>");
	
	  var browser2 = '';
	  browser2 = navigator.appName;
	  //checks IF browser is IE
	  if(browser2 == "Microsoft Internet Explorer")
	  {
		document.write('<input type="Image" Value="Find" src="assets/images/RightArrow.gif" alt="Sign Up" align="top" border="0" style="border: 1px solid black; border-left:none; padding-left:0px; margin-top:0px; margin-left:0px;padding-bottom:1px;background-color:#FFFFFF;">');
	  }
	  else
	  {
		document.write('<input type="Image" Value="Find" src="assets/images/RightArrow.gif" alt="Sign Up" align="top" border="0" style="border: 1px solid black; border-left:none; padding-left:0px; margin-top:0px; margin-left:0px;padding-bottom:1px;background-color:#FFFFFF;">');
	  }
	  document.write("</td></tr></table>");
	  
	  document.write("</form>");
}