onSubmit="return validate(this);" // add this
...
function validate(_form){ //add _form if you have more than one form you are now able to switch by _form.name
...
var...
The code is likly str_replace ... so it would useable in your case.
el.className <- that the property wich you need to set.
"el" is a HTML Display element you could get access by many functions of...
if you place a link insed an input ... it looks like a button ... so you cann use a button?!
<form action="url"><button type="submit">link-text</button></form> ... thats all you need-.-
i think if you play a bit with firebugg or devtools ... you will quickly saw how you can set your div/img to the right size and center it how do you want. Just...