function ly_open_windowClose(id,refresh,url){
if(id){
$('#'+id).hide();
}else{
$('#pop_wrap').hide();
}
$('#pop_map').hide();
$('#pop_confrim').hide();
if(refresh){
location.reload();
}
}
function ly_open_window(url, name, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable,buttons){
var contents = "";
if(!$('#pop_wrap').attr('id')){
if(name){
contents += '
';
}
contents += '
';
var div = document.createElement('div');
$(div).attr('ID','pop_wrap')
$(div).css({top:top+"px",left:left+"px",width:width+"px",height:height+"px"})
var div_con = document.createElement('div');
$(div_con).attr('ID','pop_content');
$(div_con).html(contents);
$(div).append(div_con);
$('body').append(div);
var dl = document.createElement('dl');
$(dl).addClass('ly_body');
var div_footer = document.createElement('div');
$(div_footer).attr('ID','pop_footer');
$(div_con).append(dl);
$(div_con).append(div_footer);
$('#pop_wrap').draggable();
}else{
document.getElementById('pop_wrap').style.display="";
}
$('#pop_wrap .ly_header').html(name);
$('#pop_wrap .ly_body').html("");
$('#pop_wrap #pop_footer').html('');
if(buttons == 'auto'){
$('#pop_wrap #pop_footer').html('
');
}else if(buttons){
for(var obj in buttons){
var span = document.createElement('span');
$(span).addClass('btn_pack');
$(span).addClass('small');
var a = document.createElement('a');
$(a).attr({'title':obj,'href':'#'})
if(obj == 'Ãë¼Ò' || obj == '´Ý±â' || obj == 'Á¾·á' ){
$(a).click(function(){
ly_open_windowClose('pop_wrap');
})
}else{
$(a).click(buttons[obj])
}
$(a).html(""+obj+"")
if(obj == 'Ãë¼Ò' || obj == '´Ý±â' || obj == 'Á¾·á' ){
}else{
$(a).css({'font-weight':'bold','color':'#000','font-size':'12px'});
}
var temp_btn = ('')
$(span).append(a);
$('#pop_wrap #pop_footer').append(span);
}
}else{
$('#pop_wrap #pop_footer').html('');
}
$('#pop_wrap').css({width:width,height:height,' z-index':99999})
centerLayerMove('pop_wrap');
}
function func(func){
$('#pop_wrap').find('iframe')[0].contentWindow.ModifyDataCheck();
}
function ly_open_map_window(url, name, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable,buttons){
var contents = "";
if(!$('#pop_map').attr('id')){
if(name){
contents += '';
}
contents += '
';
var div = document.createElement('div');
$(div).attr('ID','pop_map')
$(div).css({top:top+"px",left:left+"px",width:width+"px",height:height+"px"})
var div_con = document.createElement('div');
$(div_con).attr('ID','pop_content');
$(div_con).html(contents);
$(div).append(div_con);
$('body').append(div);
var dl = document.createElement('dl');
$(dl).addClass('ly_body');
var div_footer = document.createElement('div');
$(div_footer).attr('ID','pop_footer');
$(div_con).append(dl);
$(div_con).append(div_footer);
$('#pop_map').draggable();
}else{
document.getElementById('pop_map').style.display="";
}
$('#pop_map .ly_header').html(name);
$('#pop_map .ly_body').html("");
$('#pop_map #pop_footer').html('');
if(buttons == 'auto'){
$('#pop_map #pop_footer').html('
');
}else if(buttons){
for(var obj in buttons){
var span = document.createElement('span');
$(span).addClass('btn_pack');
$(span).addClass('small');
var a = document.createElement('a');
$(a).attr({'title':obj,'href':'#'})
if(obj == 'Ãë¼Ò' || obj == '´Ý±â' || obj == 'Á¾·á' ){
$(a).click(function(){
ly_open_windowClose('pop_map');
})
}else{
$(a).click(buttons[obj])
}
$(a).html(""+obj+"")
if(obj == 'Ãë¼Ò' || obj == '´Ý±â' || obj == 'Á¾·á' ){
}else{
$(a).css({'font-weight':'bold','color':'#000','font-size':'12px'});
}
var temp_btn = ('')
$(span).append(a);
$('#pop_map #pop_footer').append(span);
}
}else{
$('#pop_map #pop_footer').html('');
}
//var left_i = $('#pop_wrap').offset()['left'] + $('#pop_wrap').width();
//var top_i = $('#pop_wrap').offset()['top'];
$('#pop_map').css({width:width,height:height,' z-index':99999,position: 'absolute'})
// centerLayerMove('pop_map');
}
function ly_open_confrim_window(url, name, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable,buttons){
var contents = "";
if(!$('#pop_confrim').attr('id')){
if(name){
contents += '';
}
contents += '
';
var div = document.createElement('div');
$(div).attr('ID','pop_confrim')
$(div).css({top:top+"px",left:left+"px",width:width+"px",height:height+"px"})
var div_con = document.createElement('div');
$(div_con).attr('ID','pop_content');
$(div_con).html(contents);
$(div).append(div_con);
$('body').append(div);
var dl = document.createElement('dl');
$(dl).addClass('ly_body');
var div_footer = document.createElement('div');
$(div_footer).attr('ID','pop_footer');
$(div_con).append(dl);
$(div_con).append(div_footer);
$('#pop_confrim').draggable();
}else{
document.getElementById('pop_confrim').style.display="";
}
$('#pop_confrim .ly_header').html(name);
$('#pop_confrim .ly_body').html("");
$('#pop_confrim #pop_footer').html('');
if(buttons == 'auto'){
$('#pop_confrim #pop_footer').html('
');
}else if(buttons){
for(var obj in buttons){
var span = document.createElement('span');
$(span).addClass('btn_pack');
$(span).addClass('small');
var a = document.createElement('a');
$(a).attr({'title':obj,'href':'#'})
if(obj == 'Ãë¼Ò' || obj == '´Ý±â' || obj == 'Á¾·á' ){
$(a).click(function(){
ly_open_windowClose('pop_confrim');
})
}else{
$(a).click(buttons[obj])
}
$(a).html(""+obj+"")
if(obj == 'Ãë¼Ò' || obj == '´Ý±â' || obj == 'Á¾·á' ){
}else{
$(a).css({'font-weight':'bold','color':'#000','font-size':'12px'});
}
var temp_btn = ('')
$(span).append(a);
$('#pop_confrim #pop_footer').append(span);
}
}else{
$('#pop_confrim #pop_footer').html('');
}
//var left_i = $('#pop_wrap').offset()['left'] + $('#pop_wrap').width();
//var top_i = $('#pop_wrap').offset()['top'];
$('#pop_confrim').css({width:width,height:height,' z-index':99999})
centerLayerMove('pop_confrim');
}
function centerLayerMove(strLayerid){
var obj_centerLayer=document.getElementById(strLayerid);
var bodywidth=document.documentElement.clientWidth;
var bodyheight= document.documentElement.clientHeight;
var divWidth=obj_centerLayer.offsetWidth;
var divHeight= obj_centerLayer.offsetHeight;
if(typeof document.body.style.maxHeight!="undefined"){
var bodyWidth=document.body.clientWidth;
bodyHeight= document.body.clientHeight;
if(!!(window.attachEvent && !window.opera)){
pageLeft=document.documentElement.scrollLeft;
pageTop=document.documentElement.scrollTop;
}else{
pageLeft=window.pageXOffset;
pageTop=window.pageYOffset;
}
}else{
pageLeft=document.documentElement.scrollLeft;
pageTop=document.documentElement.scrollTop;
}
var divLeft=pageLeft,divTop=pageTop;
if(bodyWidth > divWidth){
divLeft=pageLeft+Math.ceil((bodyWidth-divWidth)/2);
}
if(bodyHeight > divHeight){
divTop=pageTop+Math.ceil((bodyHeight-divHeight)/2) -40;
}
obj_centerLayer.style.left=divLeft+"px";
obj_centerLayer.style.top=divTop+"px";
}
function goToMove(){
}