//새로운 창문을 띄우는 함수
function open_window( name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable )
{
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

//파라메터로 넘어온 창문이 우에 뜨도록 하는 함수
function new_window_load( windowname ) {
	focus( windowname );
}

//전자상점과 련동시키기 위한 함수(상품바구니에 담긴다.)
function shopping( kindid, pagenum, productid, attribute ) {
	var url = "reading.php?" + kindid + "+" + pagenum + "+" + productid + "+" + attribute;
	window.open( url, "_self" );
}

function KeyPress (){
	if ( window.event.keyCode == 13 )
		search_book.submit();
}

