function openErrorWindow(info, type,
    errorCode, location, courseId, hole, equipment, apparel,
    operatingSystem, processorCount, processorType, systemMemorySize,
    graphicsDeviceVendor, graphicsDeviceName,  graphicsMemorySize, graphicsDeviceVersion,
    supportsShadows, supportsImageEffects, supportsVertexPrograms, supportsRenderTextures, supportsARGB32RenderTextureFormat, supportsDepthRenderTextureFormat)
{
    var DELIM = '|';

    // game specific info
    gameInformation = //info + DELIM +
    errorCode + DELIM +
    location + DELIM +
    courseId + DELIM +
    hole + DELIM +
    equipment + DELIM +
    apparel;

    // system/browser info
    systemInformation = navigator.appName + ' ' + navigator.appCodeName; // browser
    systemInformation += DELIM + navigator.appVersion; // browser version
    //systemInformation += DELIM + navigator.platform;
    //systemInformation += DELIM + navigator.language;
    systemInformation += DELIM + operatingSystem + DELIM + processorCount + DELIM + processorType + DELIM + systemMemorySize + DELIM +
    graphicsDeviceVendor + DELIM + graphicsDeviceName + DELIM + graphicsMemorySize + DELIM + graphicsDeviceVersion + DELIM + supportsShadows + DELIM + supportsImageEffects + DELIM + supportsVertexPrograms + DELIM + supportsRenderTextures + DELIM + supportsARGB32RenderTextureFormat + DELIM + supportsDepthRenderTextureFormat;

    //save information to a cookie
    document.cookie = "TWOCookie[game_info]=" + escape(gameInformation) + ";path=/";
    document.cookie = "TWOCookie[system_info]=" + escape(systemInformation) + ";path=/";

    //open reporting window
    var newWin;
    try
    {
        newWin = window.open('/reports/' + type, 'errorwindow', 'toolbar=0,menubar=0,statusbar=1,resizable=1,scrollbars=1,width=625,height=600');
    }
    catch(err)
    {
    	// ignore errors?
    }

    if (newWin)
    {
        newWin.focus();
    }
    else
    {
        alert("You appear to have pop-ups blocked for this site,\n in order to report an error you have to have pop-up blocking turned off.");
    }

}

function openComplaintWindow(type, subject, blazeObjectId, blazeId, encodedDetails)
{
    var DELIM = '|';

    //open reporting window
    var newWin;
    try
    {
        newWin = window.open('/complaints/' + type + '/' + subject + '/' + blazeObjectId + '/' + blazeId + '/' + encodedDetails, 'errorwindow', 'toolbar=0,menubar=0,statusbar=1,resizable=1,scrollbars=1,width=625,height=600');
    }
    catch(err)
    {
    	// ignore errors?
    }

    if(newWin)
    {
        newWin.focus();
    }
    else
    {
        alert("You appear to have pop-ups blocked for this site,\n in order to report a complaint you have to have pop-up blocking turned off.");
    }
}

