
function getCurrentUrl(){
	return window.location.href;
}

function PromptInvalidUserNumber(oInput, sLabel){
	if(!PromptEmptyString(oInput, sLabel)) return false;
	
	if(!IsValidUserNumber(oInput.value)){
		alert("对不起，" + sLabel + "格式不正确，请您正确填写！");
		oInput.focus();
		oInput.select();
		return false;
	}
	
	return true;
}


function IsValidUserNumber(sUserNumber){
	var pattern = /^[a-zA-Z0-9]+$/;
	return pattern.test(sUserNumber);
}
