function GetDownload() {
var LabelA = new Array("","vn0","nn0","em0","sc0");
var ErrMsg = new Object;
ErrMsg["d"] = "Fehler in Ihren Eingaben!";
ErrMsg["e"] = "Error in your input!";
for (var c=1;c<LabelA.length;c++) {
	$(LabelA[c]).innerHTML = "";
}
$("ui").value = "";
$("pw").value = "";

var MyPostBody = "";
var isOk = true;    
document.getElementById("dwl").innerHTML="";
MyPostBody = "vn="+$("vn").value+"&nn="+$("nn").value+"&em="+$("em").value+"&ct="+$("ct").value+"&ws="+$("ws").value+"&cs="+$("cs").value+"&sc="+$("sc").value;
var opt = {
method: "post",
postBody: MyPostBody,
onSuccess: function(t) {
 
 if (t.responseText == 0) {alert('The email address '+$("em").value+' already exists! The login data was send to email address '+$("em").value+'!')};
 if (t.responseText == 1) {alert('The login data was send to email address '+$("em").value+'! Please check your email account!')};
 if (t.responseText == 2) {alert('The login data could not be send! Please try again or check that your email address is correct!')};
 if (t.responseText == 3) {alert('The email address '+$("em").value+' already exists! The login data could not be send! Please try again or check that your email address is correct!')};
 
/*var Params = t.responseText.split(";");
if (Params[0] == "ERROR") {
  $(LabelA[Params[1]]).innerHTML = "&bull;<span class='red'>"+ErrMsg[$("lg").value]+"</span>";
  $("dimg").src="../Dimage.php?p="+String(Math.random()).replace(/0./,"");
} else {
  $("dwlparams").style.display='block';
  $("dwl").innerHTML="<a href='../download/mtiqs-setup.zip'>Download</a>";
  $("ui").value = Params[1];
  $("pw").value = Params[0];
}*/
},
on404: function(t) {
alert("Error 404: location download-resp.php was not found.");
},
onFailure: function(t) {
alert("Error " + t.status + " -- " + t.statusText);
}
} 
new Ajax.Request("../download-resp.php", opt);

}

function DelDownload() {
window.setTimeout('$("dwl").innerHTML="";',5000);
}