Hi,

pls bear with me, as I'm so new to java.. so this may sounds silly or aleready answered before but..

I am trying to combine these two things into one:

onSubmit="YY_checkform('form1','job_type','#q','1','Field \'job_type\' is not valid.','type_of_work','#q','1','Field \'type_of_work\' is not valid.');return document.MM_returnValue;"

and

onSubmit="checkFileUpload(this,'PDF,JPG,DOC,TXT,PNG',true,'','','','','','','')"

Is this possible?

can two funtions like my YY_checkform and checkFileUpload be part of the same onSubmit="" ?

Many thanls if you can help,

Vinny