/* ------------------------------------------------------------
 * Name      : common.js
 * Desc       : PentaBreed script 
 * Created   : 2008/02/01 PentaBreed by Suga
 ------------------------------------------------------------ */

//Element ID ºÒ·¯¾²±â
function dEI(elementID){
	return document.getElementById(elementID);
}

// first ¿¹¿ÜÃ³¸® firstChild(ºí·°Id, ÅÂ±×³×ÀÓ, Ã³¸®ÇÒ ¾ÆÀÌÅÛ ¹øÈ£) // ¾ÆÀÌÅÛ¹øÈ£´Â 0¹øºÎÅÍ ¹ÝÈ¯
function firstChild(Elid, Etn, Num){
	if(Num==""){Num=0;}
	liEl = dEI(Elid).getElementsByTagName(Etn);
	if (liEl.item(Num)) {
		liEl.item(Num).className += " firstchild";
	}
}

//ÆË¾÷¶ç¿ì±â
function openPop(url,idn,intWidth,intHeight,scroll) { 
	//alert("pop_scroll");
	window.open(url, idn,"width="+intWidth+", height="+intHeight+",resizable=0,scrollbars="+scroll) ;
}

//ÆË¾÷ Áß¾Ó
function popup_center(url,w, h, s, r) {

width=screen.width;
height=screen.height;

x=(width/2)-(w/2);
y=(height/2)-(h/2);

opt = "left=" + x + ", top=" + y + ", width=" + w + ", height=" + h;
opt = opt + ", toolbar=no,location=no,directories=no,status=no,menubar=no";
opt = opt + ",scrollbars=" + s;
opt = opt + ",resizable=" + r;
window.open(url, "pop", opt);

}

//°øÁö·¹ÀÌ¾î
function notice(view){
	//alert(view);
	dEI("notice"). style. display = view;
	dEI("frameNotice").src="board/notice_list.asp";
}


//ÀÌ¹ÌÁö ºä
function ViewIMG(pIMG)
{
	window.open("/js/pViewIMG.asp?IMG=" + pIMG,"VIEWIMG","top=0,left=0,scrollbars=yes,resizable=yes");
}

//»õÃ¢¶ì¿ì±â
function blank(url){
	window.open(url,"","resizable=0,scrollbars=0,menubar=0,toolbar=0,location=0,status=0,directories=0, width=970px,height=610px,")
}
