var xmlhttp=false;/*@cc_on @*//*@if (@_jscript_version >= 5)// JScript gives us Conditional compilation, we can cope with old IE versions.// and security blocked creation of the objects. try {  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {  try {   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) {   xmlhttp = false;  } }@end @*/if (!xmlhttp && typeof XMLHttpRequest!='undefined') {  xmlhttp = new XMLHttpRequest();}function addBid(ul, product_id){	var name = ul.form.name.value;	var email = ul.form.email.value;	var bid = ul.form.bid.value;		ul.form.Submit.disabled = true;	setTimeout("enableButton('"+product_id+"');", 1200);	xmlhttp.open("GET", "action.php?action=make_bid&product_id="+product_id+"&name="+name+"&email="+email+"&bid="+bid,true);//method, target, async (set always true!)		xmlhttp.onreadystatechange=function() {		if (xmlhttp.readyState==4) {			//document.getElementById('tree1').innerHTML = xmlhttp.responseText;			if(xmlhttp.responseText==1) {			alert("Dank u voor uw bod. Er is een verificatie (activatie) email naar het opgegeven emailadres gestuurd waarin u uw bod kunt activeren.");			var randomnumber=Math.floor(Math.random()*20000)			var sURL = unescape(window.location.pathname);			var new_location = sURL+"?n="+randomnumber+"#pr_"+product_id;			window.location.href = new_location;			}else{			alert("Vul alles correct in.");}		}	}		xmlhttp.send(null);}function enableButton(product_id){	document.getElementById('form_'+product_id).Submit.disabled = false;}function showForm(product_id){	document.getElementById("product_"+product_id).style.display = "none";	var formcontent = getFormContent(product_id);	document.getElementById("productform_"+product_id).innerHTML = formcontent;	document.getElementById("productform_"+product_id).style.display = "block";}function hideForm(product_id){	document.getElementById("productform_"+product_id).innerHTML = "";	document.getElementById("productform_"+product_id).style.display = "none";	document.getElementById("product_"+product_id).style.display = "block";}
