function focus_form() {
	document.getElementById('downloadform').name.focus();	
}
function isEmail(strValue) {
	var objRegExp  = /^\w+([\-\.]\w+)*\@\w+([\-\.]\w+)*\.[a-z]{2,3}$/i;
	return objRegExp.test(strValue);
}
function validate_form(theForm){
	var strmessage="Please provide your name and email address - We will not disclose your details to any third parties. We will only contact you with product updates and new releases. You can unsubscribe from these updates at any time.";
	if (iWarnings==0) {
	    if(theForm.name.value == ""){
	         alert(strmessage);
			 iWarnings++;
	         theForm.name.focus();
	         return false;
	    }
	    if(theForm.email.value == ""){
	         alert(strmessage);
			 iWarnings++;			 
	         theForm.email.focus();
	         return false;
	    }
	    if(!isEmail(theForm.email.value)){
	         alert(strmessage);
			 iWarnings++;			 
	         theForm.email.select();
	         theForm.email.focus();
	         return false;
	    }
	}
    return true;
}
iWarnings=0;
