
	function checkValidation(){
		if(document.getElementById("realname").value == false ||
			document.getElementById("email").value == false ||
			document.getElementById("c_content").value == false){
			alert("Nie wpisano wszystkich wymaganych informacji");
			return false;
		}else{
			document.getElementById("contact_form").submit();
			return true;
		}
	}	
	
	function allowRegexpChar(event, object, regexpstr) {
		  var code = (event.which == null) ? event.keyCode : event.which;
		  if (code < 0x20 || code > 0x7e)
					 return true;
		  var regexp = eval("/" + regexpstr + "/");
		  var str = String.fromCharCode(code);
		  if (str.match(regexp) == null)
					 return false;
		  return true;
	}

