function PromptDialogBox(type,parameterA,pro,box){  //提示对话框类 type:类型：0为确认框，1为提示框；parameterA：要执行的函数；pro：提示标题；box：提示内容
if(pro==""){this.prompt="系统提示";}else{this.prompt=pro;}
if(box==""){this.boxMsg="Loading...请稍后,正在加载中,若长时间无响应请刷新页面!";}else{this.boxMsg=box;}
var temp_h1 = document.body.clientHeight;
var temp_h2 = document.documentElement.clientHeight;
var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false; 
var htmlbody = isXhtml?document.documentElement:document.body;
var newdivs = false;
var height_dix=htmlbody.scrollTop;
var width_dix=htmlbody.scrollWidth;
this.botton="";
var screenheight=(htmlbody.scrollHeight>=window.screen.availHeight)?htmlbody.scrollHeight:window.screen.availHeight;
var screenwidth=window.screen.width-20;

$("#PromptDialogBox_ground").remove();$("#PromptDialogBox_msg").remove();$("#Popup_select__ground2").remove();
if(type==0 || type==""){ //0为确认框，1为提示框 2为loading条 3为关闭窗口
this.botton="<input type=\"submit\" name=\"PromptDialogBox_button_yes\" id=\"PromptDialogBox_button_yes\" value=\" 确 定 \" style=\"background-image:url(\/images\/submit.gif);width:67px;height:22px;border:0px;color:#000000!important\"\/>　　<input type=\"submit\" name=\"PromptDialogBox_button_no\" id=\"PromptDialogBox_button_no\" value=\" 取 消 \" style=\"background-image:url(\/images\/submit.gif);width:67px;height:22px;border:0px;color:#000000!important\"\/>";}
else if(type==1){this.botton="<input type=\"submit\" name=\"PromptDialogBox_button_yes\" id=\"PromptDialogBox_button_yes\" value=\" 确 定 \"  style=\"background-image:url(/images/submit.gif);width:67px;height:22px;border:0px;color:#000000!important\"\/>";}else if(type==3){return false;}
$("<div id=\"PromptDialogBox_ground\"></div>").appendTo("body"); 
$("#PromptDialogBox_ground").css({ position: "absolute","z-index":"99","background-color":"#666666","-moz-opacity":".20",opacity:"0.2",top:"0px",left:"0px",width:screenwidth+"px",height:screenheight+"px" }); 
/*
var xsx=0.1;ysy=0.01;
tipsg(){if(xsx<0.51){$("#PromptDialogBox_ground").css({"-moz-opacity":xsx,opacity:xsx}); xsx+=ysy;}else{window.clearInterval(idsg);}}
=window.setInterval(tipsg,1);
*/
$("<div id=\"PromptDialogBox_msg\"></div>").appendTo("body");

$("<div id=\"Popup_select__ground2\"><IFRAME width='100%' height='100%'></IFRAME></div>").appendTo("body"); 

$("#Popup_select__ground2").css({ position: "absolute","z-index":"98","background-color":"#333333","-moz-opacity":".00",opacity:"0.0",top:"0px",left:"0px",width:screenwidth+"px",height:screenheight+"px" }); 

//setwindow();

$("<table width=\"450\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"\/images\/duihuakuang_r1_c4.jpg\" bgcolor=\"#3462AB\"><tr><td width=\"25\" id=\"usermouvekjfe_1\"><img src=\"\/images\/duihuakuang_r1_c1.jpg\" \/><\/td><td width=\"405\" id=\"PromptDialogBox_prompt\" align='left' style='text-decoration:none;'><\/td><td width=\"13\" align=\"center\"><img src=\"\/images\/duihuakuang_r2_c10.jpg\" id=\"PromptDialogBox_img\" \/><\/td><td width=\"7\"><img src=\"\/images\/duihuakuang_r1_c12.jpg\" \/><\/td><\/tr><\/table><div style=\"border:#7998B7 1px solid;\"><div style=\"border-right:#D7E0E7 1px solid;border-bottom:#D7E0E7 1px solid;border-left:#D7E0E7 1px solid;\"><table width=\"100%\" height=\"106\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FBFEFF\"><tr><td width=\"18%\" align=\"center\"><center><img id=\"PromptDialogBox_button_Tip\" src=\"\/images\/ajdax-loader.gif\" \/></center><\/td><td width=\"82%\" align='left' style='text-decoration:none;'><span id=\"PromptDialogBox_boxmsg\" style=\"font-family: Times New Roman, Times, serif;font-size: 14px;	color: #333333;	text-decoration: none;\"><\/span><\/td><\/tr><\/table><\/div><div style=\"border-right-width: 1px;	border-bottom-width: 1px;	border-left-width: 1px;border-top-style: none;	border-right-style: solid;	border-bottom-style: solid;	border-left-style: solid;	border-right-color: #D7E0E7;	border-bottom-color: #D7E0E7;	border-left-color: #D7E0E7;\"><table width=\"100%\" height=\"41\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"\/images\/duihuakuang_r8_c2.jpg\" bgcolor=\"#ECF3FB\"><tr><td width=\"100%\" align=\"right\" style='text-decoration:none;text_align:right!important'><div style='text_align:right;float:right'>&nbsp;"+this.botton+"&nbsp;&nbsp;</div><\/td><\/tr><\/table><\/div>").appendTo("#PromptDialogBox_msg");

$("#PromptDialogBox_prompt").css({"font-family": "Times New Roman, Times, serif","font-size":"12px",color: "#FFFFFF"});

$("#PromptDialogBox_prompt").append(this.prompt);$("#PromptDialogBox_boxmsg").append(this.boxMsg);

$("#PromptDialogBox_msg").css({ position: "absolute","z-index":"100",top:height_dix+130+"px",width:"450px",left:((htmlbody.clientWidth-450)/2)+"px"}); 

if(type==0 || type==""){ //0为确认框，1为提示框

$("#PromptDialogBox_button_yes").click(function(){remove();eval(parameterA);});

$("#PromptDialogBox_button_no").click(function(){remove();});}

else{$("#PromptDialogBox_button_yes").click(function(){remove();});}

function winresize(){

$("#PromptDialogBox_msg").css({left:((htmlbody.clientWidth-450)/2)+"px",top:htmlbody.scrollTop+130+"px"});}

if(type!=2){$("#PromptDialogBox_img").hover(function(){$(this).attr("src","/images/duihuakuang_r2_c8.jpg");$(this).click(function(){remove();});},

function () {$(this).attr("src","/images/duihuakuang_r2_c10.jpg");});$("#PromptDialogBox_button_Tip").attr("src","/images/duihuakuang_r6_c6.jpg")}; 

$(document).scroll(function(){winresize();});$(document).resize(function(){winresize();});

function remove(){htmlbody.scrollTop=height_dix;$("#PromptDialogBox_ground").remove();$("#PromptDialogBox_msg").remove();$("#Popup_select__ground2").remove();}}

function loadImages() {//图片预加载类

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=loadImages.arguments; for(i=0; i<a.length; i++)

if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}

$(document).ready(function(){ 

loadImages("/images/submit.gif","/images/duihuakuang_r1_c1.jpg","/images/duihuakuang_r1_c4.jpg","/images/duihuakuang_r1_c12.jpg","/images/duihuakuang_r2_c5.jpg","/images/duihuakuang_r2_c8.jpg","/images/duihuakuang_r2_c10.jpg","/images/duihuakuang_r6_c6.jpg","/images/duihuakuang_r8_c2.jpg","/images/ajdax-loader.gif"); })