function validatePas(obj) {
	var pas = document.getElementById(obj.name).value;
	var patn = /^([0-9][A-Z]|[a-z]|[\d])*$/;	
	if (pas == "") {
		document.getElementById("password_info").innerHTML="<font color='red'>Please input the password</font>"
        return false;	
	}
	if (pas.length < 6) {
		document.getElementById("password_info").innerHTML="<font color='red'>Password should be more than 6</font>"
		return false;
	} else {
		document.getElementById("password_info").innerHTML=""
		return true;	
	}
}

function validateConpas(obj) {
	var conpas = document.getElementById(obj.name).value;
	var pas = document.getElementById("password").value;
	if (conpas == "") {
		document.getElementById("confpassword_info").innerHTML="<font color='red'>You should write password again</font>"
        return false;	
	}
	if (pas == conpas) {
		document.getElementById("confpassword_info").innerHTML="<font color='green'>The password is same</font>"
		return true;
	} else {
		document.getElementById("confpassword_info").innerHTML="<font color='red'>The password is not same</font>"
		return false;	
	}
}
