	// grayden functions


// pops up a new browser window	
function popup(mylink, windowname, sbars, titlebaroff)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
var wwidth;
var wheight;
var wsbars;
var wstretch;
var wtitlebar;
var quote;
quote = "'";
var doublequote = "'";
var sizingparams;

if (titlebaroff == 'yes')
{ wstitlebar = 0; } else { wtitlebar = 1; }	


if (sbars == 'yes')
	{ 
		wwidth = 820;
//		wheight = 640;
		wheight = 840;
		wsbars = 1;
		wstretch = 1;

	}
else	
	{
//		wwidth = 598;
		wwidth = 798;
//		wheight = 620;
		wheight = 700;
		wsbars = 0;
		wstretch = 1;
	}
sizingparams =  "width=" + wwidth + ", height=" + wheight + ", scrollbars=" + wsbars + ", resizable=" + wstretch + ", titlebar=" + wtitlebar ;
//alert("[" + sizingparams + "]")
	
// window.open(href, windowname, 'width=' + width + ',height=' + height + ',scrollbars=' + sbars);
window.open(href, windowname, sizingparams);

// window.open(href, windowname, ;

// window.open(href, windowname, "width=350, height=220, scrollbars=1, resizable=1");


// window.open ("http://www.javascript-coder.com",
// "mywindow","location=1,status=1,scrollbars=1,
// 	width=100,height=100"); 


return false;
}