function OpenWindow(strHREF, strTarget, iWidth, iHeight, bResizable, bToolbar, bScrollbar)
{
	var strWindowFeatures = "";

	strWindowFeatures = __AddWindowParam(strWindowFeatures,"width",iWidth)
	strWindowFeatures = __AddWindowParam(strWindowFeatures,"height",iHeight)

	strWindowFeatures = __AddWindowParam(strWindowFeatures, "resizable",bResizable)
	strWindowFeatures = __AddWindowParam(strWindowFeatures, "toolbar",bToolbar);

	strWindowFeatures = __AddWindowParam(strWindowFeatures, "scrollbars", bScrollbar);
			
	window.open(strHREF, target=strTarget, windowFeatures=strWindowFeatures);
	return false;
}

function __AddWindowParam(strWindowFeatures, strParamName, value)
{
	var bTest = true;
	if (value != null)
	{
	    if (strWindowFeatures.length > 0)
	    {
	        strWindowFeatures = strWindowFeatures + ", ";
	    }
	    if (typeof(value) == typeof(bTest))
	    {
		    if (value == true)
		    {
			    strWindowFeatures = strWindowFeatures + strParamName + "=yes";
		    }
		    else
		    {
			    strWindowFeatures = strWindowFeatures + strParamName + "=no";
		    }
	    }
	    else
	    { 
		    strWindowFeatures = strWindowFeatures + strParamName + "=" + value;
	    }
	}
	return strWindowFeatures;
}


