//窗帘效果的切换,点一下收,点一下开,参数可以无
function jquery_Tools_Toggle(ei){
    $(ei).toggle();
}

function jquery_Tools_Ani_Toggle(ei){
    $(ei).slideToggle('fast');
}
//调用顶层Confirm对话框，参数 sysno 传递要删除的sysNO值
function showConfirm(sysno,ctlID,formID,operators,target)
{
//    alert(sysno);
//    alert(ctlID);
//    alert(formID);
//    alert(operators);
    $("#DeleteTextBox").attr("value",sysno);
    parent.showConfirm(ctlID,formID,operators,target);
} 

//对调用自己的窗口进行刷新
function jquery_Tools_doPostBack(ctlID,formID,operators)
{
    //parent.document.frames['mainFrame'].__doPostBack('btnSearch','btnSearch');
    var obj = parent.document.getElementById('mainFrame');
    obj.contentWindow.document.getElementById(ctlID).value = operators;
    obj.contentWindow.document.getElementById(ctlID).focus();
    obj.contentWindow.document.getElementById(formID).submit();
    $('#btnClose',window.parent.document).attr('disabled',false);
    $('#btnClose',window.parent.document).click();
    return false;
}

function jquery_Tools_UpdateLeftMenuAndTitle(cur)
{
//    var obj1 = parent.document.getElementById('sitepathdiv');
//    obj1.innerHTML = title;
    var obj = parent.document.getElementById('leftFrame');
    obj.contentWindow.document.getElementById(cur).click();
}

//弹出窗口
function openWindow(URL,Width,Height) { 
window.open(URL,'','width='+Width+',height='+Height+',resizable=1,scrollbars=0,status=no,toolbar=no,location=no,menu=no');
}

//弹出窗口，固定位置left=100,top=100
function openWindowS(URL,Width,Height) { 
window.open(URL,'','width='+Width+',height='+Height+',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=60,top=60');
}

//弹出窗口，固定位置left=100,top=100; 固定大小800;600;
function openWindowS2(URL)
{
	openWindowS(URL, 800, 600);
	//modalWin(URL,800,600);
}
function openWindowS3(URL)
{
	openWindowS(URL, 640, 480);
}
function openWindowS4(URL)
{
	openWindowS(URL, 1000, 728);
}


//弹出窗口，全屏
function openWindowL(URL)
{
	window.open(URL,'','width=screen.width,height=screen.height,scrollbars=1,status=no,toolbar=no,location=no,menu=no,resizable=1');
}

