//加入收藏夹( onclick="javascript:AddFavorite('http://www.domain.cn/', 'sitename');return false")
function AddFavorite(sURL, sTitle) {
     try {
         window.external.addFavorite(sURL, sTitle);
     }
     catch (e) {
         try {
             window.sidebar.addPanel(sTitle, sURL, "");
         }
         catch (e) {
             alert("加入收藏失败，有劳您手动添加。");
         }
     }
}

//输出日期(调用PageDate()即可)
function PageDate() {
	currentDate = new Date()
	with (currentDate) {
		day=getDay()
		month=getMonth()+1
		this.document.classname="sj"
		this.document.write(getFullYear()+'年'+month+'月'+getDate()+'日')
	}
	if (day==1){document.write('   星期一')}
	if (day==2){document.write('   星期二')}
	if (day==3){document.write('   星期三')}
	if (day==4){document.write('   星期四')}
	if (day==5){document.write('   星期五')}
	if (day==6){document.write('   星期六')}
	if (day==0){document.write('   星期日')}
}

//输出swf动画
function Swfshow(strURL,intWidth,intHeight)
  {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="'+intWidth+'" height="'+intHeight+'">');
  document.write('<param name="movie" value="'+strURL+'">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="WMode" value="Transparent" />');
  document.write('<!--[if !IE]> <-->');
  document.write('<object data="'+strURL+'" width="'+intWidth+'" height="'+intHeight+'" type="application/x-shockwave-flash">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="WMode" value="Transparent" />');
  document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
  document.write('FAIL (the browser should render some flash content, not this).');
  document.write('</object>');
  document.write('<!--> <![endif]-->');
  document.write('</object>');
  }