function openChildWindow(width, height, x, y, theURL) {
	var settings;
	settings='width='+width+',height='+height+',top='+y+',left='+x+', scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; 
	childWindow = open(theURL, '', settings);
	if(childWindow.opener == null) childWindow.opener = self;
}

function getCookieId() {
	cookiedata = document.cookie;
	for(i=0;i<cookiedata.length-12;i++)
		if(cookiedata.substr(i,10) == "cookie_id=" && cookiedata.substr(i+10,2) != "; ")
			for(j=i+10;j<cookiedata.length;j++)
				if(cookiedata.charAt(j) == ';')
					return cookiedata.substr(i+10,j-i-10);
	return "error";
}

function memberForceOut(id,language){
	if(confirm(id+'´ÔÀ» °­Á¦ Å»Åð½ÃÅ°°Ú½À´Ï±î?'))
	{
		document.location="member_force_out.php?id="+id+"&language="+language;
	}
}

function memberOutConfirm(language){
	id = getCookieId();
	if(confirm(id+'´Ô Á¤¸» Å»ÅðÇÏ½Ã°Ú½À´Ï±î? Å»Åð½Ã¿¡´Â µÇµ¹¸± ¼ö ¾ø½À´Ï´Ù.'))
	{
		document.location="member_out.php?language="+language;
	}
}

function deleteTeam(id,language) {
	if(confirm(id+'ÆÀÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
		document.location = "team_del.php?team_id="+id+"&language="+language;
	}
}

function teamPeopleOut(team_id, people_id, language) {
	document.location = "team_people_out.php?team_id="+team_id+"&people_id="+people_id+"&language="+language;
}

function projectPeopleOut(project_id, people_id, language) {
	document.location = "project_people_out.php?project_id="+project_id+"&people_id="+people_id+"&language="+language;
}

function deleteProject(id,language) {
	if(confirm(id+' °úÁ¦¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
		document.location = "project_del.php?project_id="+id+"&language="+language;
	}
}

/*

function deleteBoard(bid,tid) {
	if(confirm(tid+'ÆÀÀÇ '+bid+'°Ô½ÃÆÇÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?'))
	{
		document.location = "board_del.php?board_id="+tid+'_'+bid+"&team_id="+tid;
	}
}

function onAddFile()
{
	document.bdwt.action = "boardpage_write_content_file.php";
	document.bdwt.file_cnt.value = eval(document.bdwt.file_cnt.value)+1;
//	alert(document.bdwt.file_cnt.value);
	document.bdwt.submit();
}

function onDelFile(idx)
{
	cnt = eval(document.bdwt.file_cnt.vlaue);
	document.bdwt.action = "boardpage_write_content_file.php";
	for(i=idx;i<cnt;i++)
	{
		document.bdwt.elements[i+4].value = document.bdwt.elements[i+5].value;
	}
	document.bdwt.file_cnt.value = cnt-1;
//	alert(document.bdwt.elements[idx+4].value);
//	document.bdwt.submit();
}
//*/