var __cc_sys_url = "/Counter/"
/*
	COCOON Counter 6 1900 count.js
	Copyright(r) Cocoon Studio (www.ccopus.com)
	coding by Sunrise_Chen (sunrise_chen@msn.com)
	2003-12-19
	
	Please don't remove these information.
*/

//var __cc_uid = "username";
//var __cc_style = 18;

function cc6_readCookie(name){
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0){ 
    offset = document.cookie.indexOf(search);
    if (offset != -1){ 
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end))
    }
  }
  return cookieValue;
}

function cc6_writeCookie(name, value, hours){
  var expire = "";
  if(hours != null){
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire;
}


var __cc_visited = 1;
var __cc_cookies_name = 'cc_6_visited_site_'+__cc_uid;
if(cc6_readCookie(__cc_cookies_name).length<1){
	cc6_writeCookie(__cc_cookies_name,1);
	__cc_visited=0;
}
if(typeof(__cc_style)=="undefined") __cc_style=18;
var __cc_page = escape(location.href);
var __cc_ref = escape(document.referrer);
var __cc_Color = screen.colorDepth;
var __cc_Language = (navigator.systemLanguage?navigator.systemLanguage:navigator.language);
var __cc_sSize = screen.width + '_' + screen.height;
var __cc_count = __cc_sys_url 
			   + "core/default.asp" + "?id=" + __cc_uid
			   + "&l=" + __cc_Language + "&t=" + __cc_style
			   + "&p=" + __cc_page + "&r=" + __cc_ref
			   + "&s=" + __cc_sSize + "&c=" + __cc_Color
			   + "&v=" + __cc_visited
			   + "&z=" + (new Date()).getTimezoneOffset()/60;

//document.write(__cc_count);
document.write('<a href="'+__cc_sys_url+'supervise/index.asp?uid='+__cc_uid+'" target="_blank">'
	+ '<img src="'+__cc_count+'" width='+__cc_style+' height='+__cc_style+' alt="COCOON Counter 6" border=0 style="display:none;">'
	+ '</a>');

//End of count.js

//有善列印 Start

function DP() {
if (window.print)
{ 
var Div1 = document.getElementById("ContentTable").innerHTML; 

// *****************************************************
// Div1、Div2即為你在列印的區域
// 這裡根據你要列印的哪些內容，從原顯示頁面中用
// <div id=Div1>Div1....</div><div id=Div2>Div2...</div>
// 等標示出來,要列印多少項目就標示多少
// ***************************************************** 
var css = '<style type="text/css" media=all>' +
'p { line-height: 120%}' +
'.ftitle { line-height: 120%; font-size: 18px; color: #000000}' +
'td { font-size: 10px; color: #000000}' +
'</style>' ;
// *****************************************************
// 定義列印用的CSS，實現你想列印出什麼樣的格式全看你自己
// 了，但要注意：如果此處有什麼同網頁中不一致的，可能列印
// 出來的頁面同網頁格式、字體可能會有所不同
// ***************************************************** 

var body ='<table width="640" border="0" cellspacing="0" cellpadding="5">' +
' <tr> ' +
' <td class="fbody"> ' +
' <div align="center" class=ftitle>' + Div1 + '</div>' +
' </td>' +
' </tr>' +
'</table>';
// ******************************************************
// 在此處重新設定的列印格式，根據你的列印要求，將原顯示的
// 網頁的DIV內容重新群組合，可以根據你原來的表格內容，去掉
// 不要列印的，你也可以能下面定義的noprint忽略掉你不想打
// 印的東西，只呼叫你要列印的內容，但這樣被忽略掉的地方將
// 列印出空，不是很美觀。表格寬度要同列印的紙張寬度匹配。
// ****************************************************** 

document.body.innerHTML = css + body ;
// ******************************************************
// 重設document.body，列印文檔準備就緒
// ****************************************************** 

window.print();
window.history.go(0);
// ******************************************************
// 呼叫列印命令，列印當前窗口內容。當你列印時其實是一張新
// 的網頁了，但網頁檔案還是原先的。緊接著呼叫
// window.history.go(0)，再回到列印前的頁面，效果相當不差
// ******************************************************
}
}

