');
}
}
hasCloseBtn=false;
$(popifr.contentWindow.document.body).css({'background-color':'#fff','overflow':'hidden'});
var ch = popifr.contentWindow.document.body.clientHeight;
var sh = popifr.contentWindow.document.body.scrollHeight;
var oh = $(popifr).height();
var arr = [ch,sh,oh].sort(function(a,b){return b-a;});
$(popifr).height(arr[0]);
var cw = popifr.contentWindow.document.body.clientWidth;
var sw = popifr.contentWindow.document.body.scrollWidth;
var ow = $(popifr).width();
arr = [cw,sw,ow].sort(function(a,b){return b-a;});
$(popifr).width(arr[0]);
var $mainbody = $(document.frames.main.document.body);
var x = $mainbody.width()/2-sw/2;
x = parseInt(x);
var y = $mainbody.height()/2-sh/2;
y = parseInt(y);
if(x<0)x=0;
if(y<0)y=0;
$(popifr).css({top:y+'px',left:x+'px'});
};
var html='
'
+''
+''
+''
+''
+'
';
$(mainifr.contentWindow.document.body).append(html);
$(mainifr.contentWindow.document.body).find('#formDiv').prepend('')
$(mainifr.contentWindow.document.head).append('');
}catch(e){}
}
function closepop(name){
if(!name){
$(document.frames.main.document.body).find('.popframeblock,.popifr').remove();
}else{
$(document.frames.main.document.body).find('.popframeblock'+name+',.popifr'+name).remove();
}
}
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function setpop(idx){
if(idx == 0){
setCookie('usepop','yes',999);
}else{
setCookie('usepop','no',999);
}
if(confirm('다음페이지부터 적용됩니다\n\n지금 새로고침하고 적용하시겠습니까?\n\n새로고침시 현재 페이지의 입력내용이 사라집니다.')){
document.frames.main.location.reload();
}
}
function getPopCookie(){
var coo=document.cookie;
var popcoo;
try{
popcoo = coo.split('usepop=')[1].split(';')[0];
}catch(e){}
if(!popcoo)popcoo='no';
return popcoo;
}
function bindtopload(topwin){
//팝업 레이어 사용안함
if(true)return;
try{
if(document.documentMode<10)
return;
}catch(e){
return;
}
var dv=$(topwin.document.getElementById('top_other_menu'));
dv.append('');
var popcoo = getPopCookie();
idx = popcoo == 'yes' ? 0 : 1;
dv.find('select')[0].selectedIndex=idx;
}
var tf=false;
function toggleForm(obj){
tf = !tf;
if(tf){
obj.value = '원래대로';
$(document.frames.main.document.body).find('#formDiv').css({
'position':'absolute',
'top':'0',
'left':'0',
'width':'100%',
'height':$(document.frames.main.document.body).height()+'px',
'background-color':'#fff',
'z-index':'2000',
'overflow':'scroll'
});
}else{
obj.value = '전체화면보기';
$(document.frames.main.document.body).find('#formDiv').css({
'position':'',
'width':'',
'height':'',
'overflow':''
});
}
}
var togglemax=false;
function toggleMaximum(obj){
togglemax = !togglemax;
if(obj)obj.value = togglemax?'원래대로':'최대화';
alert("frame.jsp 297 프레임 호출");
var row = parseInt(document.getElementsByTagName('frameset')[0].rows.split(',')[0]);
var col = parseInt(document.getElementsByTagName('frameset')[1].cols.split(',')[0]);
toggleMaxAct(row,col);
}
function toggleMaxAct(row,col){
var orow = parseInt(frameset1rows.split(',')[0]);
var ocol = parseInt(frameset2cols.split(',')[0]);
if(togglemax){
row-=3;
col-=5;
}else{
row+=3;
col+=5;
}
if(row<0)row = 0;
if(row>orow)row = orow;
if(col<0)col = 0;
if(col>ocol)col = ocol;
document.getElementsByTagName('frameset')[0].rows=row+',*';
document.getElementsByTagName('frameset')[1].cols=col+',*';
if((togglemax&&row0&&col>0)){
setTimeout(function(){toggleMaxAct(row,col);},0);
}
}
setTimeout(checkloading,100);