small_window = 0;
function open_lost_password() {
	if (!small_window) {
		if (event.x > document.body.clientWidth-325) {
			posX = event.x-300;
		} else {
			posX = event.x+5;
		}

		if (event.y > document.body.clientHeight-220) {
			posY = event.y+document.body.scrollTop-220;
		} else {
			posY = event.y+document.body.scrollTop+5;
		}

		small_window = document.createElement('iframe');
		small_window.setAttribute('name','small_window');
		small_window.style.border='0px';
		small_window.style.width=180;
		small_window.style.height=120;
		small_window.style.top = posY;
		small_window.style.left = posX;
		small_window.scrolling = 'no';
		small_window.frameBorder='0';
		small_window.style.position = 'absolute';
		small_window.src= 'index.php?acount&pass=1';
		small_window = document.body.appendChild(small_window);
		setTimeout('document.body.onclick = function () {close_lost_password()}',10);
	}
}
function close_lost_password() {
	document.body.removeChild(small_window);
	document.body.onclick = function () {}
	small_window = 0;
}