function openInWindow(theLink, theWidth, theHeight)
{
	window.open(theLink, '', 'resizable=yes,scrollbars=yes,width=' + theWidth + ',height=' + theHeight);
};
function confirmLink(theLink, confirmMsg)
{
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }
    var is_confirmed = confirm(confirmMsg);
    if (is_confirmed) {
    	if ( typeof(theLink.href) != 'undefined' ) {
            theLink.href += '&is_js_confirmed=1';
        } else if ( typeof(theLink.form) != 'undefined' ) {
            theLink.form.action += '?is_js_confirmed=1';
        }
    }
    return is_confirmed;
};
function confirmAction(theMessage)
{
    if (typeof(window.opera) != 'undefined') {
        return true;
    }
    var is_confirmed = confirm(theMessage);
    return is_confirmed;
}