function orderformSenden() {
	if (document.orderform.wk_user.value == "" || document.orderform.wk_password.value == "") {
		alert("Bitte Username und Passwort eingeben.");
		return false;
	}
	if (document.orderform.nossl.checked == true) {
		document.orderform.action = "bestellen.php";
		document.orderform.type.value = "nossl";
	}
}

function kundenloginformSenden() {
	if (document.kundenloginform.nossl.checked == true) {
		document.kundenloginform.action = "login.php";
		document.kundenloginform.type.value = "nossl";
	}
}

function adr_form_abbrechen() {
	document.adr_form.reset();
	document.adr_form.submit();
}

function adr_form_delete_adr() {
	if (confirm("Die Lieferadresse wirklich löschen?"))
	{
		window.location.href="bestellen.php?action=delete";
	}
}

function ask_delete(text, url) {
	if (confirm(text))
	{
		window.location.href=url;
	}
}

function showPopup(url, title, width, height, scrollbars, toolbar, menubar) {
	window.open(url, title, "width="+width+",height="+height+",scrollbars="+scrollbars+",menubar="+menubar+",toolbar="+toolbar);
	}
