function js_openpage(url) {
  var 
newwin=window.open(url,"NewWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=760,height=250,left=10,top=10");
 // newwin.focus();
  return false;
}

function js_openpage2(url) {
  var 
newwin=window.open(url,"NewWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=560,height=400,left=10,top=10");
 // newwin.focus();
  return false;
}

function js_openpage3(url) {
  var 
newwin=window.open(url,"NewWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=150,height=1,left=200,top=150");
 // newwin.focus();
  return false;
}

function pop(pageurl) {
  popwin = window.open(pageurl,"popWin","scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no, top=0, left=0,width=520,height=450");
  popwin.focus();
  return false;
}

var popupWin;

// example of the openFPWindow Function below:
// <a href="javascript:openFPWindow('URL here','title of window here','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=590,height=420')">
function openFPWindow(URL,name,attrib) {
  if (popupWin) {
	if (!popupWin.closed) {
		popupWin.close();
	}
   }
	popupWin = window.open(URL,name,attrib);
	popupWin.focus();
}

function fiximgwin(url)
{
 var imgwin=window.open('','img','width=50,height=50')//打开一个空白窗口，并初始化大小
 imgwin.focus()//使窗口聚焦，成为当前窗口
 var HTML="<html>\r\n<head>\r\n<title>View Larger Photo</title>\r\n</head>\r\n<body leftmargin=\"0\" topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">\r\n<img vAlign=\"middle\" src=\""+url+"\" onload=\"window.resizeTo(this.width,this.height+28);window.moveTo((screen.width-this.width)/2,(screen.height-this.height)/2)\">\r\n</body>\r\n</html>"//这里是关键代码，在图片加载完后调用resizeTo()和moveTo()方法调整窗口大小和位置
 var doc=imgwin.document
 doc.open("text/html","replace") //指定文档的多用途网际邮件扩充协议
 doc.write(HTML)//向空白窗口写入代码
 doc.close()//关闭输入流，并强制发送数据显示。
}
