var currentFeedbackWin = null;
var currentUFeedbackWin = null;

function openFeedback(link,w,h)
{
    // compensate for margins
    w = eval(w);
    if (w <= 0) w = 600;
    w += 20;
    h = eval(h);
    if (h <= 0) h = 500;
    h += 20;
	var options = "width=" + w + ",height=" + h + ",scrollbars";
	currentFeedbackWin = window.open(link,"feedbackwin",options);
}

function closeFeedback()
{
	if (currentFeedbackWin != null && !currentFeedbackWin.closed) currentFeedbackWin.close();
}

// user feedback
function openUFeedback(link,w,h)
{
    // compensate for margins
    w = eval(w);
    if (w <= 0) w = 600;
    w += 20;
    h = eval(h);
    if (h <= 0) h = 500;
    h += 20;
	var options = "width=" + w + ",height=" + h + ",scrollbars";
	currentUFeedbackWin = window.open(link,"ufeedbackwin",options);
}

function closeFeedback()
{
	if (currentUFeedbackWin != null && !currentUFeedbackWin.closed) currentUFeedbackWin.close();
}
