function openFeedbackWindow(userId) 
{
	openCustomWindow('http://custhelp.realtytrac.com/Scripts/rightnow.cfg/php.exe/enduser/doc_serve.php?5=2&userid=' + userId,'Feedback', 550, 780, 125, 100, false, true)
}

function openCustomWindow(url,name,width,height,leftPos,topPos,toolbars,scrollbars,windowRatio) 
{
//function used for opening a window, uses passed parameters
//name is the name of the window
//toolbars and scrollbars are boolean fields that determine whether those should be shown on window
//if a windowRatio is passes (and it is between 0 and 1) then the window will be sized as a percentage of the screen size (resolution)

	toolbarTxt = "toolbar=no,status=no"
	if (toolbars) {
		toolbarTxt = "toolbar=yes,status=yes"
	}
	scrollbarTxt = "scrollbars=no,resizable=yes"
	if (scrollbars) {
		scrollbarTxt = "scrollbars=yes,resizable=yes"
	}
	if (!isNaN(windowRatio) && windowRatio < 1 && windowRatio > 0) {
		width = screen.width * windowRatio;
		height = screen.height * windowRatio;
		leftPos = (screen.width - width) / 2;
		topPos = 20;
	}
	leftPosTxt = ''
	topPosTxt = ''
	if (!isNaN(leftPos) && !isNaN(topPos)) {
		if (bName != 'Netscape') {
			leftPos = leftPos + 10
			topPos = topPos + 10
		}
	topPosTxt = 'top=' + topPos
	leftPosTxt = 'left=' + leftPos
	}
	windowSpecs = topPosTxt + ',' + leftPosTxt + ',width=' + width + ',height=' + height + ',' + scrollbarTxt + ',' + toolbarTxt
	child = window.open(prepareUrl(url),name, windowSpecs);
	child.window.focus();
}