1 function saveVariance() {
2 var variance;
3 var postURL = "../system/action/saveVarincae?v=";
4 var docName = document.getElementById("saveFlag").value;
5 postURL = docName + postURL;
6 _Xuice.url(postURL, onLoad);
7 function onLoaded($doc) {
8 var ns = $doc.selectNodes("/xuice/perms/");
9 for (var i = 0; i < ns.length; i++) {
10 var n = ns[i];
11 var k = n.getAttribute("result");
12 if (k = "success") {
13 saveFlag="true";
14 }
15 }
16 }
17 }