function startRequest_true(url,SendStr,GetObj){
close_editor();
$("#"+GetObj).html("
");
var htmlObj = $.ajax({
type: "POST",
url: url,
dataType:"html",
async: true,
data: SendStr,
context:$("#"+GetObj),
success:function(html){
$(this).html(html);
}
});
}
function startRequest_false(url,SendStr,GetObj){
close_editor();
var htmlObj = $.ajax({
type: "POST",
url: url,
dataType:"html",
async: false,
data: SendStr
});
$("#"+GetObj).html(htmlObj.responseText);
}
function close_editor(){
var $ckeditor = $('#Content').data('ckeditorInstance');
if($ckeditor){
$ckeditor.destroy();
}
var $ckeditor = $('#Content1').data('ckeditorInstance');
if($ckeditor){
$ckeditor.destroy();
}
var $ckeditor = $('#Content2').data('ckeditorInstance');
if($ckeditor){
$ckeditor.destroy();
}
//小論文
$(":input[editor='pa_editor']").each(function(){
var $ckeditor = $('#' + this.id.replace("_Content", "_editor")).data('ckeditorInstance');
if($ckeditor)$ckeditor.destroy();
});
}
function startEvalMsg(url,SendStr){
var htmlObj = $.ajax({
type: "POST",
url: url,
dataType:"json",
data: SendStr,
async: false
});
//alert(htmlObj.responseText);
var returnJsonObj = new Object(eval("("+htmlObj.responseText+")"));
dialog_msg(returnJsonObj.Msg,escape(returnJsonObj.act));
return;
}
function dialog_msg(msg,act){
if($.browser.version == '6.0'){
var maskWidth = $(document).width();
var maskHeight = $(document).height();
$("body").append("