function pulldown(flag,id){
	if (flag) {
		document.getElementById(id).style.visibility = "hidden";
		tcnt=false;
		setTimeout("clearcnt()",1000);
	}else{
		document.getElementById(id).style.visibility ="visible";
		if(tcnt){
			fadeWindow(10,id);
		}
	}
	
}

cnt = 0;
tcnt=true;
function clearcnt(){
	cnt = 0;
	tcnt=true;
}

function fadeWindow(s,id) {
  if(cnt < s) {
	  cnt++;
	  setTimeout("fadeWindow('" + s + "','"+id+"')",30);
  }
  if(cnt > s) {
	  cnt = s;
	  tcnt=false;
  }
  document.getElementById(id).style.top =(116+cnt)+"px";
}

function wopen(url){
	window.open(url,"sample","width=830, height=620, scrollbars=no, location=no, menubar=no, left=10, top=30");
}

function ctlw(url){
	window.opener.location.href = url;
}
