function MyProADS(a,f,id,tagid)
{
	var xmlHttp1 = false;
	if( tagid == null )
	{
		tagid = "myproads";
	}
	try {
    xmlHttp1  = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch(e) {
	    try {
	        xmlHttp1  = new ActiveXObject("Microsoft.XMLHTTP");
	    } catch(e) {
	        xmlHttp1  = false;
	    }
		}
// ... für Mozilla, Opera und Safari
	if (!xmlHttp1  && typeof XMLHttpRequest != 'undefined') {
		xmlHttp1 = new XMLHttpRequest();
	}
	if (xmlHttp1) {
	
		xmlHttp1.open('GET', 'myproads.php?a='+a+'&f='+f+'&id='+id, true);
		xmlHttp1.onreadystatechange = function () {
        if (xmlHttp1.readyState == 4) {
			 var data = xmlHttp1.responseText;
			 var format = f.split('_');
			 format = format[1].split('x');
             document.getElementById(tagid).style.width = format[0];
             document.getElementById(tagid).style.height = format[1];
             document.getElementById(tagid).innerHTML = data;
		}
	};
     xmlHttp1.send(null);
	}
}

function ClickMyProADS(bid)
{
	var xmlHttp1 = false;
	try {
    xmlHttp1  = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch(e) {
	    try {
	        xmlHttp1  = new ActiveXObject("Microsoft.XMLHTTP");
	    } catch(e) {
	        xmlHttp1  = false;
	    }
		}
// ... für Mozilla, Opera und Safari
	if (!xmlHttp1  && typeof XMLHttpRequest != 'undefined') {
		xmlHttp1 = new XMLHttpRequest();
	}
	if (xmlHttp1) {
	
		xmlHttp1.open('GET', 'myproads.php?do=c&bid='+bid, true);
		xmlHttp1.onreadystatechange = function () {
        if (xmlHttp1.readyState == 4) {
			 var data = xmlHttp1.responseText;
 		}
	};
     xmlHttp1.send(null);
	}
}
