<!--// // JavaScript Document这是只提供开启简单置中的视窗
//function windowopen(pk,n_ame,H,W) {
//  window.open(pk,n_ame,
//        "height="+H+",top="+(screen.availHeight-H)/2+",left="+(screen.availWidth-W)/2+",width="+W+",scrollbars=yes,location=no,menubar=no,resizable=no,toolbar=no,status=no");
//}

function windowopen(url, u_name, winHeight, winWidth, lef, tp) {
	var screenPosX, screenPosY;
	if(!lef){	
		if (screen.availWidth) {
			screenPosX = Math.round((screen.availWidth - winWidth) / 2);
			screenPosY = Math.round((screen.availHeight - winHeight) / 2);
			newWin = window.open(url, u_name,'scrollbars=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,copyhistory=0,width='+winWidth+',height='+winHeight+',left='+screenPosX+',top='+screenPosY+'');	  
		}	else {
			newWin = window.open(url, u_name,'scrollbars=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,copyhistory=0,width='+winWidth+',height='+winHeight);
		}
	} else {
		screenPosX = Math.round((screen.availWidth - winWidth + lef) / 2);
		screenPosY = Math.round((screen.availHeight - winHeight ) / 2);
		newWin = window.open(url, u_name,'scrollbars=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,copyhistory=0,width='+winWidth+',height='+winHeight+',left='+screenPosX+',top='+tp+'');	  
	}
}


// --> 
