function _o (a) {
return document.getElementById(a)
}
function clickCheckbox ( obj, target ) {
if ( obj.checked ) target.value = obj.value;
else target.value = "";
}
var move_x, move_y, temp_x, temp_y ;
var objsm;
var gPopupWidth =0;
var gPopupHeight =0;
function showManager ( html,obj,w1,h1,pTop,pLeft ) {
iLeft =0;
objsm = _o("selectManager");
//alert(obj.style.pixelTop+"@" + event.screenX+"@" + event.screenY +"@" + parent.document.body.scrollTop);
//var obj = _o("selectManager");
objsm.style.width = gPopupWidth
//alert(parent.document.body.scrollTop +"@" + event.screenX +"@" + event.screenY +"@" + gPopupHeight )
//objsm.style.top = parent.document.body.scrollTop + event.screenY - (gPopupHeight/2) -50 -h1;
objsm.style.top = pTop
//objsm.style.left = ( document.body.offsetWidth - parseInt(objsm.style.width) ) / 2 // -150 -w1;
/*
if(event.screenX +10 + objsm.style.width> document.body.offsetWidth)
objsm.style.left = document.body.offsetWidth - objsm.style.width-30;
else
objsm.style.left = event.screenX +10
*/
objsm.style.left = pLeft
objsm.style.display = "";
objsm.innerHTML = html;
pageDisabled ( true );
}
function showFileManager (pagename,pagetitle,pWidth,pHeight,obj,w1,h1,pTop,pLeft) {
gPopupWidth =pWidth
gPopupHeight = pHeight;
var html = "";
vWidth = pWidth// -4;
vWidth10 = pWidth// -10;
html += '
';
html += '';
html += ' | ';
html += ' | ';
html += ' | ';
html += '
';
html += '';
html += ' | ';
html += ''
html += ''
html += ''
html += '| '
html += ''
html += ' | '
html += ' '
html += ' '
html += ' | '
html += ' | '
html += '
'
html += '';
html += ' | ';
html += ' | ';
html += ' | ';
html += '
';
html += '
'
showManager ( html,obj,w1,h1,pTop,pLeft );
}
function hideManager () {
var obj = _o("selectManager");
obj.innerHTML = '';
obj.style.display = "none";
pageDisabled ( false );
if(typeof(fnStateReturn) == "function") fnStateReturn();
}
function pageDisabled ( b ) {
var objbg = _o("selectManagerBack");
if ( b ) {
divH = 150;
if(document.body.scrollHeight > divH)
divH = document.body.scrollHeight
objbg.style.cssText = "position:absolute;top:0px;left:0px;width:" + document.body.scrollWidth + "px;height:"+ divH +"px;background-color:#aaaaaa;z-index:98;filter:alpha(opacity=50)'> ";
objbg.style.display = "";
} else {
objbg.style.display="none";
}
//document.body.disabled = b;
}