function setFrameContent ()
{
  if(top.location==self.location)
  {
    parent.location = "index.html";
  }
  var params = top.location.search;
  if (params.charAt(0)== "?")
  {
    params=params.substr(1);
  }
  paramsarray = params.split("&");
  var mainURL = "";
  var menuURL = "";
  for (var i = 0; i < paramsarray.length; i++)
  {
       paramarray = paramsarray[i].split("=");
       if (paramarray[0] == "main")
       {
         mainURL = paramarray[1];
       }
       if (paramarray[0] == "menu")
       {
         menuURL = paramarray[1];
       }
  }
  if (menuURL != "")
  {
      parent.frames[0].location=menuURL;
  }
  if (mainURL != "")
  {
    parent.frames[2].location=mainURL;
  }
}

function callIndexFromMenu ()
{
  if (top.location==self.location)
  {
    parent.location = "index.html?menu="+self.location;
  }
}

function loadMainDefault (defaultURL)
{
  if (typeof(defaultURL) == "string")
  {
    parent.frames[2].location.href=defaultURL;
  }
}

function callIndexFromCopy ()
{
  if(top.location==self.location)
  {
    parent.location = "index.html";
   }
}

function callIndexFromMain (menuUrl)
{
  if(top.location==self.location)
  {
    parent.location = "../index.html?main="+self.location+"&menu="+menuUrl;
   }
}

function ICtest (defaultURL,defaultURL2)
{
  if (typeof(defaultURL) == "string")
  {
    parent.frames[2].location.href=defaultURL;
  }
  if (typeof(defaultURL2) == "string")
  {
    parent.frames[0].location.href=defaultURL2;
  }}

