var IE6;
if (window.XMLHttpRequest) {
IE6=false;
}
else {
IE6=true;
}
String.prototype.Trim=function() {return this.replace(/(^\s*)|(\s*$)/g, "");}
function Get_ttt() {
var QAnyQDate=new Date();
var ttt=QAnyQDate.getTime();
return Math.floor(ttt/1000);
}
function createXmlHttp() {
var XmlHttp = false;
if (window.XMLHttpRequest) {
XmlHttp = new XMLHttpRequest();
}
else {
XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
return XmlHttp;
}
function timePOS() {
clearTimeout(timeServerNow);
// varWorkNow[0][1]=0;
// arrayText_null(0,1,99999);
//
// ButtonPro("&dele=item");
timeThisLink=0;
switch (parseInt(sub_1st)) {
case 1:
arrayText_null(0,4,99999);
btnItem_with(4);
break;
case 2:
arrayText_null(0,2,99999);
btnItem_with(2);
break;
case 3:
arrayText_null(0,1,99999);
btnItem_with(1);
break;
}
}
var sub_1st = "";
function doPro(s) {
var sArray = s.split("_");
var x1 = parseInt(sArray[2])-2;
var x2 = parseInt(sArray[2])-1;
var y = sArray[3];
var temp = "";
var mobile = "";
sub_1st = s.substr(0,1);
switch (parseInt(sub_1st)) {
case 1:
break;
case 2:
temp = get_cellHTML($("cell_"+x1+"_"+y));
temp = $("cell_"+x1+"_"+y).firstChild.options[temp].value;
s = "2;"+temp;
temp = get_cellHTML($("cell_"+x2+"_"+y));
temp = $("cell_"+x2+"_"+y).firstChild.options[temp].value;
s = s+";"+temp+";"+$("cell_"+0+"_"+y).title;
temp = get_cellHTML($("cell_2_"+y));
temp = $("cell_2_"+y).firstChild.options[temp].value;
s = s+";"+temp;
//s = s+";"+groupNow+";"+coNow;
//alert(temp);
break;
case 3:
break;
}
var xmlHttp=createXmlHttp();
xmlHttp.onreadystatechange=function() {
if (xmlHttp.readyState==4 && xmlHttp.status==200) {
switch (parseInt(sub_1st)) {
case 1:
break;
case 2:
var XML = xmlHttp.responseXML;
var tempArray = XML.documentElement.getElementsByTagName("deptNow");
deptNow = tempArray[0].getAttribute("value");
if (deptNow=='') {
ButtonPro("&dele=item");
}
else {
alert(deptNow);
}
break;
case 3:
break;
}
// timeServerNow = setTimeout("timePOS()",800);
}
}
xmlHttp.open("POST","pro/pro.php?ttt="+Get_ttt()+"&login=9",true);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlHttp.send(get_IDs_byMD5()+"&proNow="+proNow+"&s="+s);
}
function btnPage_with(i,disabledValue) {
canChange = true;
if ((i==3) && (coNow=="")) {
// canChange = false;
}
if ((i==4) && (deptNow=="")) {
// canChange = false;
}
if ((i==5) && (staffNow=="")) {
// canChange = false;
}
if ((i==6) && (roadNow=="")) {
// canChange = false;
}
if (canChange) {
if (Login_is_OK==true) {
if (timeThisLink==0) {
if (varPageNow!=i) {
if (insNow==true) {
insNow=false;
}
for (m=0;m";
xmlHttp.open("POST","pro/pro.php?ttt="+Get_ttt()+"&login=1"+"&diffNow="+diffNow+"&proSelect="+proSelect,true);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlHttp.send(get_IDs_byMD5());
}
function get_Chars(len) {
var chars = new Array(
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k",
"l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",
"w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G",
"H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R",
"S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2",
"3", "4", "5", "6", "7", "8", "9");
var char="";
var r=0;
for (var n=0; n 0) {
var eventType = elem.bufferedEvents.pop();
cleanedEvents.push(eventType);
if (eventType == 2) { // double click//
for (var i = 0; i < 2; i++) {
eventType = elem.bufferedEvents.pop();
if (!eventType || eventType != 1) {
break;
}
}
}
}
while (cleanedEvents.length > 0) {
var eventType = cleanedEvents.pop();
if (eventType == 2) {
dbclickInWork(elem); // dblClickHandler(event);//
}
else {
modifyInWork(elem); // clickHandler(event);//
}
}
elem.timerStarted = false;
}, 300);
this.timerStarted = true;
}
this.bufferedEvents.push(1); // 1 for single click//
};
elem.ondblclick = function() {
if (!this.bufferedEvents) {
this.bufferedEvents = [];
}
this.bufferedEvents.push(2); // 2 for double click//
}
}
function arrayText_null(page,item,resetNow) {
switch(page) {
case 0:
switch(item) {
case 0:
arrayText[0][1]=null;
for (var i=1; i