 

<!--

/*

Author:Andyfoo

Homepage:Andyfoo.Net

Company:Kehu.cn

*/

 

if(!x_open_path)

 var x_open_path = 'img/'; 



var loading_page = x_open_path + "loading.htm";

var max_img = x_open_path + "max.gif";

var restore_img = x_open_path + "restore.gif";



var x_open_html = ""; 



var x_open_ie5 = document.all && document.getElementById;

var x_open_ns6 = document.getElementById && !document.all;

var x_open_filter = false;



var ie5_filter = "filter:revealTrans(duration=0.5,transition=23 ) blendTrans(duration=0.5) Alpha(Opacity=100,FinishOpacity=99,Style=0);";

if(!x_open_ie5 || !x_open_filter)ie5_filter='';



x_open_html = "<div id='x_open_win' style='" + ie5_filter +"position:absolute;z-index:100; width: 420px; height: 350px ;left:10px;top:10px;font-size:12px;display:none ' onselectstart='return false'>\r\n";
x_open_html += " <iframe src='javascript:false' frameborder='0' style='position:absolute; visibility:inherit; top:0px; left:0px; width:expression(this.parentNode.offsetWidth); height:expression(this.parentNode.offsetHeight); z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';'></iframe>\r\n ";


x_open_html += "<div>\r\n";

x_open_html += "<style>";

x_open_html += "#alert_div{font-size:12px;padding:0px;margin:0px}";

x_open_html += "#alert_div table,#alert_div tr,#alert_div td,#alert_div div,#alert_div input,#alert_div span,#alert_div font{font-size:12px;font-family: ,Verdana;padding:0px;margin:0px}";

x_open_html += "#alert_div .title{color:#2C71AF;font-weight:bold; }";

x_open_html += "#alert_div .box_border{ border:1x #ABBA9D solid; background:#E8F3E6; color:#000000}";

x_open_html += "</style>";

 

x_open_html += "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"alert_div\" onDragStart='self.event.returnValue=false;self.event.cancelBubble=true;' onSelectStart='self.event.returnValue=false;'>";

x_open_html += " <tr>";

x_open_html += " <td height=\"27\" background=\"" + x_open_path + "msg_left_top.gif\"><img src=\"" + x_open_path + "transparent.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";

x_open_html += " <td background=\"" + x_open_path + "msg_center_top.gif\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";

x_open_html += " <tr>";

x_open_html += "  <td width=\"24\" align=\"center\"><img onclick='xopen_reload();' src=\"" + x_open_path + "msg_1.gif\" width=\"16\" height=\"16\" /></td>";

x_open_html += "  <td onmousedown='initialize_drag(event)' ondblclick='maximize()'><div class=\"title\" id='title_msg_layer'></div></td>";

x_open_html += "  <td width=\"24\" align=\"center\" ><img id='max_button_name' onclick='maximize()' width='19' height='18' border='0' src=\"" + x_open_path + "max.gif\" width=\"17\" height=\"17\" style=\"cursor:pointer\"/></td>";



x_open_html += "  <td width=\"24\" align=\"center\"><img onclick='closeit()' src=\"" + x_open_path + "close_0.gif\" width=\"14\" height=\"15\" style=\"cursor:pointer\" onmouseover=\"this.src='" + x_open_path + "close_1.gif'\" onmouseout=\"this.src='" + x_open_path + "close_0.gif'\" /></td>";

x_open_html += " </tr>";

x_open_html += " </table></td>";

x_open_html += " <td background=\"" + x_open_path + "msg_right_top.gif\"><img src=\"" + x_open_path + "transparent.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";

x_open_html += " </tr>";

x_open_html += " <tr>";

x_open_html += " <td background=\"" + x_open_path + "msg_left_middle.gif\"><img src=\"" + x_open_path + "transparent.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";

x_open_html += " <td bgcolor='#ffffff' >\r\n";

x_open_html += "<div id='x_open_content' align=center style='width:100%; height:317px; margin: 0px;background-color: #ffffff;'>\r\n";

x_open_html += "<table style='width:100%; height:100%; margin: 0px;' border='0' cellpadding='0' cellspacing='0'>\r\n";

x_open_html += " <tr>\r\n";

x_open_html += " <td bgcolor='#ffffff' id='x_open_frame_td'>\r\n";

x_open_html += " <iframe id='_x_open_frame_' name='x_open_frame' src='" + loading_page + "' frameborder=0 noresize style='width:100%; height:100%;background-color: #ffffff;color: #333;margin: 0px; padding: 0px;border:0px '></iframe>\r\n";

x_open_html += " </td>\r\n";

x_open_html += " </tr>\r\n";

x_open_html += "</table>\r\n";
x_open_html += " <iframe src='javascript:false' frameborder='0' style='position:absolute; visibility:inherit; top:0px; left:0px; width:expression(this.parentNode.offsetWidth); height:expression(this.parentNode.offsetHeight); z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';'></iframe>\r\n ";
x_open_html += "</div>\r\n";

x_open_html += " </td>\r\n";

x_open_html += " <td background=\"" + x_open_path + "msg_right_middle.gif\"><img src=\"" + x_open_path + "transparent.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";

x_open_html += " </tr>";

x_open_html += " <tr>";

x_open_html += " <td width=\"5\" height=\"7\" background=\"" + x_open_path + "msg_left_bottom.gif\"><img src=\"" + x_open_path + "transparent.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";

x_open_html += " <td background=\"" + x_open_path + "msg_center_bottom.gif\"><img src=\"" + x_open_path + "transparent.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";

x_open_html += " <td width=\"5\" height=\"7\" background=\"" + x_open_path + "msg_right_bottom.gif\" style='cursor:nw-resize' onmousedown='return initialize_resize(event)'><img src=\"" + x_open_path + "transparent.gif\" width=\"1\" height=\"1\" border=\"0\" /></td>";

x_open_html += " </tr>";

x_open_html += "</table>";





x_open_html += "</div>\r\n";

x_open_html += "</div>\r\n";

x_open_html += "<div id='x_open_win_border' style='position:absolute;z-index:100;width:0px;height:0px;display:none'></div>\r\n";

window.document.write(x_open_html);





// obj

var x_open_win_id = document.getElementById("x_open_win");

var x_open_content_id = document.getElementById("x_open_content");

var title_msg_layer_id = document.getElementById("title_msg_layer");

var x_open_frame_id = document.getElementById("_x_open_frame_");

var x_open_frame_td = document.getElementById("x_open_frame_td");

var max_button_name_id = document.getElementById("max_button_name");

var x_open_win_border_id = document.getElementById("x_open_win_border"); 

//var size_info_layer_id = document.getElementById("size_info_layer"); 



var dragapproved = false;

var dragresized = false;

var minrestore = 0;

var initialwidth, initialheight;

var title_height = 36;

 



 

function x_open(title, url, width, height){

 if (!x_open_ie5 && !x_open_ns6)

 window.open(url, "", "width=width,height=height,scrollbars=1");

 else{

 if(x_open_ie5 && x_open_filter)x_open_win_id.filters.revealTrans.apply();

 x_open_win_id.style.display = '';

 if(x_open_ie5 && x_open_filter)x_open_win_id.filters.revealTrans.play();



 initialwidth = width;

 initialheight = height ;

 change_size(initialwidth, initialheight);

 x = document.body.scrollLeft;

 availWidth = parseInt(window.screen.availWidth);

 x = (availWidth - width)/2;

 x_open_win_id.style.left =x;

 

 y = document.body.scrollTop;

 availHeight = parseInt(window.screen.availHeight);

 y = y + availHeight/9;

 //x_open_win_id.style.top=y;

 //x_open_win_id.style.left = "10px";

 x_open_win_id.style.top=x_open_ns6 ? window.pageYOffset * 1 + 10 + "px" : iecompattest().scrollTop * 1 + 10 + "px";

 x_open_frame.location = url;

 title_msg_layer_id.innerHTML = '<font color=#333333>' + title + '</font>';

 }

}



 



function iecompattest(){

 return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}



function xopen_about(){

 str = "999";

 alert(str);

}



function setValue(strid,setvalue){

 x_open_win_id.style.display = 'none';

 document.getElementById(strid).value=setvalue;

}

function xopen_back(){

 x_open_frame.history.back();

}

function xopen_forward(){

 x_open_frame.history.go(1);

}

function ParentReload(){

 

 window.location.reload();



  

}



 

 




function xopen_reload(){

 x_open_frame.location.reload();

}

function closeit(){

 x_open_frame.location = loading_page;

 x_open_win_id.style.display = 'none';

 return true;

}





function maximize(){

 if (minrestore == 0){

 minrestore = 1; //maximize window

 max_button_name_id.setAttribute("src", restore_img);

 max_button_name_id.setAttribute("title", ' ');

 w = x_open_ns6 ? window.innerWidth - 40 : iecompattest().clientWidth - 20;

 h = x_open_ns6 ? window.innerHeight - 40 : iecompattest().clientHeight - 20;

 change_size(w, h);

 }

 else{

 minrestore=0; //restore window

 max_button_name_id.setAttribute("src", max_img);

 max_button_name_id.setAttribute("title", ' ');

 change_size(initialwidth, initialheight);

 }

 x_open_win_id.style.left = x_open_ns6 ? window.pageXOffset + 10 + "px" : iecompattest().scrollLeft + 10 + "px";

 x_open_win_id.style.top = x_open_ns6 ? window.pageYOffset + 10 + "px" : iecompattest().scrollTop + 10 + "px";

}



function change_size(w, h){ 

 if(w > 150 ) {

  x_open_win_id.style.width = w + 'px';

 }else{

  x_open_win_id.style.width = 150 + 'px';

 }

 if(h > 0 ) {

  x_open_win_id.style.height = x_open_content_id.style.height = x_open_frame_id.style.height = h + 'px';

 }else{

  x_open_win_id.style.height = x_open_content_id.style.height = x_open_frame_id.style.height = 0 + 'px';

  

 }

 //size_info_layer_id.innerHTML = '<font style="font-size:11px;font-family:Courier New;color:#333333"></font>';

 x_open_frame_td.style.width = remove_units(x_open_win_id.style.width)-2 + 'px';

 x_open_frame_td.style.height = remove_units(x_open_win_id.style.height)-25 + 'px';

 //size_info_layer_id.innerHTML = '<font style="font-size:11px;font-family:Courier New">size:' + remove_units(x_open_win_id.style.width) + 'x' + remove_units(x_open_win_id.style.height) + '</font>';

}

 

function remove_units(elem){

 return(parseInt(elem.replace(/px/g,"")));  

}

//<<<drag move



function initialize_drag(e){

 var evt = x_open_ns6 ? e : event;

 offsetx = evt.clientX;

 offsety = evt.clientY;

 tempx = parseInt(x_open_win_id.style.left);

 tempy = parseInt(x_open_win_id.style.top);



 dragapproved = true;

 //x_open_frame.style.display = 'none';

 //x_open_frame_id.style.display = 'none';

 document.body.style.cursor = 'move';

 document.onmousemove = drag_drop;

 x_open_win_id.onmouseup = drag_drop_stop;

}



function drag_drop(e){

 if(dragapproved){

 var evt = x_open_ns6 ? e : event;

 x_open_win_id.style.left = tempx + evt.clientX - offsetx + "px";

 x_open_win_id.style.top = tempy + evt.clientY - offsety + "px";

 x_open_frame_id.style.display = 'none';

 }

 return false;

}

function drag_drop_stop(e){

 dragapproved = false;

 //x_open_content_id.style.display = '';

 x_open_frame_id.style.display = '';

 document.body.style.cursor = 'default';

 document.onmousemove=null;

}

 

//>>>drag move



//resize===<<<

function initialize_resize(e){

 evt = x_open_ns6 ? e : event;

 x_open_win_border_id.style.left = x_open_win_id.style.left;

 x_open_win_border_id.style.top = x_open_win_id.style.top;

 x_open_win_border_id.style.width = x_open_win_id.style.width;

 x_open_win_border_id.style.height = x_open_win_id.style.height;



 click_x = evt.clientX;

 click_y = evt.clientY;

 evt_width = click_x - remove_units(x_open_win_id.style.left);

 evt_height = click_y - remove_units(x_open_win_id.style.top);

 dragresized = true;

 x_open_win_border_id.style.display = '';

 x_open_win_border_id.style.border='1px #808080 solid';

 

 document.body.style.cursor = 'nw-resize';

 document.onmousemove = drag_resize;

 document.onmouseup = drag_resize_stop;

 return false;

}

function drag_resize(e){

 if(dragresized){

 var evt = x_open_ns6 ? e : event;

 w = evt_width + (evt.clientX - click_x);

 h = evt_height + (evt.clientY - click_y);

 if(w > 0 ) {

  x_open_win_border_id.style.width = w;

 }

 if(h > 0 ) {

  x_open_win_border_id.style.height = h;

 }

 }

 document.body.style.cursor = 'nw-resize';

 return false;

}

function drag_resize_stop(e){

 dragresized=false;

 change_size(remove_units(x_open_win_border_id.style.width), remove_units(x_open_win_border_id.style.height));

 x_open_win_border_id.style.border='0px';

 x_open_win_border_id.style.display = 'none';

 document.body.style.cursor='default';

 document.onmousemove=null;

}

//resize===>>>

 

//-->



 