Bild01 = new Image();
Bild01.src = "http://www.dataup.to/images/main/buttons/download.gif";

Bild02 = new Image();
Bild02.src = "http://www.dataup.to/images/main/buttons/download_warten.gif";

Bild03 = new Image();
Bild03.src = "http://dataup.to/images/main/percentImage_back5.png";

  function createRequestObject() {
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
      ro = new ActiveXObject("Microsoft.XMLHTTP");
    } else {
      ro = new XMLHttpRequest();
    }
    return ro;
  }
  
  function loadStats1() {
	if (document.mois.elements[0].checked  == true) { antwort = '1'; }
	else if (document.mois.elements[1].checked  == true) { antwort = '2'; }
	else { antwort = ''; }

	document.getElementById('r1').style.visibility = 'hidden';
	document.getElementById('r2').style.visibility = 'hidden';
	document.getElementById('vote').style.display = 'none';
	document.getElementById('dank').style.display = 'block';

    var ro = createRequestObject();
    ro.open('GET', 'http://dataup.to/data/content/pool_ajax.inc.php?antwort='+antwort);
    ro.onreadystatechange = function() {
      if(ro.readyState==4 && ro.status == 200) {
        var cont = ro.responseText;
        document.getElementById('antworten').innerHTML = cont;

      }
    };
    ro.send(null);
  }

function checkUncheckAll(theElement) {
 var theForm = theElement.form, z = 0;
 for(z=0; z<theForm.length;z++) {
  if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
   theForm[z].checked = theElement.checked;
  }
 }
}

function highlight(field) {
	field.focus();
	field.select();
}

function ads_show() {
	var popUpSizeX=screen.availWidth;
	var popUpSizeY=screen.availHeight;
	
	var popUpLocationX=0;
	var popUpLocationY=0;
	
	// URL of the popUp
	//var popUpURL = "http://www.firstload.de/affiliate/log.php?log=7441"; //Firstload
	//var popUpURL="http://www.zeusfiles.com/?wmid=3288&campaign=653"; //Zeus
	var popUpURL = "http://ad.zanox.com/ppc/?12061133C216972164T"; //SMS
	
	splashWin = window.open("",'x','fullscreen=0,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
	  
	splashWin.resizeTo(popUpSizeX,popUpSizeY);
	splashWin.moveTo(popUpLocationX,popUpLocationY);
	splashWin.location=popUpURL;
	//splashWin.focus();
	splashWin.blur();
	window.focus();
}

function contanct_value() {
	if (document.getElementById('anliegen').value == 'Abuse') {
		document.getElementById('text').value = 'Bitte geben Sie Ihre Kontaktdaten sowie Telefonnummer an, so das wir Sie im Falle einer Frage kontaktieren können.\n\nEs wäre auch hilfreich, wenn Sie die Website nennen, wo Sie den Link gefunden haben.';
	} else {
		document.getElementById('text').value = '';
	}
}

function loeschen() {
	if(confirm('Sind Sie sicher, das Sie die Dateien löschen wollen?')) {
		document.getElementById('form').submit();
	}
}

var last_hovered;
function rest(id) {
	if(last_hovered) {
		document.getElementById('tasche' + last_hovered).style.display = "none";
	}
	document.getElementById('tasche' + id).style.display = "block";
	last_hovered = id;
}

function rest_out(id) {
	document.getElementById('tasche' + id).style.display = "none";
}
