$(function(){
$("#txtPasswordReg").blur(function(){
if($(this).val()==""){
$(this).css('color', 'red');
}
else if(!(passwordCheck($(this).val()))){
$(this).css('color', 'red');
alert("Please Enter Valid Password");
}
else{
$(this).css('color', 'black');
}
});
});