    function GiveNewsDetail(NewsHeader,NewsImage,NewsText,NewsDIV,Type)
    {

        var strSportDiv='<table cellspacing="5" cellpadding="0" width="130px" border="0"><tr><td align=""center"">';
        strSportDiv=strSportDiv+'<img src="'+NewsImage+'" width="110px" height="76px"></td></tr><tr><td>';
        if (Type=='0'){
        strSportDiv=strSportDiv+'<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td align="left"><b><font color="#7d0000">'+Left(NewsHeader,50)+'</font></b></td></tr><tr><td align="left">'+Left(NewsText,50)+'...</td></tr></table></td></tr></table>';
        }
        else if (Type=='1')
        {
        strSportDiv=strSportDiv+'<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td align="left"><b><font color="#454545">'+Left(NewsHeader,50)+'</font></b></td></tr><tr><td align="left">'+Left(NewsText,50)+'...</td></tr></table></td></tr></table>';
        }
        document.getElementById(NewsDIV).innerHTML=strSportDiv;
    }
    function GiveNewsDetail(NewsHeader,NewsImage,NewsText,NewsDIV,Type)
    {

        var strSportDiv='<table cellspacing="5" cellpadding="0" width="130px" border="0"><tr><td align=""center"">';
        strSportDiv=strSportDiv+'<img src="'+NewsImage+'" width="110px" height="76px"></td></tr><tr><td>';
        if (Type=='0'){
        strSportDiv=strSportDiv+'<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td align="left"><b><font color="#7d0000">'+Left(NewsHeader,50)+'</font></b></td></tr><tr><td align="left">'+Left(NewsText,50)+'...</td></tr></table></td></tr></table>';
        }
        else if (Type=='1')
        {
        strSportDiv=strSportDiv+'<table border="0" width="100%" cellspacing="0" cellpadding="1"><tr><td align="left"><b><font color="#454545">'+Left(NewsHeader,50)+'</font></b></td></tr><tr><td align="left">'+Left(NewsText,50)+'...</td></tr></table></td></tr></table>';
        }
        document.getElementById(NewsDIV).innerHTML=strSportDiv;
    }
        
    function Left(str, n)
    {
	    if (n <= 0)
	        return "";
	    else if (n > String(str).length)
	        return str;
	    else
	        return String(str).substring(0,n);
    }
    
    function Right(str, n)
    {
        if (n <= 0)
           return "";
        else if (n > String(str).length)
           return str;
        else {
           var iLen = String(str).length;
           return String(str).substring(iLen, iLen - n);
    }
}