
function topnew(){
var max=topnewidarray.length;

var ar=new Array(max);

var j=0;
var i;
for(i=0;i<max;i++){
	ar[j]=i;
	j++;
}


var sorted = ar.sort( function(a, b){ return Math.random() - Math.random() } ); 

document.open();
document.write("<table width=\"200\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n");
document.write("<tr>");
j=0;
var v;
var tmp;
for(i=0;i<max;i++){
	v=sorted[i];
	printitem(v);
	j++;
	if(j >=2){
		break;
	}

}
document.write("</tr>");
document.write("</table>\n");
document.close();

}

function printitem(v){
var w;
var h;
var ra;

w=100;
h=100;

document.write("<td width=\"100\" valign=\"top\">");
document.write("<a href=\""+topnewurlarray[v]+"\" title=\""+topnewshoparray[v]+"\" target=\"_blank\">");
document.write("<img src=\""+topnewimgarray[v]+"\" width=\""+w+"\" height=\""+h+"\" border=0>");
document.write("<br>");
document.write("<font color=\"#5e005e\"><b>");
document.write(topnewshoparray[v]);
document.write("</b></font>");
document.write("</a>");
document.write("<br>");
document.write(topnewcomarray[v]);
document.write("</td>");

}


