// 창 열기 
function Open_Window(URL,WinName,width_size, height_size, target)
{
	var leftpos = (screen.width-width_size)/2;
	var toppos = (screen.height-height_size)/2;
	
		window.open(URL,WinName,"width="+width_size+",height="+height_size+",scrollbars=yes,resizable=yes,top="+toppos+",left="+leftpos);
}

function Open_Window2(URL,WinName,width_size, height_size, target)
{
	var leftpos = (screen.width-width_size)/2;
	var toppos = (screen.height-height_size)/2;
	
		window.open(URL,WinName,"width="+width_size+",height="+height_size+",scrollbars=yes,resizable=yes,top=50,left=50");
}

function Open_Window3(URL,WinName,width_size, height_size, target)
{
	var leftpos = (screen.width-width_size)/2;
	var toppos = (screen.height-height_size)/2;
	
		window.open(URL,WinName,"width="+width_size+",height="+height_size+",scrollbars=no,resizable=no,top=50,left=50");
}


// 삭제 확인 
function Delete_Ok(){ 
	if(confirm('선택하신 것을 삭제 하겠습니까?')){ 
		return true; 
	} else { 
		return false; 
	} 
} 


// 수정확인
function Modify_Ok(){ 
	if(confirm('수정 합니다')){ 
		return true; 
	} else { 
		return false; 
	} 
} 


// 새창 닫기
function Close_Window() {
	close();
}


// 입력영역 확인
function isEmpty(data) {
	for (var i = 0; i < data.length; i++ ) {
		if (data.substring(i, i + 1) != ' ')
			return false;
	}
	return true;
}


// 추천 확인 
function Confirm_Ok(param1){ 
	if(confirm(param1)){ 
		return true; 
	} else { 
		return false; 
	} 
} 

function openbaksuk()
{
	var url = "http://record.knowhow.or.kr/find_baksuk/know.php";
	var screen_width	= screen.availWidth;
	var screen_height	= screen.availHeight;
	var pop_width			= 1024;
	var pop_height		= 768;
	var top					= (screen_height - pop_height) / 2;	
	var left					= (screen_width - pop_width) / 2;	
	var param = "scrollbars=yes, width=" + pop_width + ", height=" + pop_height + ", top=" + top + ", left=" + left;
	window.open(url,"",param);	
}

