// JScript 檔
<!--

function popWin(link, w, h){  
   var winObject=null;	
   var fw = (screen.width-w)/2;
   var fh = (screen.height-h)/2;  
       winObject=window.open(link,'','scrollbars=1,width='+ w +',height='+ h +',top='+fh+',left='+fw);	
}

function PrintWin(){
	var winObject=null;	
    winObject=window.open ("management/PrintPage.htm",'','scrollbars=yes,resizable=yes,menubar=yes,status=yes,width=780,height=500,top=0,left=0');	
}

//切換頁籤
function changeTab0(obj, max){
	var i;
	for(i=1;i<=max;i++){
		if(obj==i){						
			document.all("Tab0"+ i).className = "tag_bg1";
		
		}else{
			document.all("Tab0"+ i).className = "tag_bg0";
		
		}
	}
}

//切換頁籤
function changeTab(obj, max){
	var i;
	for(i=1;i<=max;i++){
		if(obj==i){						
			document.all("Tab"+ i).className = "tag_bg1";
			document.all("LblContent"+ i).style.display = "block";
		}else{
			document.all("Tab"+ i).className = "tag_bg0";
			document.all("LblContent"+ i).style.display = "none";
		}
	}
}

//不Reload執行
function ReceivedData(dat, content){
	//alert(dat);
	document.all.tbes.innerHTML = dat;
}

//不Reload執行
function ReceivedAttach(dat, content){
	//alert(dat);
	document.all.atcs.innerHTML = dat;
}

function PicPreview(obj, thisUrl, ext){	
	if(ext=="swf"){
	}else{
		obj.src = "Att/" + thisUrl;		
		obj.style.width = "110px";			
	}
}



//-->

