//Coloured fields
dom = (document.getElementById) ? 1 : 0;
function activatefield(what){
if (dom){
what.style.backgroundColor='#FFFFCC';
what.style.color='#000000';}
}
function deactivatefield(what){
if (dom){
what.style.backgroundColor='';
what.style.color='';}
}

//Pop-Ups
var windowObjectReference = null;
var PreviousUrl;
function Popup(url, height, width ){
var windowProperties = "toolbar=0, scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=466,left=50,top= 50";
return window.open(url, "", windowProperties );}
function openRequestedSinglePopup(strUrl)
{
  if(windowObjectReference == null || windowObjectReference.closed)
  {
   windowObjectReference = window.open(strUrl, "SingleSecondaryWindowName",
         "resizable=yes,scrollbars=yes,status=yes");
  }
  else if(PreviousUrl != strUrl)
  {
   windowObjectReference = window.open(strUrl, "SingleSecondaryWindowName",
      "resizable=yes,scrollbars=yes,status=yes");
   windowObjectReference.focus();
  }
  else
  {
    windowObjectReference.focus();
  };
  PreviousUrl = strUrl;
}