function Validator(theForm){

a=Validator.arguments;
for(i=1; i<a.length; i++){
	if (theForm[Validator.arguments[i]].value == ""){
		alert("Please fill all required fields.");
		theForm[Validator.arguments[i]].className += 'missing_field'
		theForm[Validator.arguments[i]].focus();
		return (false);
	}
}

if (theForm.url.value.length > 0){
	alert("Error has occured.");
	return (false);
}

return jcap();
}
