function finishAjax(id, response) {
  $('#Loading').hide();
  $('#'+id).html(unescape(response));
  $('#'+id).fadeIn();
} //finishAjax

function changeAcc(aid,pwd,oaid,mail)
{
	$.post("ch.php", {
		naid:aid,
		npwd:pwd,
		oaid:oaid,
		nmail:mail
	}, function(response){
		$('#c').fadeOut();
		setTimeout("finishAjax('c', '"+escape(response)+"')", 400);
	});
}

function login(aid,pwd,oaid)
{
	$.post("m.php", {
		laid:aid,
		lpwd:pwd,
		oaid:oaid		
	}, function(response){
		$('#c').fadeOut();
		setTimeout("finishAjax('c', '"+escape(response)+"')", 400);
	});
}


var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
  if (IE) { 
	tempX = event.clientX + document.body.scrollLeft
	tempY = event.clientY + document.body.scrollTop
  } else {      tempX = e.pageX
	tempY = e.pageY
  }
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  return true
}

function movieXY()
{
	var w = screen.width ;
	var h = document.body.scrollHeight ;
	var d = document.getElementById('c');
	d.style.left = w/2-300;
	d.style.top = tempY-150; 
}

function closeMenberWindow(id,flag)
{
  $('#'+id).hide();
  if(flag=='0'){
    $('#haved').hide();
  }
}

