/* Frequently used Javascript functions */



function showfull(purl, pnamewindow, ptoolbar, plocation, pdirectories, pstatus, pmenubar, pscrollbars, presizable, pwidth, pheight, pX, pY)
{
	var options = 'toolbar=' + ptoolbar + ',location=' + plocation + ',directories=' + pdirectories + ',status=' + pstatus;
	options = options + 'menubar=' + pmenubar + ',scrollbars=' + pscrollbars + ',resizable=' + presizable;
	options = options + ',width=' + pwidth + ',height=' + pheight + ',screenX=' + pX + ',screenY=' + pY;
	options = options + ',left=' + pX + ',top=' +pY;
		
	var newwin = window.open(purl,pnamewindow,options);
	if (parseInt(navigator.appVersion) >= 4) { newwin.window.focus(); }
}

function writeDynContent(divname,html)
{
	var mydiv;
	if(document.layers)
	{
		//thisbrowser="NN4";
		mydiv = document.layers[divname];
		mydiv.document.open();
		mydiv.document.write(html);
		mydiv.document.close();
	}
	if(document.all)
	{
		//thisbrowser="ie"
		mydiv = document.all[divname];
		mydiv.innerHTML = html;
	}
	if(!document.all && document.getElementById)
	{
		//thisbrowser="NN6";
		mydiv = document.getElementById(divname);
		mydiv.innerHTML = html;
	}

}

function beforeCloseWindow()
{
	top.close();
}