// 

var dialogFirst=true;function dialog(title,content,width,height,cssName,guanbianniu,Timeout,userlogo){if(dialogFirst==true){var temp_float=new String;temp_float="<div id=\"floatBoxBg\"></div>";temp_float+="<div id=\"floatBox\" class=\"floatBox\">";temp_float+="<div class=\"titlet\"><h4></h4><span></span></div>";temp_float+="<div class=\"content\"></div>";temp_float+="<div class=\"xb\"><input type=\"button\" value=\""+guanbianniu+"\"/></div>";temp_float+="</div>";$("body").append(temp_float);dialogFirst=false;$("#floatBox .titlet span").click(function(){$("#floatBoxBg").hide();$("#floatBox").hide();$("#submittij").attr({disabled:""});});$("#floatBox .xb input[value='"+guanbianniu+"']").click(function(){$("#floatBoxBg").hide();$("#floatBox").hide();$("#submittij").attr({disabled:""});});}
$("#floatBox .titlet h4").html(title);contentType=content.substring(0,content.indexOf(":"));content=content.substring(content.indexOf(":")+1,content.length);switch(contentType){case"url":var content_array=content.split("?");$("#floatBox .content").ajaxStart(function(){$(this).html("loading...");});$.ajax({type:content_array[0],url:content_array[1],data:content_array[2],error:function(){$("#floatBox .content").html("error...");},success:function(html){$("#floatBox .content").html(html);}});break;case"text":$("#floatBox .content").html(content);break;case"id":$("#floatBox .content").html($("#"+content+"").html());break;case"iframe":$("#floatBox .content").html("<iframe src=\""+content+"\" width=\"100%\" height=\""+(parseInt(height)-30)+"px"+"\" scrolling=\"auto\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe>");}
$("#floatBoxBg").css({display:"block",height:$(document).height()});$("#floatBox").removeClass();$("#floatBox").attr("class","floatBox "+cssName);$("#floatBox").css({display:"block",left:(($(document).width())/2-(parseInt(width)/2))+"px",top:($(document).scrollTop()+200)+"px",width:width,height:height});if(Timeout=="Timeout=yes"){setTimeout("yinca()",2000);}}
function yinca(){$("#floatBoxBg").hide();$("#floatBox").hide();$("#submittij").attr({disabled:""});}
