function LoadValidationErrorPanel(errMessage, type)
{
var myMain = document.getElementById("MainErrorTag");
if (myMain== null)
{
myMain=document.createElement("div");
}
if (myMain.firstChild != null)
{
myMain.removeChild(myMain.firstChild);
}
var myDiv = document.createElement("div");
var myUL = document.createElement("ul");
var myPara = document.createElement("p");
var myImg = document.createElement("img");
var myDesc = document.createElement("strong");
myDiv.className = "rounded";
if(type=="error")
myImg.setAttribute ("src","../Images/Cross.JPG");
else if(type=="success")
myImg.setAttribute ("src","../Images/tick.png");
myDesc.innerText =" "+errMessage;
myPara.appendChild(myImg);
myPara.appendChild(myDesc);
myDiv.appendChild(myPara);
myMain.appendChild(myDiv);
}