}
else {
$(“.fieldset1”).append(“<input id=’Checkbox” +
index.toString() +
“‘ value='” +
token.value +
“‘ type=’checkbox’ /><label for=’Checkbox” +
index.toString() +
“‘>” +
token.text +
“</label><br>”);
}
}
});
$(document).ready(function(){
$(“.btnSelect”).click(function(){
var select = “”;
$(“.fieldset1 input”).each(function(i){
if (this.checked) {
if (select == “”)
select = (i + 1).toString() + “-” + $(this).next().text();
else
select += “–” + (i + 1).toString() + “-” + $(this).next().text();
}
});
$(“.selected”).val(select);
});
$(“#btnClose”).click(function(){
var select = “”;
$(“.fieldset1 input”).each(function(i){
if (this.checked) {
if (select == “”)
select = (i + 1).toString() + “-” + $(this).next().text();
else
select += “–” + (i + 1).toString() + “-” + $(this).next().text();
}
});
$(“.selected”).val(select);
});
});
$(document).ready(function(){
$(“.pop-box”).easydrag();
});
function loadText(){
var text = $(“.hiddenfield1”).val();
var tokenGroup = new Array();
tokenGroup = text.split(“–“);
$(“.pop-box-body”).html(“”);
$(“.pop-box-body”).append(“<fieldset class=’fieldset1′><legend class=’legend1′>閫夋嫨瑕佸鍑哄埌Word涓殑鍒?/legend></fieldset>”);
var obj = new Object();
for (obj in tokenGroup) {
//alert(obj);
//alert(Number(obj));
var index = Number(obj) + 1;
//alert(index);
var token = new Object();
token.value = tokenGroup[obj].split(“-“)[0];
token.text = tokenGroup[obj].split(“-“)[1];
//alert(“value:”+token.value+” text:”+token.text);
if (index == 1) {
$(“.legend1”).after(“<input id=’Checkbox” +
index.toString() +
“‘ value='” +
token.value +
“‘ type=’checkbox’ /><label for=’Checkbox” +
index.toString() +
“‘>” +
token.text +
“</label><br>”);
}
else {
$(“.fieldset1”).append(“<input id=’Checkbox” +
index.toString() +
“‘ value='” +
token.value +
“‘ type=’checkbox’ /><label for=’Checkbox” +
index.toString() +
“‘>” +
token.text +
“</label><br>”);
}
}
}
function popupDiv(div_id){










