function openEditorWindow(mylink, windowname, width, height)
{
if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string')
     href=mylink;
  else
     href=mylink.href;
     window.open(href, windowname, 'width=700,height=500,scrollbars=yes,resizable=1,status=0,menubar=0,location=no')
     return false;
}




function openLink(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname)
return false;
}




function openWindow(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=400,height=400,scrollbars=yes,resizable=1,status=1,menubar=0,location=no')
return false;
}




function openBilag(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=700,height=500,scrollbars=yes,resizable=1,status=1,menubar=0,location=no')
return false;
}




function submitToPopup(formref) {
    newwin = window.open('about:blank','newwindow','height=500,width=700,scrollbars=yes,resizable=1,status=1,menubar=0,location=no');
    formref.submit();
    newwin.focus();
}




function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}

function jumpx(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("|");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_blank";};
if (ref != "") {land(loc,target);}
}

function jump(ref)
{
window.open(ref);
}
