    function getHTML(url,show)
    {
        var url = url;
        var pars = "";
        var myAjax = new Ajax.Updater(
                    {success: show},
                    url,
                   {method: 'get', parameters: pars, onFailure: $(show).innerHTML='正在加载 <img src=\"/loading.gif\" align=\"absmiddle\" style=\"width:16px;height:16px;border:0px;\" /> 请稍待 ',evalScripts: true});

    }

    function reportError(request)
    {
        alert('Sorry. There was an error.');
    }
	
	function checkvalue(){
if( form2.indexword.value =="" ) {
	alert("\请输入关键字！");
	form2.indexword.focus();
	return false;
	}
	form2.action="/sousuo.html";
	form2.submit();
}
 
function changbgimg(tofor,url){
var bg=$(tofor).style.background;
	if (strlen(bg)>40)
	{
	window.open(url);
	}

for(var i = 1; i < 9; i++){$("new"+i).style.background="url(/images/cqcb_09.gif) repeat";}
$(tofor).style.background="url(/images/bhbg.gif) no-repeat center";	

}

function changbgimg2(tofor,url){
	var bg=$(tofor).style.background;
	if (strlen(bg)>40)
	{
	window.open(url);
	}
	
for(var i = 1; i < 9; i++){$("zh"+i).style.background="url(/images/cqcb_09.gif) repeat";}
$(tofor).style.background="url(/images/bhbg1.gif) no-repeat center";

}

function changbgimg3(tofor){
var bg=$(tofor).style.background;	
for(var i = 1; i < 5; i++){$("topnew"+i).style.background="url(/img/bg13.gif) no-repeat";}
$(tofor).style.background="url(/img/bg12.gif) no-repeat center";
}

function changbgimg4(tofor){
var bg=$(tofor).style.background;	
for(var i = 1; i < 2; i++){$("topnew"+i).style.background="url(/img/bg13.gif) no-repeat";}
$(tofor).style.background="url(/img/bg12.gif) no-repeat center";
}
//window.status="欢迎光临重庆晨网";
function w_status(){
//window.status="欢迎光临重庆晨网";	
}
//document.onmousemove=w_status
function h_change1() { 
$("discuss_news1").style.background="url(/img/bg131.gif)";
$("discuss_news2").style.background="url(/img/bg1311.gif)";
getHTML('news_discuss.asp','news_discuss');
	}
function h_change2() { 
$("discuss_news1").style.background="url(/img/bg1311.gif)";
$("discuss_news2").style.background="url(/img/bg131.gif)";
getHTML('news_huati.asp','news_discuss');
	}
	
function killErrors() { 
		return true; 
}
;

 

