2010-07-01 20:11:36 +00:00
|
|
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
|
|
|
|
2010-07-01 19:10:34 +00:00
|
|
|
function validate_upload_file(form_passed) {
|
|
|
|
|
|
|
|
var msg="";
|
|
|
|
|
|
|
|
if (form_passed.datafile.value == "") msg += "Please browse and select a photo\n";
|
|
|
|
|
|
|
|
|
|
|
|
if (msg == "") {
|
|
|
|
|
|
|
|
document.form_upload_image.submit();
|
|
|
|
|
|
|
|
|
|
|
|
} else{
|
|
|
|
|
|
|
|
alert(msg);
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|