
function myTextContent(obj,s){if(document.all)
obj.innerText=s;else
obj.textContent=s;}
function centerDiv(idDiv,heightDiv,widthDiv)
{var frameWidth=0;var frameHeight=0;if(self.innerWidth)
{frameWidth=self.innerWidth;frameHeight=self.innerHeight;document.getElementById(idDiv).style.top=(frameHeight-heightDiv)/2;document.getElementById(idDiv).style.left=(frameWidth-widthDiv)/2;}
else if(document.documentElement&&document.documentElement.clientWidth)
{frameWidth=document.documentElement.clientWidth;frameHeight=document.documentElement.clientHeight;document.getElementById(idDiv).style.top=document.body.scrollTop+(frameHeight-heightDiv)/2;document.getElementById(idDiv).style.left=document.body.scrollLeft+(frameWidth-widthDiv)/2;}
else if(document.body)
{frameWidth=document.body.clientWidth;frameHeight=document.body.clientHeight;document.getElementById(idDiv).style.top=document.body.scrollTop+(frameHeight-heightDiv)/2;document.getElementById(idDiv).style.left=document.body.scrollLeft+(frameWidth-widthDiv)/2;}
else
{return;}}
function showAlert(s){centerDiv(document.getElementById('divAlert').id,150,400);myTextContent(document.getElementById('pAlert'),s);document.getElementById('divAlert').style.display='block';}