
var feature_win='';

function closeFeatureWindow()
{
    if( !feature_win.closed && feature_win.location ) {
	feature_win.close();
    }
}

function openBrowser(URL, windowname, width, height, features) 
{
    closeFeatureWindow();
    if( typeof( window.innerWidth ) == 'number' ) {
	feature_win = window.open(URL, windowname, "location=no, numebar=no, innerWidth=" + width + ", innerHeight=" + height + features );
	feature_win.innerWidth = width;
	feature_win.innerHeight = height;
    } else {
    	// IE doesn't support innerWidth/Height. Grrr.
	width = width + 20;
	height = height + 60;
	feature_win = window.open(URL, windowname, "width=" + width + ", height=" + height + features );
	feature_win.resizeTo( width, height );
    }
    if (window.focus)
    {
	feature_win.focus();
    }
}

						
function openFAQ(URL, windowname, features) 
{
    closeFeatureWindow();
    feature_win = window.open(URL, windowname, "location=no, menubar=no, width=600, height=400, resizable=yes, scrollbars=yes" + features);
    feature_win.resizeTo( 600, 400 );
    if (window.focus)
    {
	feature_win.focus();
    }
}

						
