function replace(String) {

  var re = /\n/g
return String.replace(re,"<br>");
}


function fieldCheck()

{
var msg = "";
var error = "0";
        // check that a fields have been added
if (this.document.requestinfo.title.value == "")
        {
                msg = msg + "You must enter a title.\n";
                error= "1";
        }

if (this.document.requestinfo.description.value == "")
        {
                msg = msg + "You must enter a description.\n";
                error= "1";
        }

if (this.document.requestinfo.author.value == "")
        {
                msg = msg + "You must enter a original author/source.\n";
                error= "1";
        }

if (this.document.requestinfo.section1.value == "")
        {
                msg = msg + "You must enter the first paragraph section .\n";
                error= "1";
        }

if (this.document.requestinfo.header1.value == "")
        {
                msg = msg + "You must enter the first paragraph heading.\n";
                error= "1";
        }

        if (error == "1")
        {
                alert(msg);
                return false;
        }
        else
                return true;
}



