var ajaxstatus = "";

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// MAKETIMESTAMP
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function makeTimestamp(){
	jetzt 	= new Date();
	sekunde = jetzt.getSeconds();
	minute	= jetzt.getMinutes();
	stunde	= jetzt.getHours();
	tag		= jetzt.getDate();
	monat	= jetzt.getMonth();
	return monat+"."+tag+stunde+minute+sekunde;			
}


// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// GETAJAXDATA
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function getAjaxData(para,what){		
	if (window.XMLHttpRequest) { 
		http = new XMLHttpRequest();
	}else if (window.ActiveXObject){
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}		
	para = para+"&"+swfprint;
	ajaxstatus = what;
	http.onreadystatechange = getRequestContent;	
	http.open('POST', ptr+'_ajax.php', true);		
	http.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
  http.setRequestHeader( 'Content-length', para.length );      
  http.send(para);		
}


// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// GETREQUESTCONTENT
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function getRequestContent() {
	if (http.readyState == 4) {		
		if (http.status == 200) {
			ergebnis 	= http.responseText;
			//alert(ergebnis);
			ajaxstatus = "";
		}
	}
}

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// ABSTIMMEN
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function abstimmen(bid){
	parameter = "mod=vote&ts="+makeTimestamp()+"&bid="+bid;
	getAjaxData(parameter,"vote");
	document.getElementById('galerie_vote_teilnahmeform').style.display = 'block';	
	open('#form','_self');
}



// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// VOTE_ABSENDEN
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function vote_absenden(element){
	element.disabled = true;
	document.formmodelvoteteilnahme.submit();
}





