
//弹出全屏窗口 
function PopFullScreenWin(myurl) 
{
	newwin = window.open("","","scrollbars"); 
    if(document.all) 
    { 
		newwin.moveTo(0,0); 
		newwin.resizeTo(screen.availWidth,screen.availWidth) 
    } 
    newwin.location = myurl; 
}

//弹出固定大小窗口 
function PopSizedWin(myurl,width,height) 
{
    var Height=window.screen.height;
    var Width=window.screen.width;
    var top,left;
    if (Height==600)
    {
       top="10px";
       left=(Width-parseInt(width))/2;
    }
    else
    {
      top=(Height-parseInt(height))/2;
      left=(Width-parseInt(width))/2;
    }
      
	newwin = window.open(myurl,"","width="+width+",height="+height+",top="+top+",left="+left+",scrollbars"); 
   /* if(document.all) 
    { 
		newwin.moveTo(0,0); 
		newwin.resizeTo(width,height) 
    } 
    newwin.location = myurl; */
}

//弹出固定大小窗口(查询专用)
function PopSizedNamedWin(myurl,width,height) 
{
/*	newwin = window.open("","QueryResult","scrollbars"); 
    if(document.all) 
    { 
		newwin.moveTo(0,0); 
		newwin.resizeTo(width,height) 
    } 
    newwin.location = myurl; 
*/
	Config = "scrollbars=yes,width=" + width + ",height=" + height + ",left=0,top=0";
	var newwin=window.open(myurl,"QueryResult",Config);
	newwin.resizeTo(screen.availWidth,screen.availHeight);
}


//在右边的Frame中显示
function ShowWinRight(myurl) 
{
	window.open(myurl,"right"); 
}

//用于模式窗口
function MyDialog(strUrl,strTitle,strWidth,strHeight) 
{
  var returnValue
  var inputValues=new Array;
  inputValues[0]=strUrl;
  inputValues[1]=strTitle;
  returnValue=window.showModalDialog('PopIframe/PopIframe.aspx',inputValues,'dialogWidth:' + strWidth + ';dialogHeight:' + strHeight + ';scroll:no;resizable:no;status:no;help:no');
  return returnValue;
}