var news_detail = new Array(25);
for (j = 1; j < 25; j++) {
    news_detail[j] = "";
}



function writenews_left(ned_title,ned_subtitle,filename,new_imgsmallw,new_imgsmallh,new_imgpos,ned_small,new_titleclass,new_ccsclass,orderby) {
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td>');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" class="'+ new_titleclass +'">'); 
	document.write('<tr><td>'+ ned_title +'</td><td align="right" width="17"><img src="images/up.gif" onclick="button_click('+orderby+',0)" width="11" height="11" alt="" border="0" vspace="1"></td><td align="right" width="17"><img src="images/down.gif" onclick="button_click('+orderby+',1)" width="11" height="11" alt="" border="0" vspace="1"></td></tr>'); 
	document.write('</table>');
	document.write('</td></tr>');
	document.write('<tr><td align="center">'); 
	document.write('<font id=news'+orderby+' >');	
	document.write('<table border="0"  cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td  class="'+ new_ccsclass +'" style="font-weight: bold;">'+ ned_subtitle +'</td></tr>');
	document.write('<tr><td class="'+ new_ccsclass +'" style="text-align:justify">');
	if (filename != 'null.jsp') {
  	    document.write('<img class="coupons" src="upload/'+ filename +'" width="'+ new_imgsmallw +'" height="'+ new_imgsmallh +'" alt="" border="0" align="'+ new_imgpos +'">');
	}	
	document.write(ned_small);
	document.write('</td></tr>');
	document.write('<tr><td><img src="images/spacer.gif" width="1" height="5" alt="" border="0"></td></tr>');	
	document.write('<tr><td>');	
	// sql_out+''; 


}
function writenews_leftend(x1){
	document.write('</td></tr>');
	document.write('</td></tr></table></font>'); 
	document.write('</td></tr><tr><td><img src="images/spacer.gif" width="1" height="5" alt="" border="0"></td></tr></table>');
}

function button_click(orderby,open_close) {
if ( open_close == '1') {
   if (news_detail[orderby] != "")document.getElementById("news"+orderby).innerHTML = news_detail[orderby];
 } else {
   if (news_detail[orderby] == "")news_detail[orderby] = document.getElementById("news"+orderby).innerHTML;
   document.getElementById("news"+orderby).innerHTML = ''; 
 }
}


function statistics_title(xtitle,orderby){

}

function statistics_table(orderby,xsql_out) {

}	