/*
 * Description		: script for site skin
 * Author			: Kim Dong-kyu (superkdk@tt.co.kr)
 * Last Modified	: 2004.09.08
 */
/* 霸矫拱 包访 script */
function read_notice_article(db, idx, click, pwidth, pheight) {
	if(click==0) {
		location.href = "ttboard.cgi?act=read&db="+ db+"&idx=" + idx;
	} else if(click==1) {
		window.open("ttboard.cgi?act=popup&db="+ db+"&idx=" + idx, "", "width=" + pwidth + ", height=" + pheight + ", scrollbars=1, resizable=1");
	} else if(click==2) {
		window.open("ttboard.cgi?act=read&db="+ db+"&idx=" + idx, "", "width=" + pwidth + ", height=" + pheight + ", scrollbars=1, resizable=1");
	}
}

function view_notice_image(imgpath) {
	url = "ttsite.cgi?object=common/popupimage&imgpath=" + imgpath;
	viewWin = window.open(url,'', 'width=500, height=400, scrollbars=yes, resizable=yes');
}

function auto_notice_popup(db, idx, pwidth, pheight) {
	window.open("ttboard.cgi?act=popup&db=" + db + "&idx=" + idx + "&auto_popup=1", "", "width=" + pheight + ", height=" + pheight + ", scrollbars=1, resizable=1");
}

function site_search() {
	if(site_search_form.s_key.value == "") {
		alert("八祸且 窜绢甫 涝仿秦 林技夸.");
		site_search_form.s_key.focus();
		return;
	}

	site_search_form.submit();
}


function ps5(){
	window.open("http://onlec.net/photo55/index55.htm","_blank","width=760,height=650,top=0,left=0,resizable=1,scrollbars=yes") // url, 鸥百, 可记
}

function ps6(){
	window.open("http://onlec.net/photo60/index6.htm","_blank","width=760,height=650,top=0,left=0,resizable=1,scrollbars=yes") // url, 鸥百, 可记
}

function ps7(){
	window.open("http://onlec.net/photo70/index7.htm","_blank","width=994,height=750,top=0,left=0,resizable=1,scrollbars=yes") // url, 鸥百, 可记
}

function ps8(){
	window.open("http://onlec.net/photo80/index8.htm","_blank","width=994,height=750,top=0,left=0,resizable=1,scrollbars=yes") // url, 鸥百, 可记
}
function ps9(){
	window.open("http://juryan.com/photoshop/","_blank","width=1000,height=650,top=0,left=0,resizable=1,scrollbars=yes") // url, 鸥百, 可记
}