function showImage(filename)
	{
		alert('원본보기는 현재지원을 하지않습니다.');
	}
function riview(oj){
	
  popleft  =(screen.width-684)/2;
  popright =(screen.height-500)/3;
  o =document.leftvalue.categori.value
  window.open('App/reply_form.jsp?cate='+o,'review','width=700,height=500,left='+popleft+',top='+popright);

}
function gallery(oj){
  popleft  =(screen.width-684)/2;
  popright =(screen.height-500)/3;
  o =document.leftvalue.categori.value
  window.open('App/gallery_form.jsp?cate='+o,'gallery','width=605,height=502,left='+popleft+',top='+popright);

}
function Check(Path){
	Cforms=document.Cform
	Tforms=document.leftvalue
		if(Cforms.LoginId.value==''){
			alert('아이디를 입력하세요');
			Cforms.LoginId.focus();
			return false
		}
		
		Tforms.Passwd.value =Cforms.Passwd.value
		Tforms.LoginId.value =Cforms.LoginId.value			
	goCheckingMain('/map/App/LoginSubmitSession.jsp','Main',1,Path)
}
function r_del(target,idx,cate,pages,table){
	Tform =document.leftvalue
	//Tform.categori.value=cate
	Tform.idx.value=idx		
	Tform.pages.value=pages	
	Tform.table.value=table
goCheckingMain('/map/App/delete_form.jsp','Main','1',target)
}
function board_list(pages,cate,target){
Tform =document.leftvalue
//Tform.categori.value=cate
Tform.pages.value=pages	
goChecking2(target)
}

function board_sin(target,idx,cate,pages){
	Tform =document.leftvalue
	//Tform.categori.value=cate
	Tform.idx.value=idx		
	Tform.pages.value=pages	
	Tform.keyword.value=target		
		if(idx=="" && cate=="" && target==""){
			alert('오류 브라우저 재시작을 해주세요');
			return false
		}
goCheckingMain('/map/App/view/singo.jsp','Main','0',target)
}

function Check_tran(Path){
	Cforms=document.reply
		if(Cforms.Subtext.value==''){
			alert('평가내용을 입력하세요');
			Cforms.Subtext.focus();
			return false
		}			
		Tforms=document.leftvalue;
		Tforms.Subtext.value =Cforms.Subtext.value;
		for(i=0;i<Cforms.quf.length;i++){
			if(Cforms.quf[i].checked){
				Tforms.quf.value =Cforms.quf[i].value;
			}
		}					
	goCheckingMain('/map/App/Prosess_from.jsp','Main',1,Path)
}
	function Check_tran_singo(Path,Cate,idx,pages){	
	Cforms=document.reply
		if(Cforms.Subtext.value==''){
			alert('신고내용을 입력하세요');
			Cforms.Subtext.focus();
			return false
		}			
		Tforms=document.leftvalue
		Tforms.Subtext.value  =Cforms.Subtext.value
		if(idx=="" && Cate=="" && Path==""){
			alert('오류 브라우저 재시작을 해주세요');
			return false
		}
		Tforms.idx.value	  =idx
		//Tforms.categori.value =Cate
		Tforms.keyword.value  =Path
		for(i=0;i<Cforms.quf.length;i++){
			if(Cforms.quf[i].checked){
				Tforms.quf.value =Cforms.quf[i].value
			}
		}					
	
	goCheckingMain('/map/App/Prosess/Prosess_board_singo.jsp','Main',0,Path)
	
}
function img(obj,v){	
	obj.src='/map/img/noimg'+v+'.gif'
}
function imgonclick(obj,v){
	if(v==0){
		document.getElementById("par").src='/map/img/par_on.gif';
		document.getElementById("re").src='/map/img/review3.gif';
		document.getElementById("photo").src='/map/img/photo.gif';
	}else if(v==1){
	document.getElementById("par").src='/map/img/par.gif';
	document.getElementById("re").src='/map/img/review_on.gif';
	document.getElementById("photo").src='/map/img/photo.gif';
	}else if(v==2){
	document.getElementById("par").src='/map/img/par.gif';
	document.getElementById("re").src='/map/img/review3.gif';
	document.getElementById("photo").src='/map/img/photo_on.gif';}
}
function menuonclick(obj,v){
	if(v==0){m1.src='/map/img/Mn01_on.png';m2.src='/map/img/Mn02.png';m3.src='/map/img/Mn03.png';m4.src='/map/img/Mn04.png';
	}else if(v==1){
	m1.src='/map/img/Mn01.png';m2.src='/map/img/Mn02_on.png';m3.src='/map/img/Mn03.png';m4.src='/map/img/Mn04.png';
	}else if(v==2){
	m1.src='/map/img/Mn01.png';m2.src='/map/img/Mn02.png';m3.src='/map/img/Mn03_on.png';m4.src='/map/img/Mn04.png';
	}else if(v==3){
	m1.src='/map/img/Mn01.png';m2.src='/map/img/Mn02.png';m3.src='/map/img/Mn03.png';m4.src='/map/img/Mn04_on.png';}
}
function imgview(v,text,ok,idx,cate,pages,write,ctype){
	
	document.getElementById("memo").innerHTML=text
	document.getElementById("writeid").innerHTML=write		
	if(ctype=="blog"){
	document.getElementById('imgold').src=v
	}else{
	document.getElementById('imgold').src="upload/theum/Bigthem_"+v
	}
	if(ok=='1'){				
	document.getElementById("imgmark").innerHTML="<img src='/map/img/del.gif' onclick=if(confirm('삭제하시겠습니까.')){r_del('/map/App/galley.jsp','"+idx+"','"+cate+"','"+pages+"','gallery')}>"; 					
	}else if(ok=='0'){
	document.getElementById("imgmark").innerHTML=""
	}else{
	document.getElementById("imgmark").innerHTML=""
	}
	

}
function good(idx,type,getid){
goCheckingcount(idx,type,getid);
}
