// JavaScript Document

function NewsList(intNID){
//alert(intNID)
	var strNews,i,intMax
	var wWidth = 400; wHeight=500;
	var lLocation = (screen.width - wWidth ) / 2
	var tLocation = (screen.height - wHeight ) / 2
	var winSetting = 'top=' + tLocation + ',left=' + lLocation + ',width=' + wWidth + ',height=' + wHeight
	
	window.open('ShowNews.asp?NID=' + intNID,'NEWS','scrollbars=1,resizable=1,dependent=1,' + winSetting);
		/*
		var strNews,i,intMax
		var wWidth = 400; wHeight=500;
		var wLeft = (screen.width - wWidth ) / 2
		var wTop = (screen.height - wHeight ) / 2
		var wSetting = 'top=' + wTop + ',left=' + wLeft + ',width=' + wWidth + ',height=' + wHeight
		
		strNews='';
		intMax=3;

		strNews += "<table   border='0' align='left'  cellpadding='3' cellspacing='0'>";	
		
		for (i=0;i<=intMax;i++){

				strNews += "<tr>";
				strNews += "<td width='6%' align='right'><img src='../images/Arrow_1_Blue.jpg'></td>";
				strNews += "<td  width='13%' class='MsgBottom' ><span class='Date'>" + News[i][1] + "</span></td>";
				strNews += "<td width='81%' class='MsgBottom' ><a href='#' onclick='window.open(&quot;ShowNews.asp?NID="+News[i][0]+"&quot;,&quot;NEWS&quot;,&quot;scrollbars=1,resizable=1,dependent=1,"+wSetting+"&quot;);'" +
					       " class='News'>" + News[i][2] + "</a></td>";
				strNews += "<tr>";
			
			}		
		
		strNews += "</table>";
		
		document.write(strNews);*/
		
	}