function showmsg(msg){
var strmsg = "<span id='msginfo' style='position:absolute;top:3px;left:0px;text-align:center;width:100%;'><span style='background-color:#6699FF;font-size:15px;'>";
strmsg += msg;
strmsg += "</span></span>";
if(document.getElementById("msginfo")==null){
//alert("new");
var spanmsg = document.createElement("SPAN")
spanmsg.id="msginfo";
spanmsg.style.width=document.body.offsetWidth;
spanmsg.innerHTML= strmsg;
document.body.appendChild(spanmsg);
}else{
//alert(document.getElementById("msginfo").innerHTML);
document.getElementById("msginfo").innerHTML=strmsg;
document.getElementById("msginfo").style.display="inline";
}
setTimeout('hiddenmsg()',5000);
}
function showerror(msg){
var strmsg = "<span id='errorinfo' style='position:absolute;top:20px;left:0px;text-align:center;width:100%;'><span style='background-color:#FF0000;font-size:15px;'>";
strmsg += msg;
strmsg += "</span></span>";
if(document.getElementById("errorinfo")==null){
//alert("new");
var spanmsg = document.createElement("SPAN")
spanmsg.id="errorinfo";
spanmsg.style.width=document.body.offsetWidth;
spanmsg.innerHTML= strmsg;
document.body.appendChild(spanmsg);
}else{
//alert(document.getElementById("errorinfo").innerHTML);
document.getElementById("errorinfo").innerHTML=strmsg;
document.getElementById("errorinfo").style.display="inline";
}
}
function hiddenmsg(){
document.getElementById("msginfo").style.display="none";
}