function cbConfUpdte(txt){
	window.location = 'confirmSubmit/';
	return;
}
function textConfirm(strArg){
	reg = new RegExp("^[a-zA-Z0-9]+$");
	return reg.test(strArg);
}
document.getElementById('btn_submit').onclick = function(){
	var msg = "default";
	var ret = false;
	var ubit = document.getElementById('txt_ubit').value;
	var pw1=document.getElementById('pw_1').value;
	var pw2=document.getElementById('pw_2').value;
	if(!(textConfirm(ubit))){
		msg = "Invalid UBIT Name.";
	}else if(!(textConfirm(pw1) && textConfirm(pw2))){
		msg = "Invalid Password.\n\nValid characters are upper and lower case alphas and digits only.";
	}else if(pw1 != pw2){
		msg = "Passwords do not match."
	}
	if(msg=="default"){
		var url="pw_remote_.php";
		var data = new Array('type=conf_updte&usr=',ubit,'&temppw=',pw1).join("");
		postDataReturnText(url,data,cbConfUpdte);
	}else{
		alert(msg);
	}
	return;
}

