|
', end) + 1;
var theScript = theCode.substring(start2,end);
var newScript = document.createElement('script');
newScript.text = theScript;
theHead.appendChild(newScript);
var part1 = theCode.substring(0,start);
var part2 = theCode.substring(end2, theCode.length);
theCode = part1.concat(part2);
start = end + 9;
}
}
document.getElementById("contentDiv").innerHTML = theCode;
window.location.hash = "!sub=" + theID;
theTitle = searchByID_4127(theID);
document.title = originalTitle + ' - ' + theTitle;
if(FB){
FB.init({appId: '156151101088787', status: true, cookie: true, xfbml: true, href:window.location.href });
}
if( theScript && theScript.indexOf('goFlash') > 0){
goFlash();
}
}
connectIt2();
function rollOverList_4127( theID ){
var listTitle = document.getElementById( "4127_" + theID + "_title");
var listDate = document.getElementById( "4127_" + theID + "_date");
listTitle.bgColor = "e5f2ff";
listDate.bgColor = "e5f2ff";
}
function rollOutList_4127( theID ){
var listTitle = document.getElementById( "4127_" + theID + "_title");
var listDate = document.getElementById( "4127_" + theID + "_date");
listTitle.bgColor = "F5F5F5";
listDate.bgColor = "F5F5F5";
}
listItems_4127 = new Array();
listItems_4127[1] = {title:"MS Trial Alert", id:117, date:"Sat, Dec 29, 2012"};
listItems_4127[2] = {title:"New Information Posted on Clinical Trials in MS", id:114, date:"Thu, Aug 09, 2012"};
listItems_4127[3] = {title:"Recruiting for Study of Ofatumumab in RR MS", id:112, date:"Thu, Aug 09, 2012"};
function searchIt_4127( searchString ){
var matches = 0;
for(var j = 1; j < listItems_4127.length; j++){
var mySearch = new RegExp(searchString, "i");
isMatch = listItems_4127[j]['title'].search(mySearch);
var theItem = document.getElementById( "contentList4127_" + listItems_4127[j].id );
if(isMatch != -1){
matches += 1;
theItem.className = "show";
}else{
theItem.className = "hide";
}
}
var theError = document.getElementById( "noMatch" );
if(matches == 0){
theError.innerHTML = "There are no articles available that match the keyword '" + searchString + "'. Please try a different search.";
}else{
theError.innerHTML = "";
}
}
function startSearch_4127(){
var theInput = document.getElementById("searchInput_4127");
searchIt_4127(theInput.value);
}
function searchByID_4127(theID){
for(var j = 1; j < listItems_4127.length; j++){
if(listItems_4127[j].id == theID){
return listItems_4127[j].title;
}
}
}
window.onload = function() {
initialiseStateFromURL();
}
function initialiseStateFromURL() {
var theHash = window.location.hash;
if(theHash.indexOf('=')){
var theNumber = theHash.substring(theHash.indexOf('=')+1, theHash.length);
selectList(theNumber);
}
}
//-->
|
Select a topic from the list above.
|
|
|
|
|
|