PageSourceSearch

https://www.broadjam.com/assets/skins/broadjam4/js/_core/broadjam.min.js?1.1.58

js broadjam.com collected 2026-10-02 05:42:41 UTC 29,178 bytes, 427 lines download raw bytes

1var broadjam={initialize:function(){this.strCookieToken="TKBJ";this.strCookieUserName="username";this.strCookiePasswordName="password";this.strCookieRememberName="remember";this.strCookieBjSessionIdName="BJPHPSESSID";this.strDevDomain="dev.broadjam.com";this.strDevRoot="/";this.strSkinName="broadjam2";this.setDefaultSkinDir="/assets/skins"+"/"+this.strSkinName;this.isDevEnvironment=function(){return document.location.host==this.strDevDomain};this.setSkinAssets=function(strSkinAssetsDir){this.phpAssets=strSkinAssetsDir==null?
2this.setDefaultSkinDir+"/php":strSkinAssetsDir+"/js";this.jsAssets=strSkinAssetsDir==null?this.setDefaultSkinDir+"/js":strSkinAssetsDir+"/js";this.imageAssets=strSkinAssetsDir==null?this.setDefaultSkinDir+"/images":strSkinAssetsDir+"/images"};this.parentWindowLocation=function(strUrl){opener.location.href=strUrl};this.detectPopupBlocker=function(){var win=window.open("","","width=1,height=1,left=0,top=0,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no");if(win){win.close();
3return false}else return true};this.popUpWindow=function(strPage,strName,strScrollbar,strScrollbars,strResizable,intWidth,intHeight,intLeft,intTop){if(this.detectPopupBlocker())alert("A popup blocker was detected. Please allow pop-up windows for broadjam.com.");else{var winOpts="scrollbar="+strScrollbar+",scrollbars="+strScrollbars+",menubar=no,resizable="+strResizable+",width="+intWidth+",height="+intHeight+",left="+intLeft+",top="+intTop;var popWin=window.open(strPage,strName,winOpts);if(popWin.focus)popWin.focus()}return};
4this.textHintHandler=function(strControlId,strAction,strColor,strHint){var $=document.getElementById(strControlId);if(strAction=="focus")if($.value==""||$.value==strHint+" "){$.value="";$.style.color=strColor}if(strAction=="blur")if($.value==""){$.value=strHint+" ";$.style.color=strColor}};this.textInputLimiter=function(strControlId,intLimit){var $=document.getElementById(strControlId);var $count=document.getElementById(strControlId+"_count");if($&&$count){$val=$.value;$count.innerHTML=intLimit-$val.length;
5if($val.length>intLimit){$.value=$val.substr(0,intLimit);$count.innerHTML="0"}}};this.openNewWindow=function(url,windowName,args){win=window.open(url,windowName,args);if(parseInt(navigator.appVersion)>=4)win.focus();return win};this.calcTotalTime=function(strControlId,intSongLength){var $controlid=document.getElementById(strControlId);var $time=document.getElementById("total_time");var $secs=document.getElementById("total_secs");var state=false;if($controlid.checked)state=true;$secs.innerHTML=state?
6parseInt($secs.innerHTML)+parseInt(intSongLength):parseInt($secs.innerHTML)-parseInt(intSongLength);var mins=parseInt($secs.innerHTML/60);var secs=parseInt($secs.innerHTML%60);mins=mins>9?mins:"0"+mins;secs=secs>9?secs:"0"+secs;$time.innerHTML=mins+":"+secs};this.toggleLayer=function(whichLayer,switchButton){var $button;if(document.getElementById){var divStyle=document.getElementById(whichLayer).style;$button=document.getElementById(whichLayer+"_control")}else if(document.all){var divStyle=document.all[whichLayer].style;
7$button=document.all[whichLayer+"_control"]}else if(document.layers){var divStyle=document.layers[whichLayer].style;$button=document.layers[whichLayer+"_control"]}divStyle.display=divStyle.display=="none"?"block":"none";if(switchButton===true)if(divStyle.display=="none")$button.innerHTML='<img src="'+this.setDefaultSkinDir+'/images/buttons/browse/but_expand.gif" width="16" height="16" />';else $button.innerHTML='<img src="'+this.setDefaultSkinDir+'/images/buttons/browse/but_collapse.gif" width="16" height="16" />'};
8this.closeLayers=function(prefix,numLayers,exceptionId,suffix){var $1;var $2;for(i=1;i<=numLayers;i++){if(document.getElementById){$1=document.getElementById(prefix+"_"+i);$2=document.getElementById(prefix+"_"+i+"_"+suffix)}else if(document.all){$1=document.all[prefix+"_"+i];$2=document.all[prefix+"_"+i+"_"+suffix]}else if(document.layers){$1=document.layers[prefix+"_"+i];$2=document.layers[prefix+"_"+i+"_"+suffix]}if(i!=exceptionId){$1.style.display="none";$2.innerHTML='<img src="'+this.setDefaultSkinDir+
9'/images/buttons/browse/but_expand.gif" width="16" height="16" />'}else if($1.style.display=="none")$2.innerHTML='<img src="'+this.setDefaultSkinDir+'/images/buttons/browse/but_expand.gif" width="16" height="16" />';else $2.innerHTML='<img src="'+this.setDefaultSkinDir+'/images/buttons/browse/but_collapse.gif" width="16" height="16" />'}};this.showLayer=function(whichLayer){if(document.getElementById)var divStyle=document.getElementById(whichLayer).style;else if(document.all)var divStyle=document.all[whichLayer].style;
10else if(document.layers)var divStyle=document.layers[whichLayer].style;divStyle.display="block"};this.hideLayer=function(whichLayer){if(document.getElementById)var divStyle=document.getElementById(whichLayer).style;else if(document.all)var divStyle=document.all[whichLayer].style;else if(document.layers)var divStyle=document.layers[whichLayer].style;divStyle.display="none"};this.openPopIn=function(id,from,to,interval){if(from==null)from=0;if(to==null)to=97;if(interval==null)interval=0.5;var pi=document.getElementById(id);
11if(pi.style.display=="none"){pi.style.display="block";var $1=new OpacityTween(pi,OpacityTween.regularEaseIn,from,to,interval);$1.start()}else this.closePopIn(id)};this.closePopIn=function(id,from,to,interval){if(from==null)from=97;if(to==null)to=0;if(interval==null)interval=0.5;var pi=document.getElementById(id);var $1=new OpacityTween(pi,OpacityTween.regularEaseIn,from,to,interval);$1.start();$1.onMotionFinished=function(){pi.style.display="none"}};this.tween=function(id,style,from,to,interval){if(style==
12null)style="OpacityTween.regularEaseIn";else style="OpacityTween."+style;if(from==null)from=0;if(to==null)to=100;if(interval==null)interval=0.5;var tween=document.getElementById(id);new OpacityTween(tween,style,from,to,interval)};this.addJavascript=function(strJsName){var th=document.getElementsByTagName("head")[0];var s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",strJsName);th.appendChild(s)};this.posWaitIcon=function(){strAppName=navigator.appVersion;
13if(navigator.appName=="Microsoft Internet Explorer"&&(strAppName.indexOf("MSIE 7.0")!=-1||strAppName.indexOf("MSIE 8.0")!=-1)){if(document.getElementById("elmWaitIconHolder")){var elmObj=document.getElementById("elmWaitIconHolder");var leftPos=document.documentElement.clientWidth/2-50+"px";var topPos=document.documentElement.clientHeight/2-50+"px";elmObj.style.left=leftPos;elmObj.style.top=topPos}}else if(navigator.appName=="Microsoft Internet Explorer"&&strAppName.indexOf("MSIE 6.0")!=-1){if(document.getElementById("elmWaitIconHolder")){var elmObj=
14document.getElementById("elmWaitIcon_ctl");var leftPos=document.body.clientWidth/2-50+"px";var topPos=document.body.clientHeight/2-50+"px";elmObj.style.left=leftPos;elmObj.style.top=topPos}}else if(document.getElementById("elmWaitIconHolder")){var elmObj=document.getElementById("elmWaitIconHolder");var leftPos=window.innerWidth/2-50+"px";var topPos=window.innerHeight/2-50+"px";elmObj.style.left=leftPos;elmObj.style.top=topPos}};this.getCookie=function(strName){var arAllCookies=document.cookie.split(";");
15var arTempCookie="";var strCookieName="";var strCookieValue="";var blnCookieFound=false;for(i=0;i<arAllCookies.length;i++){arTempCookie=arAllCookies[i].split("=");strCookieName=arTempCookie[0].replace(/^\s+|\s+$/g,"");if(strCookieName==strName){blnCookieFound=true;if(arTempCookie.length>1)strCookieValue=unescape(arTempCookie[1].replace(/^\s+|\s+$/g,""));return strCookieValue;break}arTempCookie=null;strCookieName=""}if(!blnCookieFound)return null};this.deleteCookie=function(strName,strPath,strDomain){if(strPath==
16null)strPath=this.isDevEnvironment()?this.strDevRoot:"/";if(strDomain==null)strDomain=document.location.host;if(this.getCookie(strName)){document.cookie=strName+"="+(strPath?";path="+strPath:"")+(strDomain?";domain="+strDomain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";strDomain="broadjam.com";document.cookie=strName+"="+(strPath?";path="+strPath:"")+(strDomain?";domain="+strDomain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}};this.setCookie=function(strName,strValue,intExpireDays,strPath,strDomain,
17secure){if(strPath==null)strPath=this.isDevEnvironment()?this.strDevRoot:"/";var today=new Date;today.setTime(today.getTime());if(intExpireDays)intExpireDays=intExpireDays*1E3*60*60*24;var dtExpires=new Date(today.getTime()+intExpireDays);document.cookie=strName+"="+escape(strValue)+(intExpireDays?";expires="+dtExpires.toGMTString():"")+(strPath?";path="+strPath:"")+(strDomain?";domain="+strDomain:"")+(secure?";secure":"")};this.logout=function(strRedirectPath){this.deleteCookie(this.strCookieToken);this.deleteCookie(this.strCookieUserName);
18this.deleteCookie(this.strCookiePasswordName);this.deleteCookie(this.strCookieRememberName);this.deleteCookie(this.strCookieBjSessionIdName);var strUrl=document.location.protocol+"//"+document.location.host;strUrl+=this.isDevEnvironment()?this.strDevRoot:"/";strUrl+=strRedirectPath?strRedirectPath:"";this.refresh(strUrl)};this.ascaplogout=function(){this.deleteCookie(this.strCookieToken);this.deleteCookie(this.strCookieUserName);this.deleteCookie(this.strCookiePasswordName);this.deleteCookie(this.strCookieRememberName);this.deleteCookie(this.strCookieBjSessionIdName);
19this.deleteCookie("ASCAP_Registered_User");var strUrl=document.location.protocol+"//"+document.location.host;strUrl+=this.isDevEnvironment()?this.strDevRoot+"/ascapexpo/":"/ascapexpo/";this.refresh(strUrl)};this.refresh=function(strURL){window.location.href=strURL?unescape(strURL):unescape(window.location.pathname)};this.onlineCk=function(){if(typeof bjMessages!="undefined"){bjMessages.strOnlineAJAXHandler=document.location.protocol+"//"+document.location.hostname+this.phpAssets+"/connections/online.php";
20bjMessages.online()}};this.numMemberComments=function(intMemberId,intCommentTypeId,intCommentStatusTypeId){if(intMemberId!=null&&typeof bjMessages!="undefined"){bjMessages.strNumberOfCommentsAJAXHandler+="/"+intMemberId;if(intCommentStatusTypeId!=null)bjMessages.strNumberOfCommentsAJAXHandler+="/"+intCommentStatusTypeId;if(intCommentTypeId!=null)bjMessages.strNumberOfCommentsAJAXHandler+="/"+intCommentTypeId;bjMessages.numberOfComments()}};this.trackPageView=function(strPageName){if(window.urchinTracker)urchinTracker(strPageName)}}};
21var bj=broadjam;bj.initialize();bj.setSkinAssets();bj.onlineCk();function _isDevEnvironment(){return bj.isDevEnvironment()}function textHintHandler(strControlId,strAction,strColor,strHint){return bj.textHintHandler(strControlId,strAction,strColor,strHint)}function toggleLayer(whichLayer,switchButton){bj.toggleLayer(whichLayer,switchButton)}function closeLayers(prefix,numLayers,exceptionId,suffix){bj.closeLayers(prefix,numLayers,exceptionId,suffix)}
22function showLayer(whichLayer){bj.showLayer(whichLayer)}function hideLayer(whichLayer){bj.hideLayer(whichLayer)}function openPopIn(id,from,to,interval){bj.openPopIn(id,from,to,interval)}function closePopIn(id,from,to,interval){bj.closePopIn(id,from,to,interval)}function tween(id,style,from,to,interval){bj.tween(id,style,from,to,interval)}
23function __pop_up(strPage,strName,strScrollbar,strScrollbars,strResizable,intWidth,intHeight,intLeft,intTop){bj.popUpWindow(strPage,strName,strScrollbar,strScrollbars,strResizable,intWidth,intHeight,intLeft,intTop)}function isMobileSafari(){return navigator.userAgent.match(/(iPod|iPhone|iPad)/)}
24function __pop_up_media_player(strPage){if(isMobileSafari())top.location.href=strPage;else if(top!==self)bj.popUpWindow(strPage,"_top","no","no","no",746,571,100,250);else if(strPage.indexOf("review=")>-1||strPage.indexOf("contestID=")>-1)bj.popUpWindow(strPage,"Player","no","no","no",586,274,100,250);else bj.popUpWindow(strPage,"Player","no","no","no",746,571,100,250)}function __pop_up_video_player(strPage){bj.popUpWindow(strPage,"Player","no","no","no",320,260,100,250)}
25function __pop_up_debug(strPage){bj.popUpWindow(strPage,"Debug","no","no","yes",300,450,100,250)}function __pop_up_add_to_shoppingcart(strPage){bj.popUpWindow(strPage,"AddToShoppingCart","no","no","no",300,300,100,250)}function __popup_add_to_medialist(strPage){bj.popUpWindow(strPage,"AddToPlaylist","yes","yes","no",390,690,100,250)}function __popup_add_favorite_artist(strPage){bj.popUpWindow(strPage,"AddToFavorites","no","no","no",300,300,100,250)}function posWaitIcon(){bj.posWaitIcon()}
26function parentWindowLocation(strUrl){bj.parentWindowLocation(strUrl)}function trackPageView(strPageName){bj.trackPageView(strPageName)}function OpenNewWindow(url,windowName,args){bj.openNewWindow(url,windowName,args)}function OpenNewWindow2(url,winwidth,winheight){bj.openNewWindow(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,scrollbars=no,resizable=no,copyhistory=no,width="+winwidth+",height="+winheight)}
27function OpenNewWindow3(url,winwidth,winheight){bj.openNewWindow(url,"addtofavorites","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,scrollbars=no,resizable=no,copyhistory=no,width="+winwidth+",height="+winheight)}function OpenNewWindowMediaLists(url,winwidth,winheight){bj.openNewWindow(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,scrollbars=yes,resizable=no,copyhistory=no,width="+winwidth+",height="+winheight)}
28function OpenNewWindow2(url,winwidth,winheight){bj.openNewWindow(url,"FAQ","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,scrollbars=no,resizable=no,copyhistory=no,width="+winwidth+",height="+winheight)}
29function NewWindow(mypage,myname,w,h,scroll){var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;var scroll=scroll==null?"no":scroll;var settings="height="+h+",";settings+="width="+w+",";settings+="top="+wint+",";settings+="left="+winl+",";settings+="scrollbars="+scroll+",";settings+="resizable=no";bj.openNewWindow(mypage,myname,settings)}function MM_openBrWindow(theURL,winName,features){bj.openNewWindow(theURL,winName,features)}
30function radioUniquify(line,group){if(group!="Good")uncheck("rdoSong"+line+"Good");if(group!="Better")uncheck("rdoSong"+line+"Better");if(group!="Best")uncheck("rdoSong"+line+"Best")}function uncheck(id){document.getElementById(id).checked=false}function rate(contestSongId,ctlId){var lst=document.getElementById(ctlId);$.post("/rest/broadjam/process",function(){var rv={action:"ratecontestsong",rating:lst.value,contestSongId:contestSongId};return rv}(),function(data){})}
31
32function select(contestSongId,ctlId,considerCtlId,strSongName,strArtistName,str
32EmailSelectedDiv){
33
34	if (document.getElementById)
35		{
36			// this is the way the standards work
37			var selectBtn = document.getElementById(ctlId);
38		}
39		else if (document.all)
40		{
41			// this is the way old msie versions work
42			var selectBtn = document.all[ctlId];
43		}
44		else if (document.layers)
45		{
46			// this is the way nn4 works
47			var selectBtn = document.layers[ctlId];
48		}
49		
50		
51	if(selectBtn.innerHTML=="select"){
52		var answer = confirm("Select "+strSongName+" by "+strArtistName+"?\n\nThis cannot be undone");
53		
54		if (!answer){
55			return;
56		}
57	}
58	
59	$.ajax({
60		type: 'POST',
61		url: '/rest/broadjam/process',
62		data: 'action=selectcontestsong&contestSongId='+contestSongId,
63		global: false,
64		dataType: 'text',
65		success: function(text) {
66			if(text === "Already"){
67				alert("You have already selected this song for a previous opportunity.");
68				return false;
69			}else{
70				if(text === "ArtistAlready"){
71					selectedShowEmailLink(ctlId,considerCtlId,strEmailSelectedDiv,strSongName,strArtistName,contestSongId,true);
72				}else{
73					selectedShowEmailLink(ctlId,considerCtlId,strEmailSelectedDiv,strSongName,strArtistName,contestSongId,false);
74				}
75			}
76		},
77		error: function(text)
78		{
79		}
80	});
81}
82
83function selectedShowEmailLink(selectCtlId,considerCtlId,strEmailSelectedDiv,strSongName,strArtistName,contestSongId,blnArtistSelectedAlready){
84
85	var selectBtn = document.getElementById(selectCtlId);
86
87	selectBtn.innerHTML='<font color="red">selected</font>';
88	document.getElementById(considerCtlId).href = '#';
89
90	
91	if(selectBtn.innerHTML=='<font color="red">selected</font>' || selectBtn.innerHTML=='<FONT color=red>selected</FONT>'){
92		
93		if(blnArtistSelectedAlready){
94			document.getElementById('emailselected_header').innerHTML = 'You have selected "'+strSongName+'" by '+strArtistName+'.<br /><br />Since you have already contacted '+strArtistName+', you do not need to again. If you wish to do so anyway, please use the textbox below to send a message to '+strArtistName+' (all selected artists must be contacted via Broadjam message before commission payments will be sent out).';
95			document.getElementById('contactlaterbtn').innerHTML = 'Close This Window';
96		}else{
97			document.getElementById('emailselected_header').innerHTML = 'You have selected "'+strSongName+'" by '+strArtistName+'.<br /><br />Please use the textbox below to send a message to '+strArtistName+' (all selected artists must be contacted via Broadjam message before commission payments will be sent out).';
98			document.getElementById('contactlaterbtn').innerHTML = 'I will contact this artist later';
99		}
100		document.getElementById( "selectedMessageSubmit" ).setAttribute( "onClick", "javascript: void(messageToSelectedArtist("+contestSongId+"));" );
101		bj.openPopIn('emailselected');
102	}
103}
104
105function messageToSelectedArtist(contestSongId){
106	
107	var strMessageText = document.getElementById('selectedMessage').value;
108	var strMessageTextClean = encodeURIComponent(strMessageText);
109	
110	$.ajax({
111		type: 'POST',
112		url: '/rest/broadjam/process',
113		data: 'action=messageselectedartist&contestSongId='+contestSongId+'&text='+strMessageText,
114		global: false,
115		dataType: 'text',
116		success: function(text) {
117			
118			document.getElementById('selectedMessage').value = "";
119			
120			bj.closePopIn('emailselected');
121			
122			document.getElementById('contactselectedbtn'+contestSongId).innerHTML = 'Artist Contacted';
123			document.getElementById('contactselectedbtn'+contestSongId).href = '#';
124			
125			bj.openPopIn('emailselectedsuccess');
126			
127
128			setTimeout(function(){ bj.closePopIn('emailselectedsuccess'); }, 2000);
129		},
130		error: function(text)
131		{
132		}
133	});
134}
135
136function servicesShowEmailLink(contestSubmissionId,contestSongId,strArtistName){
137	document.getElementById('emailservices_header').innerHTML = 'Please use the textbox below to send a message to '+strArtistName+'.';
138	document.getElementById( "servicesMessageSubmit" ).setAttribute( "onClick", "javascript: void(messageToServicesSubmitter('"+contestSubmissionId+"','"+contestSongId+"'));" );
139	document.getElementById( "servicesMessageCancel" ).setAttribute( "onClick", "bj.closePopIn('emailservices');" );
140	bj.openPopIn('emailservices');
141}
142
143function messageToServicesSubmitter(contestSubmissionId,contestSongId){
144	
145	var strMessageText = document.getElementById('servicesMessage').value;
146	var strMessageTextClean = encodeURIComponent(strMessageText);
147
148	$.ajax({
149		type: 'POST',
150		url: '/rest/broadjam/process',
151		data: 'action=messageservicessubmitter&contestSubmissionId='+contestSubmissionId+'&contestSongId='+contestSongId+'&text='+strMessageTextClean,
152		global: false,
153		dataType: 'text',
154		success: function(text) {
155			
156			document.getElementById('servicesMessage').value = "";
157			
158			bj.closePopIn('emailservices');
159			
160			if(contestSongId.length > 0){
161				document.getElementById('emailservicesbtn'+contestSongId).innerHTML = 'Member Contacted';
162				document.getElementById('emailservicesbtn'+contestSongId).href = '#';
163			}else{
164				document.getElementById('emailservicesbtn'+contestSubmissionId).innerHTML = 'Member Contacted';
165				document.getElementById('emailservicesbtn'+contestSubmissionId).href = '#';
166			}
167			
168			bj.openPopIn('emailservicessuccess');
169			
170			setTimeout(function(){ bj.closePopIn('emailservicessuccess'); }, 2000);
171		},
172		error: function(text)
173		{
174		}
175	});
176}
177
178function servicesMarkAsCompleted(contestSubmissionId,contestSongId){
179	
180	var answer = confirm("Mark this submission as completed?");
181	
182	if (!answer){
183		return;
184	}
185	
186	$.ajax({
187		type: 'POST',
188		url: '/rest/broadjam/process',
189		data: 'action=markservicecompleted&contestSubmissionId='+contestSubmissionId+'&contestSongId='+contestSongId,
190		global: false,
191		dataType: 'text',
192		success: function(text) {
193
194			if(contestSongId.length > 0){
195				document.getElementById('completedbtn'+contestSongId).innerHTML = 'COMPLETED';
196				document.getElementById('completedbtn'+contestSongId).href = '#';
197			}else{
198				document.getElementById('completedbtn'+contestSubmissionId).innerHTML = 'COMPLETED';
199				document.getElementById('completedbtn'+contestSubmissionId).href = '#';
200			}
201
202		},
203		error: function(text)
204		{
205		}
206	});
207	
208	
209	
210}
211
212function remember(contestSongId,ctlId){
213
214	if (document.getElementById)
215		{
216			// this is the way the standards work
217			var selectBtn = document.getElementById(ctlId);
218		}
219		else if (document.all)
220		{
221			// this is the way old msie versions work
222			var selectBtn = document.all[ctlId];
223		}
224		else if (document.layers)
225		{
226			// this is the way nn4 works
227			var selectBtn = document.layers[ctlId];
228		}
229		
230		
231	$.ajax({
232		type: 'POST',
233		url: '/rest/broadjam/process',
234		data: 'action=remembercontestsong&contestSongId='+contestSongId,
235		global: false,
236		dataType: 'text',
237		success: function(text) {
238			if(text === "Already"){
239				alert("You have already remembered this song from a previous opportunity.");
240				return false;
241			}else{
242				document.getElementById( "rememberMessageSubmit" ).setAttribute( "onClick", "javascript: void(rememberMessageSubmitClick("+text+","+contestSongId+"));" );
243				bj.openPopIn('remember');
244			}
245		},
246		error: function(text)
247		{
248		}
249	});
250}
251
252
253function rememberMessageSubmitClick(contestRememberSongId, contestSongId){
254	
255	var strMessageText = document.getElementById('rememberMessage').value;
256	
257	var strMessageTextClean = encodeURIComponent(strMessageText);
258	
259	//alert(strMessageTextClean);
260	//return;
261	
262	$.ajax({
263		type: 'POST',
264		url: '/rest/broadjam/process',
265		data: 'action=remembermessage&contestRememberSongId='+contestRememberSongId+'&text='+strMessageTextClean,
266		global: false,
267		dataType: 'text',
268		success: function(text) {
269			
270			document.getElementById('rememberMessage').value = "";
271
272			document.getElementById('rememberbtn'+contestSongId).innerHTML = 'marked as remembered';
273			document.getElementById('rememberbtn'+contestSongId).href = '#';
274			
275			bj.closePopIn('remember');
276			bj.openPopIn('remember_success');
277			
278		},
279		error: function(text)
280		{
281		}
282	});
283}
284
285function consider(contestSongId,ctlId,selectCtlId){if(document.getElementById(ctlId).innerHTML=="consider"){document.getElementById(ctlId).innerHTML='<font color="red">in consideration</font>';document.getElementById(selectCtlId).innerHTML="select"}else if(document.getElementById(ctlId).innerHTML=='<font color="red">in consideration</font>')document.getElementById(ctlId).innerHTML='<font color="red">in consideration</font>';$.post("/rest/broadjam/process",function(){var rv={action:"considercontestsong",contestSongId:contestSongId};
286return rv}(),function(data){})}function hide(contestSongId,ctlId){if(document.getElementById(ctlId).innerHTML=="hide")document.getElementById(ctlId).innerHTML='<font color="red">unhide</font>';else if(document.getElementById(ctlId).innerHTML=='<font color="red">unhide</font>')document.getElementById(ctlId).innerHTML="hide";$.post("/rest/broadjam/process",function(){var rv={action:"hidecontestsong",contestSongId:contestSongId};return rv}(),function(data){})}
287function comment(contestSongId,ctlId){var textarea=document.getElementById(ctlId);$.post("/rest/broadjam/process",function(){var rv={action:"commentcontestsong",contestSongId:contestSongId,comments:textarea.value};return rv}(),function(data){})}function download(contestSongId){$.post("/rest/broadjam/process",function(){var rv={action:"downloadcontestsong",contestSongId:contestSongId};return rv}(),function(data){window.open("/downloads/transmitsongdownload.php?songID="+data)})} function commenttoartist(contestSongId,ctlId){var textarea=document.getElementById(ctlId);$.post("/rest/broadjam/process",function(){var rv={action:"commenttoartistcontestsong",contestSongId:contestSongId,comments:textarea.value};return rv}(),function(data){})};
288function addSongToCart(songId, redirectParent){
289
290	var strExtraOnClick = '';
291	
292	if(!isNaN(redirectParent)){
293		strExtraOnClick = 'onclick="$(\'#songbuy_nag\').modal(\'show\'); window.opener.location=\'/shoppingcart/index.php\'; return false;"';
294	}
295	
296	if(isNaN(songId)){
297		document.getElementById('songbuy_nag').innerHTML = '<div class="modal-dialog modal-dialog-centered modal
297-lg"><div class="modal-content"><div class="modal-body" style="text-align:center"><h3>Songs added to cart!</h3><p style="font-size:14px;font-weight:bold;color:#000;margin-top:10px"><a style="font-size:18px;font-weight:bold;" href="/shoppingcart/index.php" '+strExtraOnClick+'>Go to cart</a><br><br><a style="font-size:18px;font-weight:bold;" href="#" onclick="$(\'#songbuy_nag\').modal(\'hide\'); return false">Close this window</a></p></div></div></div>';
298		$('#songbuy_nag').modal('show');
299	}else{
300		$.ajax({
301			type: 'POST',
302			url: '/rest/broadjam/process',
303			data: 'action=addsongtocart&songId='+songId,
304			global: false,
305			dataType: 'text',
306			success: function() {
307				document.getElementById('songbuy_nag').innerHTML = '<div class="modal-dialog modal-dialog-centered modal-lg"><div class="modal-content"><div class="modal-body" style="text-align:center"><h3>Song added to cart!</h3><p style="font-size:14px;font-weight:bold;color:#000;margin-top:10px"><a style="font-size:18px;font-weight:bold;" href="/shoppingcart/index.php" '+strExtraOnClick+'>Go to cart</a><br><br><a style="font-size:18px;font-weight:bold;" href="#" onclick="$(\'#songbuy_nag\').modal(\'hide\'); return false">Close this window</a></p></div></div></div>';
308				$('#songbuy_nag').modal('show');
309			},
310			error: function(text)
311			{
312				document.getElementById('songbuy_nag').innerHTML = '<div class="modal-dialog modal-dialog-centered modal-lg"><div class="modal-content"><div class="modal-body" style="text-align:center"><h3>Song added to cart!</h3><p style="font-size:14px;font-weight:bold;color:#000;margin-top:10px"><a style="font-size:18px;font-weight:bold;" href="/shoppingcart/index.php" '+strExtraOnClick+'>Go to cart</a><br><br><a style="font-size:18px;font-weight:bold;" href="#" onclick="$(\'#songbuy_nag\').modal(\'hide\'); return false">Close this window</a></p></div></div></div>';
313				$('#songbuy_nag').modal('show');
314			}
315		});
316	}
317}
318
319
320function addSongToPublishingTransmit(songId,ctlId,strPopinDiv){
321
322	if (document.getElementById)
323		{
324			// this is the way the standards work
325			var transmitBtn = document.getElementById(ctlId);
326		}
327		else if (document.all)
328		{
329			// this is the way old msie versions work
330			var transmitBtn = document.all[ctlId];
331		}
332		else if (document.layers)
333		{
334			// this is the way nn4 works
335			var transmitBtn = document.layers[ctlId];
336		}
337		
338		
339		
340	$.ajax({
341		type: 'POST',
342		url: '/rest/broadjam/processTransmit',
343		data: 'action=addsongtopublishingtransmit&songId='+songId,
344		global: false,
345		dataType: 'text',
346		success: function(text) {
347			
348			transmitBtn.innerHTML='<font color="red">in transmit</font>';
349
350			if(transmitBtn.innerHTML=='<font color="red">in transmit</font>' || transmitBtn.innerHTML=='<FONT color=red>in transmit</FONT>'){
351				document.getElementById('pubtransmit_header').innerHTML = 'Song added to transmit!';
352				bj.openPopIn('pubtransmit');
353			}
354				
355		},
356		error: function(text)
357		{
358		}
359	});
360}
361
362function publishingBtnClick(){
363	
364	var checkedValues = $('input:checkbox:checked').map(function() {
365	    return this.id;
366	}).get();
367	
368	publishinginvite(checkedValues);
369	
370}
371	
372function publishinginvite(songIds){
373
374	$.ajax({
375		type: 'POST',
376		url: '/rest/broadjam/process',
377		data: 'action=publishinginvite&songIds='+songIds,
378		global: false,
379		dataType: 'text',
380		success: function(text) {
381			
382			document.getElementById( "publishingMessageSubmit" ).setAttribute( "onClick", "javascript: void(publishingMessageSubmitClick('"+songIds+"'));" );
383			bj.openPopIn('publishing');
384			//globalCtlIds = ctlIds;
385			
386			//alert(globalCtlIds);
387			//return;
388			
389		},
390		error: function(text)
391		{
392		}
393	});
394}
395
396
397function publishingMessageSubmitClick(songIds,ctlIds){
398	
399	var strMessageText = document.getElementById('publishingMessage').value;
400	
401	var strMessageTextClean = encodeURIComponent(strMessageText);
402	
403	
404	$.ajax({
405		type: 'POST',
406		url: '/rest/broadjam/process',
407		data: 'action=publishingmessage&songIds='+songIds+'&text='+strMessageTextClean,
408		global: false,
409		dataType: 'text',
410		success: function(text) {
411			
412			document.getElementById('publishingMessage').value = "";
413
414			//document.getElementById(globalCtlIds).innerHTML = 'publishing invite sent';
415			//document.getElementById(globalCtlIds).href = '#';
416			
417			bj.closePopIn('publishing');
418			bj.openPopIn('publishing_success');
419			
420			$("input:checkbox").attr('checked', false);
421			
422		},
423		error: function(text)
424		{
425		}
426	});
427}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.