function GetFile(id)
{
	window.location="getfile.asp?id=" + id
}

function RefreshWnd(wnd)
{
	if (wnd && wnd.location) 
	{
		strLoc=opener.location.href
		intPos=strLoc.indexOf("&rnd") + strLoc.indexOf("?rnd") + 1
		if (intPos>=0)
		{
			intPos1=strLoc.indexOf("&",intPos)
			strLocNew=strLoc.substring(0,intPos) + RndSign(strLoc.substring(0,intPos)) + "rnd=" + parseInt(Math.random()*1000000)
			if (intPos1>=0) strLocNew=strLocNew & strLoc.substring(intPos1,strLoc.length)
		}
		else
			strLocNew=strLoc + RndSign(strLoc) + 'rnd=' + parseInt(Math.random()*1000000)
		wnd.location.replace (strLocNew)
	}
}
function RndSign(str)
{
	if (str.indexOf('?')>=0) return '&'
	else return '?'
}
function NewWindow(mypage, myname, w, h, scroll,loc,res){
if (!loc) loc='yes'
if (!res) loc='no'
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2 - 100;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+res+',toolbar=no,status=no,menubar=no,location='+loc
win = window.open(mypage, myname, winprops)
}

function Print(page)
{
	NewWindow(page, 'wnd' + Math.round(Math.random*1000), 800,600,'yes','no','yes')
}
function Del(id)
{
	if (id) { document['frm']['items'].value="."; InsertItem(id);}
	document['frm']['act'].value='del'
	document['frm'].submit()
}
function Res(id)
{
	if (id) { document['frm']['items'].value="."; InsertItem(id);}
	document['frm']['act'].value='res'
	document['frm'].submit()
}
function Act(what)
{
	document['frm']['act'].value=what
	document['frm'].submit()
}
function Ldr(img) {var objImg=new Image(); objImg.src=img; return objImg;}
function hmn(img) {return(Ldr('img/icons/'+img));}
function over(a,s){document[a].src=eval(a+s+'.src');}
function CheckStatus(a,s,i)
{
if (document[a+i].src==eval(a+s+'.src'))
	return (true)
else
	return (false)
}
function over2(a,s,i){
	document[a+i].src=eval(a+s+'.src')
}

chk1=hmn('chk1.gif'); chk2=hmn('chk2.gif');