function SelCaseID(sObjValue, sObjText)
{
	var hd = 250;
	var wd = 550;
	var tt=(screen.height-hd)/2;
	var ll=(screen.width-wd)/2;
	var winn=window.open("/Tools/SelCaseID.asp?ObjValue="+sObjValue+"&ObjText="+sObjText, "SelCaseID","scrollbars=yes,resizable=yes,status=no,width="+wd+",height="+hd+",top="+tt+",left="+ll);
	winn.focus();
	return false;
}

function HemlEdit(pt,MenuPath) {
   wd=600;
   hd=450;
   tt=(screen.height-hd)/2;
   ll=(screen.width-wd)/2;
   winn=window.open("/manage/HtmlEdit/main.asp?parent="+pt+"&MenuPath="+MenuPath,"","scrollbars=yes,resizable=yes,status=no,width="+wd+",height="+hd+",top="+tt+",left="+ll);
   winn.focus();
   return false; 
}

function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}

function nwin(turl,wd,hd) {
   tt=(screen.height-hd)/2;
   ll=(screen.width-wd)/2;
   winn=window.open(turl,"","scrollbars=yes,resizable=yes,status=no,width="+wd+",height="+hd+",top="+tt+",left="+ll);
   winn.focus();
   return false;
}

function chkall(boxname)
{
  var e=document.inbox.elements;
  for (var i=0;i<e.length;i++)
  {
	if (e[i].name==boxname) e[i].checked=document.inbox.allbox.checked;
  }
}

function selall(sc) {
   for (var i=0;i<=sc;i++) {
      whichEl = eval("submenu" + i);
      if (whichEl.style.display == "none") {
          eval("submenu" + i + ".style.display=\"\";");
      }
      else {
          eval("submenu" + i + ".style.display=\"none\";");
      }
   }
}

function mov(tn){
   scrollx=gb.document.body.scrollLeft
   scrolly=gb.document.body.scrollTop
   scrolly=scrolly+tn
   if (scrolly<0) {scrolly=0;}
   gb.window.scroll(scrollx,scrolly)
}

// ¶àÕÅÍ¼Æ¬ÂÖÁ÷ÏÔÊ¾
var PlayFileList = new Array();
var PlayNum = -1;
var PlayObj = null;
var TextObj = null;
var PlayKey = 0;
function playlist(sPlayObj, sTextObj, sData)
{
	PlayObj = sPlayObj;
	TextObj = sTextObj;
	PlayFileList = sData.split('¡¬');
	for (var i=0;i<PlayFileList.length;i++)
	{
		PlayFileList[i] = PlayFileList[i].split('¡©');
	}
	if (PlayFileList.length>0) playnext();
}

function playnext()
{
	PlayNum++;
	if (PlayNum>=PlayFileList.length) PlayNum = 0;
	if (PlayKey == 0)
	{
		PlayKey = 1;
	}
	else if (document.all)
	{
		PlayObj.filters.revealTrans.Transition=23;
		PlayObj.filters.revealTrans.apply();
        	PlayObj.filters.revealTrans.play();
	}
	PlayObj.src=PlayFileList[PlayNum][0];
	TextObj.innerHTML=PlayFileList[PlayNum][1]; 
	theTimer=setTimeout("playnext()", 4500);	
}

function playopen()
{
	if (PlayNum<0) return false;
	var CurUrl = PlayFileList[PlayNum][2];
	if (CurUrl != '') window.open(CurUrl, '_blank');
	return false;
}
