
function combine()
{
var x; 	//looping variable 
var newsitems = new Array();//array containing the Newsitems 
							// here we can add new newsitems using + operator between pagename,description & publicationdate

newsitems[0] =  "archives_2004_18.html+Start-up learns lessons in e-learning + Times News Network | February 12, 2004";
newsitems[1] =  "archives_2004_17.html+MosChip Semiconductor and Cavium Networks Partner + Economic Times | March 10, 2004";
newsitems[2] =  "archives_2004_16.html+Rating of IPOs impractical + Times News Network | March 13, 2004";
newsitems[3] =  "archives_2004_15.html+Domestic venture funds see scope for growth  + Business Line | April 18, 2004";

newsitems[4] =  "archives_2004_14.html+\"The fundamentals continue to be attractive,\" said Raja Kumar, chief executive of UTI Venture Funds.  + New York Times | May 12, 2004";
newsitems[5] =  "archives_2004_13.html+CombiMatrix and Strand Genomics Enter into Co-Marketing Agreement + Biowire | July 09, 2004";
newsitems[6] =  "archives_2004_12.html+ICRA ties up with BPO vendor - Investment research input to overseas banks + Business Line | July 12, 2004";
newsitems[7] =  "archives_2004_11.html+Subex buys Alcatel unit for $3 m+ Business Line | July 27, 2004";
newsitems[8] =  "archives_2004_10.html+Subex set to acquire Lightbridge product + Business Line | August 11, 2004";
newsitems[9] =  "archives_2004_9.html+Four Soft Eyeing Acquisitions Abroad + Financial Express | August 24, 2004";
newsitems[10] = "archives_2004_8.html+UTI Venture ties up $120m round funding + Buisness Standard | August 26, 2004";
newsitems[11] = "archives_2004_7.html+Strand gets $1m for liver toxicity models +  Economic Times | September 11, 2004";
newsitems[12] = "archives_2004_6.html+CHI national award for City technology firm + Deccan Herald | September 13, 2004";
newsitems[13] = "archives_2004_5.html+MediBic buys 10% of Strand Genomics +  Business Standard | September 17, 2004";
newsitems[14] = "archives_2004_4.html+Ascent Fund to raise $150 million via mix of onshore, offshore investors + Financial Express | October 04, 2004";
newsitems[15] = "archives_2004_3.html+UTI Venture Funds to raise $150m + Times of India | October 08, 2004";
newsitems[16] = "archives_2004_2.html+Four Soft completes CargoMate acquisition + Business Line | October 15, 2004";
newsitems[17] = "archives_2004_1.html+UTI Ventures kicks off $150-m Ascent India Fund + Times News Network | October 19, 2004";
newsitems[18] = "archives_2004.html+Global VC funds once again sharpen their focus on India  + Financial Express | November 06, 2004";





// add latest Newsitems above this comment separating pagename,description,published date by symbol + as above . 
var subitem; // this array contains splitted items of each newsitem as subitem[0]=pagename, subitem[1]=description, subitem[2]=symbol.
var content = new Array(); // this array contains all the description of the newsitems.
var pagename = new Array(); // this array contains all the pagenames of the newsitems

for(x=newsitems.length-1;x>=0;x--)
{
subitem =(newsitems[x].split('+'));
for(i=0;i<subitem.length;i++)
pagename[x] = subitem[0];
content[x] = subitem[2];
}


var connect ="<span class= 'news_head'>"+"<a href =\"";

<!-- to read the URL path and get the file name i have used the below block -->
var url = unescape(window.location.pathname);
var suburl = url.split('/');  //splitting the url with symbol '/' to find the pagename loaded.
var fname = suburl[suburl.length-1];

for(x=newsitems.length-1;x>=0;x--)
{
subitem =(newsitems[x].split('+'));
for(i=0;i<subitem.length;i++)
var contents = '<p>'
	if(fname==pagename[x])
	{
	
contents = contents+(connect+subitem[0]+"\""+" class='news_head_selected'>"+subitem[1]+"</a></span>");     
	}
else
 	{
contents = contents+(connect+subitem[0]+"\""+" class= 'news_head'>"+subitem[1]+"</a></span>");
	}
contents = contents+('<br>'+"<span class=\"bodytext_press11\">"+content[x]+'</span></p>');
document.write(contents);
}

}





