
var _loadEvent=0;$("document").ready(function(){var txtProjectName=$.clientID('txtProjectName_txt');txtProjectName.keyup(function(){checkLibName();});txtProjectName.focus();if(txtProjectName.val().length>0)
checkLibName();});function checkLibName(){_loadEvent++;var dSend={projectLibName:$.clientID('txtProjectName_txt').val()};$.ajax({type:'POST',contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(dSend),url:_reposRoot+'/ProcessDefinition.asmx/CheckProjectLibraryName',success:function(data){onGotCheck(data,_loadEvent);}});}
function onGotCheck(data,loadEvent){if(loadEvent==_loadEvent){displayFeedback(data);}}
function displayFeedback(data){if(data.d.Allowed){$('#nameFeedback').removeClass('ui-state-error');}
else{$('#nameFeedback').addClass('ui-state-error');}
$('#nameFeedback').text(data.d.Message);}