function passMatch() { 
	document.getElementById('match').innerHTML = "<img src=\"http://www.bdbin.com/layout_images/ajax-loader.gif\">"; 
	var pass1 = document.getElementById("password1").value;
	var pass2 = document.getElementById("password2").value;
	if (pass1 == "") {
		document.getElementById('match').innerHTML = ""; 
	} else {
		if (pass2 == "") {
			document.getElementById('match').innerHTML = "<img src=\"http://www.bdbin.com/layout_images/ajax-loader.gif\"> Waiting for you to confirm..."; 
		} else {
			if (pass1 == pass2)	{
				document.getElementById('match').innerHTML = "<font color=\"green\">Match confirmed!</font>";
			} else {
				document.getElementById('match').innerHTML = "<font color=\"red\">Your passwords don\'t match!</font>";
			}
		}
	}
} 