<!--
//==========================================================================================
//  JLIB 1.0  --  This notice must remain untouched at all times.
//  Copyright Mistletoe information 2003. All rights reserved.
//
//  This script library was originally created for personal use.
//  This is free software. Do not sell this as your own
//  work, or remove this copyright notice. For full details on copying or changing
//  this script please contact jlib@mistletoe.net
//
//==========================================================================================


function PopUpWindow (url,l,t,w,h) { window.open(url,null,"top="+t+",left="+l+",height="+h+",width="+w+",resizable=yes,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
}


function HideBlock (id) {
var x = document.getElementById(id);
var y = document.getElementById(id + 'Up');
    x.style.display = (x.style.display == 'block') ? 'none'  : 'block';
    y.style.display = (x.style.display == 'block') ? 'block' : 'none';
}


function SwitchBlock (id) {
var x = document.getElementById(id);
var y = document.getElementById(id + 'Up');
    x.style.display = (x.style.display == 'block') ? 'none' : 'block';
    y.style.display = (x.style.display == 'block') ? 'none' : 'block';
}


function CheckForParent (name) {
// window.alert(window.parent.name);
  if (window.parent.name == name) { return true; }
return false
}

function CheckForParentFrame (name) {
var frm = window.parent.frames;
var i;
  for (i=0; i < frm.length; i++) {
      if (frm[i].name == name) { return true; } ;
  }
return false
}

function DebugStyle (obj) {
var ln = "" 
  with (obj) {
    if (tagName=="TABLE") { ln += "tableLayout " + currentStyle.tableLayout + "<BR>"}

    with (currentStyle) {
      ln += "size: " + width + " " + height
      ln += "<BR>padding: " + paddingTop + " " + paddingLeft + " " + paddingRight + " " + paddingBottom
      ln += "<BR>margin: " + marginTop + " " + marginLeft + " " + marginRight + " " + marginBottom
      ln += "<P>align: " + textAlign + " " + verticalAlign
      ln += "<BR>font: " + fontWeight + " " + fontSize + " " + fontFamily + " " + fontStyle
     }

    ln += "<P>Inline: " + style.cssText
  }

  while (ln.search("undefined")>=0 ) {
    ln = ln.replace("undefined","-") 
  }
return ln 
}

function CheckPage () {
  if (document.all("mstPageEdited").value=="Yes" && document.all("mstPageDeleted").value=="No")       {window.location.reload(true); }; 
return false
}
//-->
