	var bodywidth = 0;
	var initHeight = 0;
	var slidedown_direction = 1;
	var slidedownContentBox = false;
	var slidedownContent = false;
	var slidedownActive = false;
	var contentHeight = false;
	var slidedownSpeed = 3;
	var slidedownTimer = 7;

	function initSlide()
	{
		if (navigator.appName.indexOf('Microsoft') != -1)
		     document.getElementById('contentBox').style.overflow='hidden';
		else if (navigator.appName.indexOf('Netscape') != -1)
		     document.getElementById('contentBox').style.overflow='auto';
		else ;		

		if(initHeight==0)slidedown_direction=slidedownSpeed;
		else slidedown_direction = slidedownSpeed * (-1);
		if(!slidedownContentBox)
		{
			slidedownContentBox = document.getElementById('contentBox');
			slidedownContent = document.getElementById('container');
			contentHeight = document.getElementById('contentBox').offsetHeight;
			boxHeight = document.getElementById('contentBox').scrollHeight;
			swapContent = document.getElementById('anchor');
			
			if(boxHeight > 300) boxHeight = 300;
		}
		slidedownContentBox.style.visibility='visible';
		slidedownActive = true;

		if(swapContent.innerHTML == 'Click for details') swapContent.innerHTML = 'Hide';
		else swapContent.innerHTML = 'Click for details';

		startSlide();
	}
	function startSlide()
	{
		if(!slidedownActive)return;
		initHeight = (initHeight * 1) + slidedown_direction;
		if(initHeight <= 0)
		{
			slidedownActive = false;
			slidedownContentBox.style.visibility='hidden';
			initHeight = 0;
		}
		if(initHeight>boxHeight)
		{
			slidedownContentBox.style.overflow='auto';
			slidedownActive = false;
		}
		slidedownContentBox.style.height = initHeight + 'px';
		setTimeout('startSlide()',slidedownTimer);
	}

	function setWidth(newWidth)
	{
		document.getElementById('contentBox').style.width = newWidth + 'px';
	}

	function setSpeed(newSpeed)
	{
		slidedownSpeed = newSpeed;
	}










function toRoman(number) {

        num = number;

        onesArray = new Array("I","II","III","IV","V","VI","VII","VIII","IX");
        tensArray = new Array("X","XX","XXX","XL","L","LX","LXX","LXXX","XC");
        hundredsArray = new Array("C","CC","CCC","CD","D","DC","DCC","DCCC","CM");

        ones = num % 10;
        num = (num - ones) / 10;
        tens = num % 10;
        num = (num - tens) / 10;
        hundreds = num % 10;
        num = (num - hundreds) / 10;

        Roman = "";
    
        for (i=0; i < num; i++){
	        Roman += "M";
        }

        if (hundreds) {
            Roman += hundredsArray[hundreds-1];
        }
    
        if (tens) {
            Roman += tensArray[tens-1];
        }
    
        if (ones) {
            Roman += onesArray[ones-1];
        }

        return Roman;

}

	function archive(){
	
//function follow_up(){
	var currentTime = new Date();
	var month = currentTime.getMonth() + 1;
	var day = currentTime.getDate();
	var year = currentTime.getFullYear();
	
	var where_is_mytool=document.getElementById('purchases_on').value;
	var date=where_is_mytool.split("-");
	var cnd =parseInt(date[1],10)+'/'+parseInt(date[2],10)+'/'+parseInt(date[0])
	//alert(cnd);
	if(parseInt(date[0])<2007){
		//alert(1);
		//alert(parseInt(date[1]));
		alert(1);
		location.href = "http://financialexpress-bd.com/archive.asp?cnd="+cnd;
		return;
	}
	if(parseInt(date[1],10)<6 && parseInt(date[0])<2008){
		//alert(parseInt(date[1],10));
		alert(2);
		location.href = "http://financialexpress-bd.com/archive.asp?cnd="+cnd;
		return;
	}
	if(parseInt(date[2],10)<3 && parseInt(date[0])<2007 && parseInt(date[1])<=6){
		//alert(parseInt(date[2]));
		//alert(parseInt(date[2],10));
		alert(3);
		location.href = "http://financialexpress-bd.com/archive.asp?cnd="+cnd;
		return;
	}

		var date=document.getElementById('purchases_on').value;
		//alert(date);
		location.href('archive_news.php?archive_date='+date);
	}
