function question_write() {
	var frm = document.frm;
	if(frm.name.value=='') {
		alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		frm.name.focus();
		return false;
	}
	if(frm.email.value=='') {
		alert('E-MailÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		frm.email.focus();
		return false;
	}
	if(frm.title.value=='') {
		alert('Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		frm.title.focus();
		return false;
	}
	if(frm.text.value=='') {
		alert('³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		frm.text.focus();
		return false;
	}
	return true;
}

function view_press (fname){

	var maxwidth  = parseInt(window.screen.width)  - 35;
	var maxheight = parseInt(window.screen.height) - 35;

	var url = '/kr/db_pic/'+fname;
	var newwin = window.open(url,'vp','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width'+maxwidth+', height='+maxheight);
	newwin.document.write("<html><head><title>ºñÆ®·Î½Ã½º</title></head> \n");
	newwin.document.write("<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0> \n");
	newwin.document.write("<a href='javascript:self.close();'><img name='img1' src='"+url+"' border=0 alt='Ã¢À» ´ÝÀ¸½Ã·Á¸é Å¬¸¯ÇÏ¼¼¿ä.'></a> \n");
	newwin.document.write("</body></html>");

	if(parseInt(newwin.document.img1.width) > maxwidth) {
		//newwin.document.img1.width = maxwidth;
		var winwidth = maxwidth;
	} else {
		var winwidth = parseInt(newwin.document.img1.width) + 28;
	}

	if(parseInt(newwin.document.img1.height) > maxheight) {
		//newwin.document.img1.height = maxheight;
		var winheight = maxheight;
	} else {
		var winheight = parseInt(newwin.document.img1.height) + 52;
	}


	newwin.resizeTo(winwidth,winheight);

	newwin.focus();
}

function view_press2(no) {
	var url = '/kr/press_view.php?no='+no;
	var newwin = window.open(url,'vp','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=500');
	newwin.focus();
}

function view_object(obj_html) {
	document.write(obj_html);
}
