function chekCheck(){
var checkSign = document.getElementById('checkStopSign').checked;
var privacyChecked = document.getElementById('checkStopSign').checked;
var eMail = document.getElementById('uEmail').value;
var budjet = document.getElementById('automodellA').options[document.getElementById('automodellA').options.selectedIndex].value;
if (budjet){
if (!eMail) {
errorMessage(unescape('Please fill in your email address!'));
return false
}
if (eMail!="") {
if(eMail.match(/^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/) == null) {
errorMessage(unescape('Please enter a valid email address'));
return false
}
}
if (!document.getElementById('checkStopSign').checked){
errorMessage(unescape('Please fill in Privacy'));
return false;
}
}
if (eMail){
if(eMail.match(/^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/) == null) {
errorMessage(unescape('Please enter a valid email address'));
return false
}
if (!budjet) {
errorMessage(unescape('Please select your available budget to proceed'));
return false
}
if (!document.getElementById('checkStopSign').checked){
errorMessage(unescape('Please fill in Privacy'));
return false;
}
}
if (document.getElementById('checkStopSign').checked){
if (!budjet) {
errorMessage(unescape('Please select your available budget to proceed'));
return false
}
if (!eMail) {
errorMessage(unescape('Please fill in your email address!'));
return false
}
if (eMail!="") {
if(eMail.match(/^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/) == null) {
errorMessage(unescape('Please enter a valid email address'));
return false
}
}
}
whichImage = document.getElementById('imgStopGoButton').src;
intStrich = whichImage.lastIndexOf('/');
intPunkt = whichImage.lastIndexOf('.');
strPart = whichImage.substring(Math.min(intStrich, intPunkt)+1, Math.max(intStrich, intPunkt));
document.getElementById("stop").firstChild.src = "img/img_gosign.png";
//alert(document.getElementById("imgStopGoButton").name);
document.getElementById("imgStopGoButton").style.cursor="pointer";
var goButtonEvent = document.getElementById("imgStopGoButton");
var sendIt = function (){document.getElementById('indexForm').submit()};
goButtonEvent.onclick = sendIt;
}
var statments = '{'+
'var oTextNode = document.createTextNode(text);'+
'document.getElementById("errorTxt").replaceChild(oTextNode, document.getElementById("errorTxt").firstChild);'+
'document.getElementById("errorTxt").className = "errorVisible";'+
'return false;'+
'}';
var errorMessage = new Function('text', statments);