/*
function redirect_to_url(newLoc)
{
     // document.location.href = newLoc;
	location.href = newLoc;
}
*/
function redirect_to_url(url)
{
    var fakeLink = document.createElement ("a");
    if (typeof(fakeLink.click) == 'undefined')
        location.href = url;  // sends referrer in FF, not in IE
    else
    {
        fakeLink.href = url;
        document.body.appendChild(fakeLink);
        fakeLink.click();   // click() method defined in IE only
    }
}


var zxcTO;

function Scroll(id,dis,pos){
 var obj=document.getElementById(id)
 obj.scrollTop=obj.scrollTop+dis;
 if (pos){obj.scrollTop=pos; }
 else {zxcTO=setTimeout( function(){ Scroll(id,dis); },10); }
}

function ajax_show() {

	var obj = document.getElementById('ajax_update'); 
	obj.setAttribute("class", 'none'); 
	obj.setAttribute( 'className', 'none' );

	var bg = document.getElementById('bg_change'); 
	bg.setAttribute("class", 'blanket'); 
	bg.setAttribute( 'className', 'blanket' );
	
	return true;

}

function ajax_hide() {
	
	var obj = document.getElementById('ajax_update'); 
	obj.setAttribute("class", 'hidden'); 
	obj.setAttribute( 'className', 'hidden' );

	var bg = document.getElementById('bg_change'); 
	bg.setAttribute("class", 'none'); 
	bg.setAttribute( 'className', 'none' );

	return true;
}