function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	function MM_showHideLayers() { //v6.0
	  var i,p,v,obj,args=MM_showHideLayers.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	    obj.visibility=v; }
	}
	function enable()
	{
  	document.getElementById("hide").disabled=false;
	}
	function disable()
	{
  	document.getElementById("hide").disabled=true;
	}
  function disp_linkEdit(txtid)
  {
    var site=prompt("Enter the URL of the site you want to link to.","http://");
    if (site!=null && site!="")
    {
      var lname=prompt("Enter the name you want to appear on the link.","");
      if (lname!=null && lname!="")
      {
        var site2 = site.replace("http://", "");
        document.getElementById(txtid).value = document.getElementById(txtid).value + '<a class=\"bblack\" href=\"http://' + site2 + '\">' + lname + '</a>';
        document.getElementById(txtid).focus()
        
      }
    }
  }
  function disp_limage(txtid)
  {
    var site=prompt("Enter the path of the image you want to display.\n\rImage will be on the left side of the news block\n\rwith text to the right of it.","http://www.paintrix-miniatures.com/images/");
    if (site!=null && site!="")
    {
      var site2 = site.replace("http://", "");
      document.getElementById(txtid).value = document.getElementById(txtid).value + '<img class=\"pleft\" src=\"http://' + site2 + '" />';
      document.getElementById(txtid).focus()
    }
  }
  function disp_cimage(txtid)
  {
    var site=prompt("Enter the path of the image you want to display.\n\rImage will be centered in the news block\n\rwith text above and below it.","http://www.paintrix-miniatures.com/images/");
    if (site!=null && site!="")
    {
      var site2 = site.replace("http://", "");
      document.getElementById(txtid).value = document.getElementById(txtid).value + '<div class=\"center"\><img class=\"pic\" src=\"http://' + site2 + '" /></div>';
      document.getElementById(txtid).focus()
    }
  }
  function disp_clinkimage(txtid)
  {
    var site=prompt("Enter the URL of the site you want to link to.\n\rThe image will be centered with no text on either side of it.","http://");
    if (site!=null && site!="")
    {
      var img=prompt("Enter the path of the image you want to display as a link button.","http://www.paintrix-miniatures.com/images/");
      if (img!=null && img!="")
      {
        var site2 = site.replace("http://", "");
        var img2 = img.replace("http://", "");
        document.getElementById(txtid).value = document.getElementById(txtid).value + '<div class="center"><a href="http://' + site2 + '"><img class=\"pic\" src=\"http://' + img2 + '" /></a></div>';
        document.getElementById(txtid).focus()
      }
    }
  }
  function disp_llinkimage(txtid)
  {
    var site=prompt("Enter the URL of the site you want to link to.\n\rThe image will be on the left side of the box\n\rwith text wrapping around on its right.","http://");
    if (site!=null && site!="")
    {
      var img=prompt("Enter the path of the image you want to display as a link button.","http://www.paintrix-miniatures.com/images/");
      if (img!=null && img!="")
      {
        var site2 = site.replace("http://", "");
        var img2 = img.replace("http://", "");
        document.getElementById(txtid).value = document.getElementById(txtid).value + '<a href="http://' + site2 + '"><img class=\"pleft\" src=\"http://' + img2 + '" /></a>';
        document.getElementById(txtid).focus()
      }
    }
  }
  function disp_header(txtid)
  {
    var site=prompt("Enter the text you wish to appear as a header","");
    if (site!=null && site!="")
    {
      document.getElementById(txtid).value = document.getElementById(txtid).value + '<H>' + site + '</H>';
      document.getElementById(txtid).focus()
    }
  }
  function disp_line(txtid)
  {
    document.getElementById(txtid).value = document.getElementById(txtid).value + '<div class="center"><hr /></div>';
    document.getElementById(txtid).focus()
    
  }
  function disp_bold(txtid)
  {
    var site=prompt("Enter the text you wish to have appear bold","");
    if (site!=null && site!="")
    {
      document.getElementById(txtid).value = document.getElementById(txtid).value + '<b>' + site + '</b>';
      document.getElementById(txtid).focus()
    }
  }
  function disp_italics(txtid)
  {
    var site=prompt("Enter the text you wish to have appear in italics","");
    if (site!=null && site!="")
    {
      document.getElementById(txtid).value = document.getElementById(txtid).value + '<i>' + site + '</i>';
      document.getElementById(txtid).focus()
    }
  }