//"Accept terms" form submission- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
	var tempobj=checkobj.form.elements[i]
	if(tempobj.name.toLowerCase()=="mzdamanzelky") tempobj.disabled=!checkobj.checked
	if(tempobj.name.toLowerCase()=="druhypiliermanzelka") tempobj.disabled=!checkobj.checked
}
document.getElementById("hmm").style.color="black";
document.getElementById("hmmu").style.color="black";
}
}

function dagreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.name.toLowerCase()=="mzdamanzelky") tempobj.disabled=checkobj.checked
if(tempobj.name.toLowerCase()=="druhypiliermanzelka") tempobj.disabled=checkobj.checked
document.getElementById("hmm").style.color="gray";
document.getElementById("hmmu").style.color="gray";
document.getElementById("mzdamanzelky").value=0;
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Error")
return false
}
}
}

