function open_hompy( uid ){
	var url = '/hompy/index.php?uid='+uid
	window.open(url,'hompy_'+uid,'width=820,height=650,scrollbars=no,status=yes');
}

function open_hompy( uid, sub ){
	var url = '/hompy/index.php?uid='+uid
	if( sub != null ) url = url + '&sub='+sub
	window.open(url,'hompy_'+uid,'width=820,height=650,scrollbars=no,status=yes');
}

function open_hompy( uid, sub, no ){
	var url = '/hompy/index.php?uid='+uid
	if( sub != null ) url = url + '&sub='+sub
	if( no != null ) url = url + '&step=read&no='+no
	window.open(url,'hompy_'+uid,'width=820,height=650,scrollbars=no,status=yes');
}

function loginPOP(){
	window.open('/EBpro_member/loginPOP.php','win_login','width=500,height=350')
}

function ebpro_loginPOP(){
	window.open('/EBpro_member/loginPOP.php','win_login','width=500,height=350,status=yes')
}

// 아이디 찾기
function pop_find_id(){
	window.open("/member/member_popup_findid.php","findid","width=600,height=400,scrollbars=1,status=yes")
}

// 각종파일에서 날자선택 창
function ebpro_pop_select_date( fieldname, seldate ){
	window.open('/EBpro_popup/pop_select_date.php?fieldname='+fieldname+'&seldate='+seldate,'date','width=200,height=200,scrollbars=1,status=yes')
}

// 색상 선택창
function ebpro_pop_get_color(fieldname){
        window.open("/EBpro_popup/pop_color.php?fieldname="+fieldname, "emc_color", "width=270,height=250,status=yes");
}

// ebpro_flash  플래쉬 출력 (파일경로, 가로, 세로, 아이디, 배경색, 윈도우모드)
function ebpro_flash(url,w,h,id,bg,win){
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"'  menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	document.write(flashStr);
}

