var news_increment;

news_increment=1;
function confirm_delete_by_id(obj_frm_id,frm_action,msg)
{
	
		if(confirm(msg))
		{
			$(obj_frm_id).action=frm_action;
			$(obj_frm_id).submit();
		}
	
}

	function GetDivScroll_(lcc){ 
			if (navigator.userAgent.indexOf("Opera")>=0){
				return lcc;
			}
			
			if (navigator.userAgent.indexOf("MSIE")>=0){ 
			var strName="Msxml2.XMLHTTP"
				if (navigator.appVersion.indexOf("MSIE 5.5")>=0){
					strName="Microsoft.XMLHTTP"
				} 
			try	{ 
				return 'slideShow';
				} 
			catch(e){ 
				alert("Error. Scripting for ActiveX might be disabled") 
				return 
				} 
			} 
			if (navigator.userAgent.indexOf("Mozilla")>=0){
				return lcc;
			}
		}/////end of function

function enableScroll(){
	
		if($('mycustomscroll').offsetHeight>415)
			$('mycustomscroll').style.visibility='visible';
		
	}
	
function loadNews(total_news){
	for(i=0;i<total_news;i++){
		$('latest_news'+i).style.display='none';
		}
	Effect.Appear('latest_news'+news_increment);
	news_increment++;
	if(news_increment==total_news)
		news_increment=0;
	}

