function venuePopup(c,b){var a=c;NewWindowNoMenu(a,"VenueCreate","1000","600","yes","left")}function showEventUrlDiv(a){jQuery("#eventUrlDiv"+a).show();return true}function hideEventUrlDiv(d,c){if(c){var a=document.getElementById("eventUrlTxt"+d).value;var b="/venues/marketManagerBar/"+d;var e="eventUrl="+a+"&updateEventUrl=1";jQuery.ajax({type:"GET",url:b,data:e,success:function(f){jQuery("#eventUrlUpdate").html(f);jQuery("#eventUrlUpdate").show();jQuery("#eventUrlDiv"+d).hide()}})}else{jQuery("#eventUrlDiv"+d).hide()}return true}function featureBand(e,b){var d=document.getElementById("zs_feature_0").checked;var a="zs_admin6";var c="zs_admin5";if(d){a="zs_admin5";c="zs_admin6"}jQuery.ajax({type:"POST",url:"/venues/featurevenue/"+e+"/"+b,data:jQuery("#formFeature").serialize()+"&bands=1",success:function(f){jQuery("#featureMessage").html(f);jQuery("#featureMessage").show();jQuery("#zs_feature_div").hide();jQuery("#zs_feature_icon").removeClass(c);jQuery("#zs_feature_icon").addClass(a)}})}function getUpcomingConcerts(){url="/bands/upcomingConcerts";jQuery.ajax({type:"GET",url:url,data:"upcomingConcerts=1",success:function(a){if(a){jQuery("#zsp-upcoming-concerts").html(a)}}})}function getBandReviewsForOverView(d,c,b,a){if((b!=0)||(b==0&&a==0)){showYes=1}else{showYes=0}jQuery.getJSON("/components/bandreviews",{bandId:d,showYes:showYes,subTab:c,load:"1"},function(e){jQuery("#zse-load-write-module").html(e.writeData);jQuery("#zse-load-reviews-module").html(e.reviewData)})}function postReview(a){error=false;jQuery("#typeError").html("");jQuery("#reviewError").html("");jQuery("#nameError").html("");jQuery("#securityError").html("");if(!jQuery("#frmReview input[@type=radio][@checked]").length){jQuery("#typeError").html("Recommendation is required.");error=true}if(jQuery("#review").val().replace(/^\s*|\s*$/g,"")==""){jQuery("#reviewError").html("<br>Review text is required.");error=true}if(jQuery("#name").val().replace(/^\s*|\s*$/g,"")==""&&!jQuery("#anonymous").attr("checked")){jQuery("#nameError").html("Name is required.");error=true}if(jQuery("#security_code").val().replace(/^\s*|\s*$/g,"")==""){jQuery("#securityError").html("Security code is required.");error=true}if(jQuery("#review").val().length>750){jQuery("#reviewError").html("<br>Maximum characters of review should be 750 characters");error=true}if(error==true){return false}showYess=jQuery("#frmReview input[@type=radio][@checked]").val();jQuery.getJSON("/components/bandreviews/post",jQuery("#frmReview").serialize(),function(b){if(b.success===false){jQuery("#zse-load-write-module").html(b.writeData)}else{updateReviews(showYess,jQuery("#bandId").val(),1,a)}})}function updateReviews(c,d,a,b){jQuery.getJSON("/components/bandreviews/",{bandId:d,showYes:c,showConfirmation:a,subTab:b},function(e){jQuery("#zse-load-reviews-module").html(e.reviewData);if(a){jQuery("#zse-bookmark-icon").hide();jQuery("#zse-load-write-module").hide()}})}function getReviews(a){jQuery.ajax({type:"GET",url:"/components/bandreviews/show/"+a,success:displayReview})}function displayReview(a){jQuery("#zs_reviews_view").html(a);jQuery("#zs_reviews_view").show();jQuery("#reviews_view").hide()}function deleteReview(a){jQuery.ajax({type:"GET",url:"/components/bandreviews/delete/"+a,success:function(b){jQuery("#tr_"+b).hide()}})}function showReportAbuse(a){jQuery("#zs_reportAbuse"+a).show("normal")}function hideReportAbuse(c,b,a){if(!c){jQuery("#zs_reportAbuse"+a).hide();return true}if(jQuery("#"+a+"abuseTxt").val().replace(/^\s*|\s*$/g,"")==""){alert("Please enter reason");return}jQuery.ajax({type:"POST",url:"/venues/reportabuse/"+b+"/"+a,data:jQuery.serialize(),success:function(d){result=d;jQuery("#zs_reportAbuse"+result).hide()}})};function reportAbuse(c,g,b){var a="/"+c+"/reportabuse/"+g+"/"+b;if(c=="photos"){var a="/"+c+"/reportabuse/"+g}if(c=="events"){jQuery("#zs_postCommentDiv").hide();var e=jQuery("#zse-commentsCount").html();countParts=e.split("(");countPart=countParts[1].split(")");var d=parseInt(countPart[0])-1;var f=countParts[0]+"("+d+")"}jQuery.ajax({type:"POST",url:a,data:jQuery("form").serialize()+"&btnSubmit=1",success:function(h){if(h){jQuery("#TB_ajaxContent").html(h);jQuery("#zs_validation_err").show()}else{tb_remove();g=jQuery("#reviewId").val();jQuery("#tr_"+g).remove();if(c=="events"){jQuery("#zse-commentsCount").html(f)}content='<br><br><br><center><span class="zs_validation_err">Removed the review successfully!</span><br><a href="javascript:;" onClick="tb_remove();">Close</a></center>';jQuery("#TB_ajaxContent").html(content)}}})};