function joinMailList(_tp){
		var _itm = document.getElementById("MAILLIST_EMAIL");
			if(_itm.value!='Your Email...' && _itm.value!=''){
			window.open("maillist.php?email="+_itm.value+"&tp="+_tp, "newwin", "top=150, left=150, toolbars=no, scrollbars=auto, menubar=no, width=350, height=300");
			}else{
			alert("請填寫您的Email");
			_itm.value='';
			_itm.focus();
		}
}

function mailListInclude(query){
  document.write("<table width=\"211\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
  document.write("  <tr>");
  document.write("    <td height=\"40\" colspan=\"3\">");
  document.write("  <input type=\"text\" id=\"MAILLIST_EMAIL\" onclick=\"this.value='';\" value=\"請輸入您的電子郵件\" style=\"width:211px; height:16px; color:#3f9f90\" />");
  document.write("	  </td>");
  document.write("  </tr>");
  document.write("  <tr>");
  document.write("    <td width=\"100\" align=\"right\"><input type=\"image\" name=\"imageField2\" id=\"imageField2\" src=\"images/sub"+query+".gif\" onclick=\"javascript:joinMailList(1);\" /></td>");
  document.write("    <td width=\"11\"></td>");
  document.write("    <td width=\"100\" align=\"left\"><input type=\"image\" name=\"imageField3\" id=\"imageField3\" src=\"images/reset"+query+".gif\" onclick=\"javascript:joinMailList(0);\" /></td>");
  document.write("  </tr>");
  document.write("</table>");
}