Calling two js function onClick help!

Hai folks,

onclick="return validate(),submitform()"

First function only works :rolleyes:

function validate(){
  var num=document.getElementById('name').value;
  if (num==""){
     alert ("Name must be provided.");
     return false;

second function is an ajax form submission

function submitform(){ 

hai folks,
i put function 1 code within function 2 code and now it works :smiley:
np. thank you.