function InsertBBcode(bbcode){
 document.addnewsfrm.shortstory.value+=bbcode;
 document.addnewsfrm.shortstory.focus();
}
function InsertBBcode2(bbcode){
 document.addnewsfrm.fullstory.value+=bbcode;
 document.addnewsfrm.fullstory.focus();
}
function ShowHint(hint)
{
 document.addnewsfrm.hintbox.value=hint;
}
function ShowHint2(hint)
{
 document.addnewsfrm.hintbox2.value=hint;
}
function fShowHint(hint)
{
 document.getElementById("hintbox").innerHTML=hint;
}

function MakeUrlCode()
{
  var url = prompt('Enter the url to the web page','http://');
  var title = prompt('Enter a name for the web page');
  if (url==null || url=='http://'){alert('You must enter a valid url');return ''; exit;}
  if (title==''){alert('You must enter a title');return ''; exit;}
  return '[url='+url+']'+title+'[/url]';
}

function MakeVIMGCode()
{
  var url = prompt('Enter the url to the image','http://');
  var title = prompt('Enter a name for the image');
  if (url==null || url=='http://'){alert('You must enter a valid url');return ''; exit;}
  if (title==''){alert('You must enter a title');return ''; exit;}
  return '[vimg='+url+']'+title+'[/vimg]';
}
function CheckBlankFields1()
{
 if (document.setupform.displayname.value=='' || document.setupform.accountname.value=='' || document.setupform.password.value=='' || document.setupform.emailaddress.value=='') {return false;} else {return true;}
}