 
logDiv=document.getElementById("loginDiv")
addEml=document.getElementById("additionalEmails")
protect=document.getElementById("protector")

document.getElementById("closeBut").onclick=function(){logDiv.style.display=protect.style.display="none"}

document.getElementById("getList").onclick= function(){
   protect.style.display="block"
   protect.style.width=document.body.clientWidth+"px";
   protect.style.height=document.body.clientHeight+"px";
   centerPosition("loginDiv");
   
 return false;
}

/*document.getElementById("loginButton").onclick= function(){
  document.getElementById("loginDiv").style.display="none"
  centerPosition("loading");
 document.forms["listForm"].style.display = '';
 document.forms["listForm"].submit()
 return false;
}*/

function centerPosition(elmntId,msg){
 var elmnt=document.getElementById(elmntId)
 elmnt.style.display="block"
 elmnt.style.left=Math.round((document.documentElement.clientWidth-elmnt.offsetWidth)/2)+document.documentElement.scrollLeft+"px"
 elmnt.style.top=Math.round((document.documentElement.clientHeight-elmnt.offsetHeight)/2)+document.documentElement.scrollTop+"px"
 document.getElementById("logginMsg").innerHTML=(msg)?msg:"";
}



function test_func(val){ 
  document.getElementById('firstEml').value = val;
}
function removeFriend_(e){
 //evnt=(!e)?window.event.srcElement:e.target
  //alert('1'); 
 if(!e)
 {
   evnt = window.event.srcElement;
 }
 else
 {
   evnt = e.target;
 }
 addEml.removeChild(evnt.parentNode)
 
 return false;
 
}