// JavaScript Document

function OpenWindow( page, target )
{
	var pageProp= "toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes";
	
	window.open( page, target, pageProp );
}

function OpenPopup(page, width, height )
{
	var pageProp= "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width="+ width +", height="+ height +", top=50, left=50";
	
	window.open(page,"",pageProp);
}

function ConfirmLink( theLink, question )
{
	var is_confirmed = confirm(question);
	if (is_confirmed) {
		theLink.href += '&is_js_confirmed=1';
	}

	return is_confirmed;
}

function ConfirmAction( theLink, question )
{
	var is_confirmed = confirm(question);
	if (is_confirmed) {
		return true;
	}

	return false;
}

function ShowMsg( msg )
{
	alert(msg);
}

<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

function SincButtonWithCheck( idCheckBox, idButton, reversing )
{
	var button = document.getElementById(idButton);
	var check = document.getElementById(idCheckBox);
	
	if(reversing)
		button.disabled = !check.checked;
	else
		button.disabled = check.checked;
}