//alert()
function creatNPAlert(){
	var NPAlert_txt=""
	+"<div id=NPAlert name=NPAlert style=\"position:absolute; width:200px; height:115px; z-index:1; left: 520px; top: 232px; background-color: #CCCCCC;  border: 1px none #000000;visibility:hidden;\">"
	+"<table width=100% height=80 border=0><tr><td align=center valign=top><span id=NPAlerTxt name=NPAlertTxt ></span></td></tr></table>"
	+"<table width=100% border=0><tr><td align=center><input type=submit name=Submit value=OK onclick=closeNPalert()></td></tr></table>"
	+"</div>";
	if(!document.getElementById("NPAlert")){
		document.write(NPAlert_txt);
	}
}
function NPalert(txt){
	var f=document.getElementById("NPAlert");
	var ft=document.getElementById("NPAlerTxt");
	
	ft.innerHTML=txt;
	
	var window_height=100;
	var widnow_width=200;
	var window_top;
	var window_left;
	window_top=((document.body.clientHeight-window_height)/2-70);
	window_left=((document.body.clientWidth-widnow_width)/2);
	
		f.style.width=widnow_width;
		f.style.height=window_height;
		f.style.top=window_top;
		f.style.left=window_left;  //150 is (300/2) is to avoid the fuction stretchRight() in 'mail.js',I'm not sure what this function is working for...
		f.style.visibility="visible";

	return false;
}
function closeNPalert(){
	var f=document.getElementById("NPAlert");
	f.style.visibility="hidden";
}
//

creatNPAlert();

window.onload=function(){
	drag(document.getElementById('NPAlert'),[0,screen.availWidth ,0,screen.availHeight]);
	drag(document.getElementById('DrogDiv'),[0,screen.availWidth ,0,screen.availHeight]);
};
