function match(password,otherpassword)   
{   
if (password == otherpassword) {   
  
    document.getElementById("match").innerHTML = "<img src=\"images/same.gif\"> Passwords Match";   
}   
else{   
   document.getElementById("match").innerHTML = "<img src=\"images/notsame.gif\"> Passwords Do Not Match";   
}   
}