function popup_ultraslim(url,x,y)
{
	newWindow = window.open(url,"","width="+x+",height="+y+",left=10,top=10,bgcolor=white,resizable,scrollbars");
	if ( newWindow != null )
	{
		newWindow.focus();
	}
}
function lookupUser(fieldname, val)
{
	lookupUrl = 'lookup_user.cfm?fieldname=' + fieldname + '&linkval=displayname&q=' + escape(val);
	popup_ultraslim(lookupUrl, 700, 450);
}

function showHelp()
{
	// Optional arguments:
	// 1 - page name
	// 2 - tab name
	
	var helpURL = 'help.cfm' ;
	if ( arguments.length > 0 ) helpURL = helpURL + '?page=' + arguments[ 0 ] ;
	if ( arguments.length > 1 ) helpURL = helpURL + '&tab=' + arguments[ 1 ] ;
	var helpWidth = 780 ;
	var helpHeight = 480 ;
	var helpMarginLeft = 20 ;
	var helpMarginTop = 40 ;
	var helpLeft = ( screen.width - helpWidth ) / 2 - helpMarginLeft ;
	var helpTop = ( screen.height - helpHeight ) / 2 - helpMarginTop ;
	var helpWindow = window.open( helpURL, '', 'width=' + helpWidth + ',height=' + helpHeight + ',scrollbars' ) ;
	try {
		helpWindow.moveTo( helpLeft, helpTop ) ;
	}
	catch( e ) {
		
	}
}


