<!--
function openUrl(theURL, winName, width, height)
{
	if(!width) width = 800;
	if(!height) height = 600;

	//winName = 'Dialog ';
  	features='width=' + width + ',height=' + height + ',directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes,top=0,left=0';
	msgWindow = window.open(theURL, winName, features);
	msgWindow.focus();
}

function closeAndReload()
{
	opener.window.focus();
	opener.window.location.reload();
	self.close();
	return false;
}

function closeAndSubmit()
{
	opener.window.forms[0].submit();
	opener.window.focus();
	self.close();
	return false;
}

function closeWindow()
{
	opener.window.focus();
	self.close();
	return false;
}

function disableForm(theform)
{
  if (document.all || document.getElementById)
  {
    for (i = 0; i < theform.length; i++)
    {
      var tempobj = theform.elements[i];
      if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
      tempobj.disabled = true;
    }
    return true;
  }
}

function checkTitle(title, text)
{
	if(title == '')
	{
		alert(text);
		return false;
	}
	return true;
}

function checkTitleAndSave(title, text1, text2)
{
	if(confirm(text1))
	{
		return(checkTitle(title, text2));
	}
	return(false);
}

-->