//--------------------------------------------------------------------------------------------------//
//																									//
//	Statics																							//
//	COPYRIGHT(C)2004 LCC INC. ALL RIGHTS RESERVED 													//
//--------------------------------------------------------------------------------------------------//

var Brc_Lst ;
var Stf_Lst ;
var Itm_Lst ;
var Day_Off ;
var Tim_Fre ;
var Sub_Win ;
var bbp_Win ;

var SelectedCell ;
var SelectedCell_Style ;

//--------------------------------------------------------------------------------------------------//
//																									//
//	Functions																						//
//	COPYRIGHT(C)2004 LCC INC. ALL RIGHTS RESERVED 													//
//--------------------------------------------------------------------------------------------------//

// ---------------------------------------------------------------------------subClose
function subClose(s)
{
	if (window.s) {
		if (s.name) s.close() ;
	}
}

// WindowOpen-------------------------------------------------------------------
function Openwin(theURL,winName,features) {
   w=window.open(theURL,winName,features);
   w.focus() ;
}

//------------------------------------------------------------------------------s_Replace
function s_Replace(c)
{
	if (self.name == "login") 
	{
		opener.location.href=c ;
		self.close() ;
	}
	else
	{
		//self.location.href=c ;
		self.location.replace(c) ;
	}
}

//------------------------------------------------------------------------------s_Close
function s_Close(c)
{
	//alert(opener.name) ;
	if (opener.name == "CallList") 
	{
		opener.opener.location.href=c ;
		opener.close() ;
		self.close() ;
	}
	else
	{
		opener.location.href=c ;
		self.close() ;
	}
}

//------------------------------------------------------------------------------r_Close
function r_Close()
{
	window.opener.location.reload() ;
	self.close() ;
}

//------------------------------------------------------------------------------SetDS
function SetDS(dsID,Memo,SendTo,DispDate)
{
	document.getElementById("dsID").value		=dsID;
	document.getElementById("Memo").value		=Memo;
	document.getElementById("SendTo").value		=SendTo ;
	document.getElementById("DispDate").value	=DispDate ;
//	document.getElementById("sb").value			=sb ;
}

//------------------------------------------------------------------------------SetBB
function SetBB(bbID,Memo,DispDate,PriorDate,Photo)
{
	var pl, w, i ;

	document.getElementById("bbID").value		=bbID;
	document.getElementById("Memo").value		=Memo;
	document.getElementById("DispDate").value	=DispDate ;
	document.getElementById("PriorDate").value	=PriorDate ;
	SetBBPhotoClear() ;
	if (Photo!=""){
		pl = Photo.split(",") ;
		for (i=0; i<pl.length-1 ; i++){
			w="000"+bbID ;
			w=w.substr(w.length-4,4) ;
			document.getElementById("PL0"+i).src="./photo_bb/"+w+pl[i]+".jpg" ;
			status="./photo_bb/"+w+pl[i]+".jpg"+pl.length ;
//	alert("./photo_bb/"+w+pl[i]+".jpg") ;
//			document.getElementById("PL0"+i).height=100 ;
		}
	}
//	document.getElementById("f_name").value		=Photo ;
}

//------------------------------------------------------------------------------SetBBPhotoClear
function SetBBPhotoClear()
{
	var i ;

	for (i=0; i<5 ; i++){
		document.getElementById("PL0"+i).src="./images/spacer.gif" ;
//		document.getElementById("PL0"+i).height=1 ;
	}
}





























