
//*根据提供的页面地址和尺寸打开新窗口，没有滚动条*//
function OpenWindow(val,width,height)
{
         window.open(val, "0559u", "directories=no,menubar=no,toolbar=no,resizable=yes,scrollbars=auto,width="+width+",height="+height);
//tt.moveTo(Math.ceil((window.screen.width-width) / 2 ),Math.ceil((window.screen.height-height) / 2 -50));
//alert("width="+tt.document.body.clientWidth +"height="+tt.document.body.clientHeight)
}

//*根据提供的页面地址和尺寸打开新窗口，有滚动条*//
function OpenWindow1(val,width,height)
{
	window.open(val,'0559u', "directories=no,menubar=no,toolbar=no,resizable=no,scrollbars=yes,top=0,left=0,width="+width+",height="+height);
}

//*根据提供的页面地址和尺寸打开屏幕居中的新窗口，没有滚动条*//
function OpenWindowCenter(val,width,height)
{
tt=window.open(val, "", "directories=no,menubar=no,toolbar=no,resizable=yes,scrollbars=auto,width="+width+",height="+height);
tt.moveTo(Math.ceil((window.screen.width-width) / 2 ),Math.ceil((window.screen.height-height) / 2 -50));
}


//*根据提供的页面地址和尺寸打开屏幕居中的新窗口，有滚动条*//
function OpenWindowCenter1(val,width,height)
{
tt=window.open(val, "", "directories=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width="+width+",height="+height);
tt.moveTo(Math.ceil((window.screen.width-width) / 2 ),Math.ceil((window.screen.height-height) / 2 -50));
}


function OpenWindowNomal(val)
{
	window.open(val, "0559u", "directories=no,menubar=no,toolbar=no,resizable=no,width=430,height=390,center:yes");
}

function OpenWindowSubscribe(val,returnurl)
{
	window.open(val + "&returnurl=" + escape(returnurl), "0559u", "directories=no,menubar=no,toolbar=no,resizable=no,width=490,height=330");
}

function DoWin(val,width,height)
{var tt
tt=window.open(val, "0559u", "directories=no,menubar=no,toolbar=no,resizable=no,scrollbars=no,width="+(width-12)+",height="+(height-22));
//alert(tt.style.top);
//tt.resizeTo(width,height);
//tt.document.body.onselectstart="return false";
tt.moveTo(Math.ceil((window.screen.width-width) / 2 ),Math.ceil((window.screen.height-height) / 2 ));
}


function ModalWindow(htm)
{ var arr = window.showModalDialog(htm,window,'dialogWidth:200px;dialogHeight:200px;scroll:no;status:no;help:no');
}

function ModalWindow1(url, width, height)
{  var arr = showModalDialog(url, window, "dialogWidth:" + width + "px;dialogHeight:" + height + "px;help:no;scroll:no;status:no");
}
function ModalWindow2(url, width, height)
{  var arr = showModalDialog(url, window, "dialogWidth:" + width + "px;dialogHeight:" + height + "px;help:no;overflow:scroll;overflow-x:hidden;status:no");
}