var errmsg;
tablestr=' class=td4 align=center cellspacing=0 cellpadding=1 border=1 bordercolorlight=#DF961C bordercolordark=#FCF3E4';
function table(w) {if(!w)w=600; document.write('<table width='+w+tablestr+'>');}
function head_form(caption,Title,SvrName,fw,adv) {
var s468="<iframe id='abba0213' name='abba0213' src='http://ads.mychat.to/adframe.php?n=abba0213&amp;what=zone:86&amp;target=_blank' framespacing='0' frameborder='no' scrolling='no' width='468' height='60'><a href='http://ads.mychat.to/adclick.php?n=abba0213' target='_blank'><img src='http://ads.mychat.to/adview.php?what=zone:86&amp;target=_blank&amp;n=abba0213' border='0' alt=''></a></iframe>";
//var s120="<iframe id='a763d8da' name='a763d8da' src='http://ads.mychat.to/adframe.php?n=a763d8da&amp;what=zone:87&amp;target=_blank' framespacing='0' frameborder='no' scrolling='no' width='120' height='60'><a href='http://ads.mychat.to/adclick.php?n=a763d8da' target='_blank'><img src='http://ads.mychat.to/adview.php?what=zone:87&amp;target=_blank&amp;n=a763d8da' border='0' alt=''></a></iframe>";
//var s120="<a href=http://mychat.to/free_link.php?sm=fate&ID=ncc><img src=http://mychat.to/image/dm-freelink_ncc.gif border=0 width=120 height=60>";
var s120="<a href=http://bbs.mychat.to target=bbs><img src=http://mychat.to/image/ads_bbs_120x60.gif border=0 width=120 height=60>";
if (!fw) fw='www';
if (fw=='seednet') {
	document.write("<table width=700 border=0 cellspacing=0 cellpadding=0 align=center height=30>"+
" <tr valign=middle> "+
"   <td width=40><img src=http://www.seed.net.tw/image/seednet/line-45.gif width=40 height=3></td>"+
"   <td width=200><a href=http://www.digitalunited.com/><img src=http://www.seed.net.tw/image/seednet/top-english.gif width=60 height=15 border=0 alt=English Version></a><a href=http://www.seed.net.tw/du/chinadata/du/du_1.shtml><img src=http://www.seed.net.tw/image/seednet/top-gb.gif width=60 height=15 alt=簡體網頁 border=0></a><a href=# onClick=this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.seed.net.tw')><img src=http://www.seed.net.tw/image/seednet/top-home.gif width=80 height=15 border=0 alt=設Seednet為首頁></a></td>"+
"   <td width=320><img src=http://www.seed.net.tw/image/seednet/line-320.gif width=320 height=3></td>"+
"   <td width=140 align=right><font class=seednet1> ");
	var RightNow = new Date();             
	var day = RightNow.getDay()+1;             
	var daystring="日一二三四五六";             
	document.write(RightNow.getFullYear() +"年"+ (RightNow.getMonth()+1)+ "月" + RightNow.getDate() + "日" +"星期"+daystring.substring(day-1,day));             
	document.write("</tr>"+
"</table>"+
"<table width=700 border=0 cellspacing=0 cellpadding=0 align=center>"+
"  <tr> "+
"    <td width=105 valign=top><a href=http://www.seed.net.tw/><img src=http://www.seed.net.tw/image/seednet/logo.gif width=100 height=60 border=0 alt=Seednet首頁></a></td>"+
"    <td width=475><iframe src='http://www.ncc.com.tw/fate/seed468.htm' framespacing='0' frameborder='no' scrolling='no' width='468' height='60'><a href='http://ads.mychat.to/adclick.php?n=aa5f9e53'><img src='http://ads.mychat.to/adview.php?what=zone:86&amp;n=aa5f9e53' border='0' alt='' width='468' height='60'></a></iframe></td>"+
"    <td width=120><iframe src='http://www.ncc.com.tw/fate/seed120.htm' framespacing='0' frameborder='no' scrolling='no' width='120' height='60'><a href=http://mychat.to/free_link.php?sm=fate&ID=ncc><img src=http://mychat.to/image/dm-freelink_ncc.gif border=0 width=120 height=60></iframe></td>"+
"  </tr>"+
"</table><br>");
}
else{
	if(!adv) document.write("<table border=0 cellpadding=1 cellspacing=0 align=center height=60>"+
		"<tr><td valign=top>"+s468+"</td><td valign=top>"+s120+"</td></tr></table>");
	document.write("<table border=0 cellspacing=2 cellpadding=0 align=center>"+
"  <tr><td align=center>"+
"<table border=0 cellspacing=0 cellpadding=0 align=center background=/image/topmenu-fate.gif width=591 height=26>"+
"  <tr><td align=center><table width=95% "+tablestr+">"+
"  <tr align=center>"+
"  <td class=td0><font color=#FF9900>●</font> <A HREF=http://"+fw+".ncc.com.tw/ target=_top>回首頁</a></td>"+
"  <td class=td0><font color=#FF9900>●</font> <A HREF=http://"+fw+".ncc.com.tw/soft/ target=_top>軟體服務</a></td>"+
"  <td class=td0><font color=#FF9900>●</font> <A HREF=http://"+fw+".ncc.com.tw/book/ target=_top>網路書店</a></td>"+
//"  <td class=td0><font color=#FF9900>●</font> <A HREF=http://"+fw+".ncc.com.tw/fates/ target=_top>命理出租</a></td>"+
"  <td class=td0><font color=#FF9900>●</font> <A HREF=http://mychat.to/ target=_top>MyChat</a></td>"+
"  <td class=td0><font color=#FF9900>●</font> <A HREF=http://bbs.mychat.to/ target=_top>數位男女</a></td>"+
"  <td class=td0><font color=#FF9900>●</font> <A HREF=http://ncc.to/ target=_top>虛擬主機</a></td>"+
"  </tr>"+
"</table></td></tr></table></td></tr></table>");
}

document.write("<table width=600 border=0 cellspacing=0 cellpadding=0 align=center>"+
"  <tr>"+
"    <td><img src=/image/lu_fate600.gif width=600 height=9></td>"+
"  </tr>"+
"</table>");

if (caption) {
	document.write("<table width=600 cellpadding=0 "+tablestr+"><tr><th class=td2 align=center background=/image/bg_fate.gif>");
	if (SvrName) document.write(SvrName+' - ');
	if (Title) document.write(Title+' ');
	document.write(caption+"</th></tr></table>");
}
}

function floor_form(nofate,fw) {
var s="<a href=http://mychat.to/user_mgr_paypoint.php?ID=ncc&sm=fate>購買點數</a> | <a href=http://mychat.to/order_safe.php?sm=fate>交易安全</a> | <a href=http://mychat.to/order_rule.php?sm=fate>劃撥或匯款</a> | <a href=http://mychat.to/order.php?sm=fate>線上刷卡</a> | <a target=_blank href=http://mychat.to/ecar.php?ID=nc target=main>查看購物車</a><br><font color=#0000FF><a href=http://"+fw+".ncc.com.tw/ target=_blank>NCC Software Company</a></font> Copyright (C) 1993 - 2004 <font color=#FF0000>All rights reserved</font><br>星僑軟體 服務信箱：<a href=mailto:service@ncc.com.tw>service@ncc.com.tw</a> 電話:03-3288833 傳真:03-3286557";
if (nofate!=1) document.write("<table width=600 "+tablestr+"><tr>"+
"    <th class=td2 colspan=3 background=http://"+fw+".ncc.com.tw/image/bg_fate.gif>線上論命服務項目</th>"+
"  </tr>"+
"  <tr align=center>"+
"  <td class=td2 colspan=3><table width=100%><tr align=center class=td3>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=ba>論本命</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=lo>論愛情</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=mo>論財運</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=wo>論工作</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=st>論學業</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=tr>論旅遊</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=ch>論子女</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=he>論健康</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=ho>論合夥</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?C=ks>論官事</a></td>"+
"    </tr><tr align=center class=td3>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?N=bg>八字論命</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?N=gv>紫微論命</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/ml.php?N=name>姓名論命</a></td>"+
"    <td><a href=http://mychat.to/s.php?kklm=ncc&ID=ncc>鬼谷論命</a></td>"+
"    <td><a href=http://mychat.to/s.php?sslm=ncc&ID=ncc>三世論命</a></td>"+
"    <td><a href=http://mychat.to/s.php?stlm=ncc&ID=ncc>先天論命</a></td>"+
"    <td><a href=http://mychat.to/s.php?bmds=ncc&ID=ncc>卜命大師</a></td>"+
"    <td><a href=http://mychat.to/s.php?dmej=ncc&ID=ncc>達摩一掌金</a></td>"+
"    <td><a href=http://mychat.to/s.php?bgcg=ncc&ID=ncc>八字秤骨</a></td>"+
"    <td><a href=http://"+fw+".ncc.com.tw/fate/main.php>命理大廳</a></td>"+
"  </tr></table></td> "+ 
"  </tr>"+
"</table>");

if (fw=='seednet') 
	document.write("<table width=600 border=0 cellspacing=0 cellpadding=0 align=center>"+
"  <tr>"+
"    <td><img src=/image/ld_fate600.gif width=600 height=9></td>"+
"  </tr>"+
"</table>"+  
"<p align=center>"+
"<table width=700 border=0 cellspacing=0 cellpadding=0 align=center>"+
"  <tr><td><img src=http://www.seed.net.tw/image/seednet/line-700.gif width=700 height=15></td></tr>"+
"  <tr><td align=center><font class=seednet1><a href=http://www.seed.net.tw/ad.shtml>廣&nbsp;告&nbsp;刊&nbsp;登</a>∣<a href=http://www.seed.net.tw/structure/>網&nbsp;路&nbsp;建&nbsp;設</a>∣<a href=http://www.seed.net.tw/seed_diary/>新&nbsp;聞&nbsp;室</a>∣<a href=http://www.seed.net.tw/du/>關&nbsp;於&nbsp;我&nbsp;們</a>∣<a href=http://service.seed.net.tw/center/>區&nbsp;中&nbsp;心&nbsp;介&nbsp;紹</a>∣<a href=http://www.seed.net.tw/du/interview.shtml>徵&nbsp;工&nbsp;作&nbsp;夥&nbsp;伴</a>∣<a href=http://www.seed.net.tw/privacy.shtml>隱&nbsp;私&nbsp;權&nbsp;政&nbsp;策</a>∣<a href=http://www.seed.net.tw/sitemap/sitemap.shtml>網&nbsp;站&nbsp;地&nbsp;圖</a></font></td></tr>"+
"  <tr><td><img src=http://www.seed.net.tw/image/seednet/line-700.gif width=700 height=15></td></tr>"+
"  <tr><td align=center height=30><a href=http://www.digitalunited.com/><img src=http://www.seed.net.tw/image/seednet/du-inc.gif width=176 height=16 border=0></a></td></tr>"+
"  <tr> "+
"    <td align=center><font class=seednet1>24小時客服專線：4050-9000<br>"+
"      網頁建議使用IE 4.0以上版本800*600解析度瀏覽<br>"+
"      Copyright&copy; 2002 Digital United Inc. All rights reserved.</font></td>"+
"  </tr>"+
"</table>");
else document.write("<table width=600 "+tablestr+">"+
"<tr>"+
"  <td class=td2 align=center background=/image/bg_fate.gif><font color=#00376F size=-1>"+s+"</font></td>"+
"  </tr>"+
"</table>"+
"<table width=600 border=0 cellspacing=0 cellpadding=0 align=center>"+
"  <tr>"+
"    <td><img src=/image/ld_fate600.gif width=600 height=9></td>"+
"  </tr>"+
"</table>"+  
"<p align=center>");
if(errmsg) alert(errmsg);
}
