﻿function ErrorMessage(message, location)
{
    var theDiv = document.getElementById("message");
    theDiv.innerHTML='';
    var theData = document.createTextNode('An Error has occured');
    var theHeading = document.createElement("H3");
    theHeading.appendChild(theData);
    theDiv.appendChild(theHeading);
    var theData = document.createTextNode(message);
    theDiv.appendChild(theData);
    document.getElementById("errormessage").style.display='block';

}
