
function ajaxRequest(n,funktion,param){
	var req = null;
	try{
    	req = new XMLHttpRequest();
    }
    catch (ms){
    	try{
    		req = new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (nonms){
        	try{
            	req = new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (failed){
            	req = null;
        	}
    	}
    }
    if (req != null){
        req.open("GET", 'http://www.marios-reisen.de/includes/get_ajax.php?n='+n+'&param='+param, true);
        req.onreadystatechange = function(){
            switch(req.readyState) {
            case 4:
                if(req.status==200) {
                    s=req.responseText;
                    if(s!='') funktion(s);
                }
                break;
            default:
                return false;
                break;
            }
        };
        req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
        req.send(null);
    }
}

function setOpacity(obj,val){
	if (obj.style) {
		if (obj.style.MozOpacity!=null) {
			obj.style.MozOpacity = (val/10) - .001;
		} else if (obj.style.opacity!=null) {
			obj.style.opacity = (val/10) - .001;
		} else if (obj.style.filter!=null) {
			obj.style.filter = "alpha(opacity="+val*10+")";
		}
	}
}
