// comment related

function windowOpener(windowHeight, windowWidth, windowName, windowUri)
{
    var centerWidth = (window.screen.width - windowWidth) / 2;
    var centerHeight = (window.screen.height - windowHeight) / 2;

    newWindow = window.open(windowUri, windowName, 'resizable=0,width=' + windowWidth + 
        ',height=' + windowHeight + 
        ',left=' + centerWidth + 
        ',top=' + centerHeight);

    newWindow.focus();
    return newWindow.name;
}


function commited(hash) {
	var newLocation;
	
	newLocation = window.opener.location.href + "#" + hash;
	alert("Thanks for submitting your comment!\nWhen your entry has been approved, it will appear in the list." + newLocation);
//	return;
	
	// refresh parent window
	window.opener.location.href = newLocation;
	
	// close myself
	window.close();
}
