<%@page contentType="text/html; charset=UTF-8"%>
<%@include file="/inc/init.jsp" %>
<%@include file="/inc/checklogin.jsp" %>
<%@include file="inc/header.jsp" %>
<div id="c">
<%@include file="inc/left.jsp" %>
<div id="right">
<%@include file="inc/position.jsp" %>
<div class="right">
<div id="right_box">
<script type="text/javascript">
    function checkform() {
        if(!document.form1.name.value) {
            alert('请填写公司名');
            document.form1.name.focus();
            return false;
        }
        if(!document.form1.introduce.value) {
            alert('请填写公司简介');
            document.form1.introduce.focus();
            return false;
        }
                return true;
    }
</script>
<form method="post" name="form1" action="/infomana"  onSubmit="return checkform();">
<input type="hidden" name="action" value="addcom" />
<div class="tags">
  <div id="tagstitle"> <a id="one1" onClick="setTab('one',1,20)" class="hover" href="#">添加公司</a> </div>
  <div id="tagscontent" class="right_box">
    <div id="con_one_1"  >
      <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table1">
        <tr>
          <td width="21%" align="right">公司名字</td>
          <td width="1%">&nbsp;</td>
          <td width="70%"><input type="text" name="name" id="name"  class="input" onblur="checkcomname(this.value)"/>
            <span class="tips"><span class="hotspot" onMouseOver="tooltip.show('添加公司名字');" onMouseOut="tooltip.hide();"><img src="skin/images/remind.gif" alt="" width="14" height="20" style="margin-left:10px; margin-right:5px; /" /></span></span><span id="companyname"></span></td>
        </tr>
        <tr>
          <td width="21%" align="right">公司简介 </td>
          <td width="1%">&nbsp;</td>
          <td width="70%">
          <textarea name="introduce" id="introduce" ></textarea><span class="hotspot" onMouseOver="tooltip.show('填写内容简介，如留空将自动截取内容中字符作为简介！');" onMouseOut="tooltip.hide();"><img src="skin/images/remind.gif" alt="" width="14" height="20"  style="margin-left:10px; margin-right:5px;"></span>
          </td>
        </tr>
        <tr>
          <td align="right">引用网站</td>
          <td>&nbsp;</td>
          <td><input type="text" name="reference" id="reference"  class="input"  /></td>
        </tr>
        <tr>
          <td align="right">引用网址</td>
          <td>&nbsp;</td>
          <td><input type="text" name="referurl" id="referurl"  class="input"  /></td>
        </tr>
      </table>
    </div>
  </div>
</div>
<input type="submit" name="submit" value=" 提交 " class="btn_a" />

</form>

<div class="clear"></div>
</div>
</div>

<div class="right_bottom">
</div>
</div>

<div id="footer">
</div>
</div>
<%@include file="inc/msg.jsp" %>
<%@include file="inc/footer.jsp" %>
