	subject_id = '';
function handleHttpResponse() {
		if (http.readyState == 4) {
			if (subject_id != '') {
				
				document.getElementById(subject_id).innerHTML = http.responseText;
			}
		}
		else {
   				document.getElementById(subject_id).innerHTML = '<img src="includes/ajax-loader.gif" alt="marker" style="padding:15px" />';
            }

	}
function getHTTPObject() {
		var xmlhttp;
		/*@cc_on
		@if (@_jscript_version >= 5)
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
			}
		@else
		xmlhttp = false;
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	var http = getHTTPObject(); // We create the HTTP Object
	
	
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////	
function anchorScroller(el, duration) {
	
    if (this.criticalSection) {
        return false;
    }
        
    address = el+"-a";
	
    el = 0;
    for (var i=0; i<document.anchors.length; i++) {
		if (document.anchors[i].name == address) {
            el = document.anchors[i];
			
            break;
        }
    }
    if (el === 0)
        return true;
        
    this.stopY = 0;
    do {this.stopY += el.offsetTop;} while (el = el.offsetParent);
    
    this.startY = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
    
    this.stopY = this.stopY - this.startY;
    
    if (this.stopY == 0)
        return false;
    
    this.criticalSection = true;
    if (typeof duration == 'undefined')
        this.duration = 500;
    else
        this.duration = duration;
            
    var date = new Date();
    this.start = date.getTime();
    this.timer = setInterval(function () {    
        var date = new Date();
        var X = 1;
        var Y = ((-Math.cos(X*Math.PI)/2) + 0.5);
        
        cY = Math.round(this.startY + this.stopY*Y);
        
        document.documentElement.scrollTop = cY;
        document.body.scrollTop = cY;
        
        if (X == 1) {
            clearInterval(this.timer);
            this.criticalSection = false;
        }
    }, 10);
    return false;
}
