function PrintandClose()
{
	window.print();
	window.close();
}

function FullWindow(filename,windowname)
	{
	var popupWin = window.open(filename, windowname,'scrollbars=yes,width='+screen.width+',height='+screen.height+',top=0,left=0');
	popupWin.window.focus();
	}

function centerWindow(filename,windowname, w, h)
	{
	var t = (screen.height - h) /2;
	var l = (screen.width -w) / 2;
	var popupWin = window.open(filename,windowname,'scollbars=no,width=' + w + ',height=' + h + ',top=' + t + ',left=' + l);
	popupWin.window.focus();
	return false;
	}

function ImgOn(imgid)
	{
	document.getElementById(imgid).setAttribute("src","/images/play_on.gif");
	return false;
	}

function ImgOff(imgid)
	{
	document.getElementById(imgid).setAttribute("src","/images/play_off.gif");
	return false;
	}

function dlOn(imgid)
	{
	document.getElementById(imgid).setAttribute("src","../images/dl_on.gif");
	return false;
	}

function dlOff(imgid)
	{
	document.getElementById(imgid).setAttribute("src","../images/dl_off.gif");
	return false;
	}