function show_private_entry(URL)
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=90,top=10,screenX=0,screenY=0,resizable=1,width=800,height=400');");
}
function show_emoticons(URL)
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=0,top=0,screenX=0,screenY=0,resizable=0,width=250,height=400');");
}
function contact_box(URL)
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=50,top=50,screenX=0,screenY=0,resizable=0,width=550,height=450');");
}
function submit_confirm(txt)
{
  var txt;
  var confirmSub = confirm(txt);
  if (confirmSub) { return true; } else { return false; }

}
function show_avatars(URL)
{
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,left=180,top=10,screenX=0,screenY=0,resizable=0,width=650,height=450');");
}
function count_down(field, countfield, maxlimit)
{
  if (field.value.length > maxlimit)
  {
    field.value = field.value.substring(0, maxlimit);
  }
  else
  {
    countfield.value = maxlimit - field.value.length;
  }
}
function add_url_link(txt,txt2)
{
  var txt;
  var txt2;

  var nme=prompt( txt+":", "" );
  if (nme=="")
  {
    return
  }
  if (nme==null)
  {
    return
  }
  var lnk=prompt( txt2+":", "http://" );
  if (lnk=="")
  {
    return
  }
  if (lnk==null)
  {
    return
  }
  if (lnk=="http://")
  {
    return
  }
  var txt=document.MyForm.comments.value+"[url="+lnk+"]"+nme+"[/url]";
  document.MyForm.comments.value=txt;
}
function add_mail_link(txt)
{
  var txt;
  var mal=prompt( txt+":", "" );
  if (mal==null)
  {
    return
  }
  if (mal=="")
  {
    return
  }
  var txt=document.MyForm.comments.value+"[email]"+mal+"[/email]";
  document.MyForm.comments.value=txt;
}
function add_bb_code(gbookCode)
{
  var gbookCode;
  var newMessage;
  var oldMessage = document.MyForm.comments.value;
  newMessage = oldMessage+gbookCode;
  document.MyForm.comments.value=newMessage;
  document.MyForm.comments.focus();
  return;
}
function add_emoticon(thisEmoticon)
{
  document.MyForm.comments.value += '' + thisEmoticon + '';
  document.MyForm.comments.focus();
}
function add_emoticon_window(code)
{
  opener.document.MyForm.comments.value += ' ' + code + ' ';
}