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)
}

var bChecked=true;
function CheckAll()
{
	if (document['fmain']['id'].value)
		document['fmain']['id'].checked=bChecked
	else	
		for(i=0;i<document['fmain']['id'].length; i++)
			document['fmain']['id'][i].checked=bChecked
	bChecked=!bChecked;
}

function ConfDel(name, link)
{
 	if (confirm('Are you sure you wish to delete "' + name + '"?'))
		self.location.replace(link)
}

function ConfDelAll()
{
 	if (confirm('Are you sure you wish to delete selected items?'))
		document['fmain'].submit()
}
