var NumberValue="0123456789";

function name_layer(url,homepage,corea,no,mode,m_id,m_no,onuser_no,nickname,crcode,immiFriend,portfolio_use,picture,point,grade,ev){
	var lay_name=document.getElementById('name_layer');

	layer_html="";

	if(crcode) crcode_str="&crcode="+crcode;
	else crcode_str="";
	if(nickname) nickname_str="&wordKey_Input="+nickname;
	else nickname_str="";

	layer_html="<table border=0 cellspaicng=0 cellpadding=2 bgcolor=444444 width=100% style='border-width:2px;border-style:solid;border-color:000000'>";
	if(homepage) {
		layer_html+="<tr><td onmouseover=this.style.backgroundColor='555555' onmouseout=this.style.backgroundColor='' onclick=window.open('"+homepage+"','','') style='cursor:pointer'><img src="+url+"images/arrow.gif align=absmiddle> <font style=font-size:8pt;color:eeeeee>È¨ÆäÀÌÁö</font></td></tr>";
		layer_html+="<tr><td height=1 bgcolor=666666 style='padding:0'></td></tr>";
	}
	if(m_no && onuser_no) {
		layer_html+="<tr><td onmouseover=this.style.backgroundColor='555555' onmouseout=this.style.backgroundColor='' onclick=window.open('"+url+"send_note.php?m_no="+m_no+"&mode=write','','width=700px,height=500px,scrollbars=yes,status=no,resizable=yes') style='cursor:pointer'><img src="+url+"images/arrow.gif align=absmiddle> <font style=font-size:8pt;color:eeeeee>ÂÊÁöº¸³»±â</font></td></tr>";
		layer_html+="<tr><td height=1 bgcolor=666666 style='padding:0'></td></tr>";
	}
	if(m_no && onuser_no && m_no!=onuser_no) {
		if(immiFriend){
			layer_html+="<tr><td onmouseover=this.style.backgroundColor='555555' onmouseout=this.style.backgroundColor='' onclick=add_Friendfunc('"+m_no+"','2') style='cursor:pointer'><img src="+url+"images/arrow.gif align=absmiddle> <font style=font-size:8pt;color:eeeeee>Ä£±¸¿¡¼­ Á¦¿Ü</font></td></tr>";
		}else{
			layer_html+="<tr><td onmouseover=this.style.backgroundColor='555555' onmouseout=this.style.backgroundColor='' onclick=add_Friendfunc('"+m_no+"','1') style='cursor:pointer'><img src="+url+"images/arrow.gif align=absmiddle> <font style=font-size:8pt;color:eeeeee>Ä£±¸¸Î±â</font></td></tr>";		
		}
		layer_html+="<tr><td height=1 bgcolor=666666 style='padding:0'></td></tr>";
	}
	if(m_no) {
		layer_html+="<tr><td onmouseover=this.style.backgroundColor='555555' onmouseout=this.style.backgroundColor='' onclick=location.href('http://www.eyecg.com/portfolio/?m_no="+m_no+"') style='cursor:pointer' target=_blank><img src="+url+"images/arrow.gif align=absmiddle> <font style=font-size:8pt;color:eeeeee>Æ÷Æ®Æú¸®¿À</font></td></tr>";
		layer_html+="<tr><td height=1 bgcolor=666666 style='padding:0'></td></tr>";
	}	
	//layer_html+="<tr><td onmouseover=this.style.backgroundColor='555555' onmouseout=this.style.backgroundColor='' onclick=location.href('"+url+"?corea="+corea+"&search_exe=1&select_searchType=4"+nickname_str+crcode_str+"') style='cursor:pointer'><img src="+url+"images/arrow.gif align=absmiddle> <font style=font-size:8pt;color:eeeeee>ÀÛ¼ºÀÚ°Ë»ö</font></td></tr>";	
	//layer_html+="<tr><td height=1 bgcolor=666666 style='padding:0'></td></tr>";
	if(picture){
		layer_html+="<tr><td align=center>"+picture+"</td></tr>";
	}
	if(point){
		layer_html+="<tr><td align=center class=pro_a8>Point : <B>"+point+"</B></td></tr>";
	}
	if(grade){
		layer_html+="<tr><td align=center class=pro_han style=color:eeeeee>("+grade+")</td></tr>";
	}
	layer_html+="</table>";

	lay_name.innerHTML=layer_html;

	with (lay_name.style) { 

		if(window.event) var ev=window.event;

		left=(ev.clientX-100)+'px';
		top=document.body.scrollTop+(ev.clientY+5)+'px';

		visibility="visible";
	}
}


function layer_hide(name,num){
	if(num==1) document.getElementById(name).style.visibility="hidden";
	else document.getElementById(name).style.visibility="visible";
}

function cmt_RM(no,mode,exists_response,m_no,secret_cmt,anonym){

	var prev_name=document.tmp_form.tmp_value1.value;
	var prev_mode=document.tmp_form.tmp_value2.value;
	var oriform=document.getElementById('cmtDivElement');
	var Cmt_Write_form=oriform.innerHTML;
	var name="RP_"+no;
	var OCS="origin_contents_"+no;
	var ONE="origin_nickname_"+no;

//	document.getElementById('filehide').display="none";

	if(oriform){
		if(prev_name!=name){
			if(prev_name && prev_name!=name){
				inner_form=document.getElementById(prev_name).innerHTML;
				document.getElementById(prev_name).innerHTML='';			
			}else inner_form=Cmt_Write_form;
			oriform.innerHTML='';				
			document.getElementById(name).innerHTML=inner_form;
			document.getElementById(name).style.display='';
			document.ment.mode.value=mode;
			document.ment.c_no.value=no;						
		}
		if(mode=="response"){
			if(exists_response){
				if(confirm('¼±ÅÃÇÏ½Å ´ñ±ÛÀº ÀÌÀü´äº¯(µé)ÀÌ Æ÷ÇÔµÈ ±ÛÀÔ´Ï´Ù.\n\nÀÌÀü´äº¯(µé)À» Æ÷ÇÔ ÇÏ½Ã°Ú½À´Ï±î?')==true) document.ment.direct_response.value=1;
			}
			else document.ment.direct_response.value='';
			document.ment.cforeno.value=no;
			document.ment.contents.value='';
			if(document.ment.nickname) document.ment.nickname.value='';
			if(secret_cmt=="YES"){
				document.ment.secret_cmt.checked=true;
				document.ment.secret_cmt.disabled=true;
			}else if(document.ment.secret_cmt) document.ment.secret_cmt.checked=false;
			if(document.ment.mode) document.ment.mode.value='response';
		}
		else{
			if(document.getElementById('NamePassShowHide')){
				if(m_no=="0") document.getElementById('NamePassShowHide').style.display='';
				else document.getElementById('NamePassShowHide').style.display='none';
			}
				
			document.ment.contents.value=document.getElementById(OCS).value;
			if(document.ment.nickname) document.ment.nickname.value=document.getElementById(ONE).innerHTML;
			if(secret_cmt=="YES"){
				document.ment.secret_cmt.checked=true;
				document.ment.secret_cmt.disabled=false;
			}else if(document.ment.secret_cmt) document.ment.secret_cmt.checked=false;
			if(anonym=="YES" && document.ment.anonym_ok) document.ment.anonym_ok.checked=true;
			else {if(document.ment.anonym_ok) document.ment.anonym_ok.checked=false;}
			if(document.ment.mode) document.ment.mode.value='modify';
		}	
		document.tmp_form.tmp_value1.value=name;
		document.tmp_form.tmp_value2.value=mode;
		ment_input_check(1);
	}
}


function ment_input_check(ask){
	var ment_form=document.ment;
	if(document.getElementById('NamePassShowHide').style.display==''){
		if(!ment_form.nickname.value) {
			if(!ask) alert ("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä.");
			ment_form.nickname.focus();
			return false;
		}
		if(!ment_form.password.value) {
			if(!ask) alert ("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			ment_form.password.focus();
			return false;
		}
	}
	if(!ment_form.contents.value) {
		if(!ask) alert ("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
		ment_form.contents.focus();
		return false;
	}

	if(document.ment.mode.value=='response' && document.ment.secret_cmt && document.ment.secret_cmt.disabled==true){
		document.ment.secret_cmt.disabled=false;
		document.ment.secret_cmt.checked=true;
	}

	return true;
}

function cmtWrtieFormVisible(){
	var tmp_name=document.tmp_form.tmp_value1.value;
	if(tmp_name){		
		if(document.getElementById('cmtDivElement')){
			document.getElementById('cmtDivElement').innerHTML=document.getElementById(tmp_name).innerHTML;
			document.getElementById(tmp_name).innerHTML='';
			if(document.ment.nickname) document.ment.nickname.value='';
			if(document.ment.contents) document.ment.contents.value='';
			if(document.ment.direct_response) document.ment.direct_response.value='';
			if(document.ment.cforeno) document.ment.cforeno.value='';
			if(document.ment.c_no) document.ment.c_no.value='';
			if(document.ment.mode) document.ment.mode.value='';	
			if(document.ment.secret_cmt) document.ment.secret_cmt.checked=false;	
			if(document.ment.anonym_ok) document.ment.anonym_ok.checked=false;	
			
			document.tmp_form.tmp_value1.value="";
			document.tmp_form.tmp_value2.value="";
		}
	}
}

function cmt_ERASE(no,check,m_no,tranURLvalue,exist_response,bestgallery,gallery_type){

	var TValue=tranURLvalue.split(",");
	var PutValue="&cmt_no="+no+"&m_no="+m_no+"&corea="+TValue[0]+"&no="+TValue[1]+"&mode=cmt_erase&page="+TValue[2]+"&page_div="+TValue[3]+"&cpage="+TValue[4]+"&cpage_div="+TValue[5]+"&ca_no="+TValue[6]+"&parade="+TValue[7]+"&keyword="+TValue[8]+"&bestgallery="+bestgallery+"&gallery_type="+gallery_type;
	if(exist_response){
		alert('º» ÄÚ¸àÆ®¿¡ ´äº¯ÀÌ ÀÖ¾î »èÁ¦¸¦ ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
		return false;
	}
	if(!check && m_no!="0"){
		alert('»èÁ¦ÇÏ½Ç ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.');
		return false;
	}
	/*
	if(check==1 ){
		if(confirm("ÄÚ¸àÆ®¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")==true) location.href="?class=delete&direct=1"+PutValue;
		else return false;
	}*/
	location.href="?class=delete"+PutValue;

	return true;
}

function cmt_ERASE2(str,cno,no){

	if(confirm(str)==true){
		document.delete_article.cmt_no.value=cno;
		document.delete_article.no.value=no;
		document.delete_article.submit();
	}
	else return false;
}

function sendform_submit2(mno){

	if(!mno){

		if(document.send_form.nickname.value==false){
			alert("ÀÌ¸§À» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")
			if(document.send_form.nickname) document.send_form.nickname.focus();
			return false;
		}	
		if(document.send_form.password.value==false){
			alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")
			if(document.send_form.password) document.send_form.password.focus();
			return false;
		}	
	}

	if(document.send_form.contents.value==false){
		alert("³»¿ëÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")
		if(document.send_form.contents) document.send_form.contents.focus();
		return false;
	}	

	document.send_form.submit();
}

function textsubmit2(mode,no,ct,nm,pw,mno,fs){
	
	document.send_form.contents.style.color='#FFFFFF';

	document.send_form.contents.value=document.getElementsByName(ct)[0].value;	

	if(!mno){

		if(document.getElementsByName(nm)[0].value==false){
			alert("ÀÌ¸§À» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")
			if(document.getElementsByName(nm)[0]) document.getElementsByName(nm)[0].focus();
			return false;
		}	
		if(document.getElementsByName(pw)[0].value==false){
			alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")
			if(document.getElementsByName(pw)[0]) document.getElementsByName(pw)[0].focus();
			return false;
		}	

		document.send_form.nickname.value=document.getElementsByName(nm)[0].value;	

		document.send_form.password.value=document.getElementsByName(pw)[0].value;	
	}

	if(document.getElementsByName(ct)[0].value==false){
		alert("³»¿ëÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.")
		if(document.getElementsByName(ct)[0]) document.getElementsByName(ct)[0].focus();
		return false;
	}		

	if(document.getElementsByName('secret'+no)[0].checked) document.send_form.secret_cmt.checked=true;
	else document.send_form.secret_cmt.checked=false;

	document.send_form.c_no.value=no;
	//document.send_form.inputFileName.value=fs;
	document.send_form.submit();
}

function commentexe2(no,mode,secret,mno,type,nick){

	ct='contents'+no;
	sc='secret'+no;
	fs='file'+no;
	nm='nickname'+no;
	pw='password'+no;

	if(mode=="modify") writestr='<font color=47b349>¼öÁ¤ÇÏ±â</font>';
	else if(mode=="response") writestr='<font color=478eb3>´äº¯ÇÏ±â</font>';
	else writestr='ÀÛ¼ºÇÏ±â';

	if(!nick) nick="";

	if(secret=='YES') secret='checked';
	else secret='';

	if(!document.getElementById("ansbox_"+no).style.display && document.send_form.mode.value==mode) {	

		document.getElementById("ansbox_"+no).style.display='none';
		document.getElementById("origin_mentform").style.display='block';
		return ;
	}else if(document.send_form.no.value==no && document.send_form.mode.value=="modify" && mode=="response" && document.getElementById("ansbox_"+no).style.display!='none') alert("»õ ´ñ±ÛÀ» ÀÛ¼ºÇÕ´Ï´Ù.");

	var tmp=document.getElementById("contents_"+no).innerHTML;

	memobox=tmp.replace(/<br>/gim,""); 	 	

	str="<table border=0 cellspacing=0 cellpadding=3 width=100% style=table-layout:fixed><col width=><col width=90>";

	if(!mno){ 
		str+="<tr><td colspan=2>ÀÌ¸§&nbsp;&nbsp;<input type=text name="+nm;
		if(nick) "value="+nick;
		str+=" class=input size=20>&nbsp;&nbsp;ÆÐ½º¿öµå&nbsp;&nbsp;<input type=password name="+pw+" class=input size=20></td></tr>";
	}

	str+="<tr><td><textarea name="+ct+" rows=3 cols=5 style=height:75;width:100%;border-width:2px;border-style:solid;border-color:dddddd;background-color:ffffff>";
	if(mode=="modify") str+=memobox;
/*
	str+="</textarea></td><td background='./images/bt_send_fr.gif' style='background-repeat:no-repeat;background-position:center;'"+
	" align=center onclick=textsubmit2('"+mode+"',"+no+",'"+ct+"','"+nm+"','"+pw+"','"+mno+"','"+fs+"') style='cursor:pointer'>"+writestr;
	"</td></tr><tr><td align=right><input type='file' name="+fs+" style='width:88%;display:inline' class='input'>&nbsp;";

	if(!type) str+="<input type=checkbox name="+sc+" value='1' "+secret+"> ºñ¹Ð±Û»ç¿ë";
	str+="</td></tr></table>";
*/
	str+="</textarea></td>"+
	"<td background='../images/blog/bt_send_fr.gif' style='background-repeat:no-repeat;background-position:center;' align=center"+
	" onclick=textsubmit2('"+mode+"',"+no+",'"+ct+"','"+nm+"','"+pw+"','"+mno+"','"+fs+"')"+
	" style='cursor:pointer'>"+writestr+"</td>"+
	"</tr><tr><td align=right>";
	if(!type) str+="<input type=checkbox name="+sc+" value=1 "+secret+"> ºñ¹Ð±Û»ç¿ë";
	str+="</td></tr></table>";

	document.getElementById("ansbox_"+no).style.display='';

	document.getElementById("ansbox_"+no).innerHTML=str;

	document.getElementById("origin_mentform").style.display='none';

	document.send_form.c_no.value=no;
	if(mode=="response") document.send_form.cforeno.value=no;
	document.send_form.mode.value=mode;	
}

function commentexe3(no,mode,secret,mno,type,nick){

	ct='contents'+no;
	sc='secret'+no;
	fs='file'+no;
	nm='nickname'+no;
	pw='password'+no;

	if(mode=="modify") writestr='<font color=47b349>¼öÁ¤ÇÏ±â</font>';
	else if(mode=="response") writestr='<font color=478eb3>´äº¯ÇÏ±â</font>';
	else writestr='ÀÛ¼ºÇÏ±â';

	if(!nick) nick="";

	if(secret==true) secret='checked';
	else secret='';

	if(!document.getElementById("ansbox_"+no).style.display && document.send_form.mode.value==mode) {		

		document.getElementById("ansbox_"+no).style.display='none';
		document.getElementById("origin_mentform").style.display='';
		return ;
	}else if(document.send_form.no.value==no && document.send_form.mode.value=="modify" && mode=="response" && document.getElementById("ansbox_"+no).style.display!='none') alert("»õ ´ñ±ÛÀ» ÀÛ¼ºÇÕ´Ï´Ù.");

	var tmp=document.getElementById("contents_"+no).innerHTML;

	memobox=tmp.replace(/<br>/gim,"\r\n"); 	 	

	str="<table border=0 cellspacing=0 cellpadding=3 bgcolor=333333 width=100% style=table-layout:fixed><col width=><col width=90>";

	if(!mno){ 
		str+="<tr><td colspan=2>ÀÌ¸§&nbsp;&nbsp;<input type=text name="+nm;
		if(nick) "value="+nick;
		str+=" class=input size=20>&nbsp;&nbsp;ÆÐ½º¿öµå&nbsp;&nbsp;<input type=password name="+pw+" class=input size=20></td></tr>";
	}

	str+="<tr><td><textarea name="+ct+" rows=3 cols=5 style=height:75;width:100%;border-width:2px;border-style:solid;border-color:333333;background-color:000000>";
	if(mode=="modify") str+=memobox;

	str+="</textarea></td><td background='./images/bt_send_fr2.gif' style='background-repeat:no-repeat;background-position:center;'"+
	" align=center onclick=textsubmit2('"+mode+"',"+no+",'"+ct+"','"+nm+"','"+pw+"','"+mno+"','"+fs+"') style='cursor:pointer'>"+writestr;
	"</td></tr><tr><td align=right><input type='file' name="+fs+" style='width:88%;display:inline' class='input'>&nbsp;";

	if(!type) str+="<input type=checkbox name="+sc+" value='YES' "+secret+"> ºñ¹Ð±Û»ç¿ë";
	str+="</td></tr></table>";

	document.getElementById("ansbox_"+no).style.display='';

	document.getElementById("ansbox_"+no).innerHTML=str;

	document.getElementById("origin_mentform").style.display='none';

	document.send_form.c_no.value=no;
	if(mode=="response") document.send_form.cforeno.value=no;
	document.send_form.mode.value=mode;	
}

function SearchGo_onsubmit(type){

	if(type==1){
		if(document.search_form.wordKey_Input){
			if(!document.search_form.wordKey_Input.value){
				alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
				document.search_form.wordKey_Input.focus();
				return false;
			}
		}
	}
	else{
		if(document.goValue_form.go_valueInput){
			if(!document.goValue_form.go_valueInput.value) {
				if(document.goValue_form.select_goDirect.value==1) alert ("ÀÌµ¿ ÇÒ ÆäÀÌÁö¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
				else alert ("ÀÌµ¿ ÇÒ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
				document.goValue_form.go_valueInput.focus();
				return false;
			}


			for (i=0;i<document.goValue_form.go_valueInput.value.length;i++){ 
				tmpstr=""+document.goValue_form.go_valueInput.value.substring(i,i+1); 
				if (NumberValue.indexOf(tmpstr)=="-1"){ 
					alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
					document.goValue_form.go_valueInput.value=""; 
					document.goValue_form.go_valueInput.focus(); 
					return false;
				}
			}
		}	
	}
	return true;
}

function ca_gourl(corea,url_reduce,crcode){
	var ca_no=document.category_form.category.value;
	if(crcode) crcode_str="&crcode="+crcode;
	else crcode_str="";
	if(ca_no){
		window.location.replace(url_reduce+"&ca_no="+ca_no+crcode_str);
	}else window.location.replace("?corea="+corea+crcode_str);
}


window.onload=function(){
	if(document.getElementById("resize_table") && document.MainImage){
		table_width=document.getElementById("resize_table").offsetWidth;
		if(!document.MainImage.width){
			for(i=0;i<document.MainImage.length;i++){

				if(document.MainImage[i].width>=table_width) document.MainImage[i].width=table_width;
			}
		}else if(document.MainImage.width>=table_width) document.MainImage.width=table_width;
	}
}


function newWin(){
	nw=window.open('','poll_win','width=650,height=720,scrollbars=YES');
}

function poll_check(action_url,value){
	var check_ok="";

	if(value) document.poll_form.poll_exe.value="";
	else{
		for(i=0;i<document.poll_form.pvalue.length;i++){
			if(document.poll_form.pvalue[i].checked){
				check_ok=1;
				break;
			}
		}

		if(!check_ok){
			alert('Ç×¸ñÀ» ¼±ÅÃÇÏ½Ê½Ã¿À.');
			return false;
		}	
	}

	document.poll_form.action=action_url+"main.php";
	document.poll_form.target="poll_win";	
	document.poll_form.submit(newWin());

	return true;
}


function script_autologin(){
	if(document.login_form.autologin_ok.checked==true){
		var str="°æ°í!!\n\nÀÚµ¿·Î±×ÀÎÀ» ÇÏ°Ô µÉ °æ¿ì ´ÙÀ½(ÀÌÈÄ) ·Î±×ÀÎ ½Ã ¾ÆÀÌµð/ºñ¹Ð¹øÈ£ ÀÔ·Â¾øÀÌ »çÀÌÆ®Á¢¼Ó°ú µ¿½Ã¿¡\n\nÀÚµ¿À¸·Î ·Î±×ÀÎÀÌ µÇ´Â °ÍÀ» ÀÇ¹ÌÇÏ´Â °ÍÀ¸·Î º»ÀÎ ¿Ü Å¸ÀÎÀÌ ÇöÀç»çÀÌÆ®¿¡ Á¢¼ÓÀ» ÇÏ°Ô µÉ °æ¿ì \n\nÄ¡¸íÀûÀÎ °á°ú¸¦ ÃÊ·¡ÇÏ¹Ç·Î, ½ÅÁßÈ÷ ÇÏ½Ã±â ¹Ù¶ó¸ç ½Ç¼ö¿¡ ÀÇÇÑ Ã¥ÀÓÀº º»ÀÎ¿¡°Ô ÀÖ½À´Ï´Ù.";
		if(confirm(str)==false) document.login_form.autologin_ok.checked=false;
	}
}

function banner_div(flashsrc,flashwidth,flashheight,flashlink){ 
    document.write("<table width="+flashwidth+" height="+flashheight+" border=0 cellpadding=0 cellspacing=0><tr><td>"); 
    document.write("<div style=\"position:relative\">"); 
    document.write("<embed style=\"position:absolute;z-index:0\" src="+flashsrc+" quality=\"high\" width="+flashwidth+" height="+flashheight+" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" wmode=\"opaque\"></embed>"); 
    document.write("<div style=\"position:relative;filter:alpha(opacity=0);-moz-opacity:0;z-index:10;left:0;top:0;background:transparent !important;background:#cdeaf6;width:"+flashwidth+";height:"+flashheight+"px;\">"); 
    document.write("<a href="+flashlink+" target=\"_blank\" style=\"cursor:pointer;display:block;width:"+flashwidth+";height:"+flashheight+"px;\"></a>"); 
    document.write("</div>"); 
    document.write("</div>"); 
    document.write("</td></tr></table>"); 
} 

function banner_link(code,ps_url,url,linktype){
	if(linktype==1) window.open(ps_url+"common_exe.php?code="+code+"&class=banner&aurl="+url,'','');
	else location.href=ps_url+"common_exe.php?code="+code+"&class=banner&aurl="+url;
}

function scrap_confirm(){
	if(confirm("º» ±ÛÀ» ½ºÅ©·¦ ÇÏ½Ã°Ú½À´Ï±î?")==true) exe_frame.document.scrap_form.submit();
}

function ment_viewer(table,ctable,corea,no,ps_url){
	window.open(ps_url+"mentview.php?table="+table+"&ctable="+ctable+"&corea="+corea+"&no="+no,'','width=700,height=800,resizble=yes,scrollbars=yes');
}

function showdiv(id,event){

	var lay_name=document.getElementById(id);

	with (lay_name.style) { 

		if(window.event) var ev=window.event;

		left=(ev.clientX-50)+'px';
		top=document.body.scrollTop+(ev.clientY+5)+'px';

		visibility="visible";
	}
}
