﻿function gup( name ){  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  var regexS = "[\\?&]"+name+"=([^&#]*)";  var regex = new RegExp( regexS );  var results = regex.exec( window.location.href );  if( results == null )    return "Join The 300: The movement to end age-related diseases once and for all";  else    return results[1];}	

var test_string = gup ( 'testy' );


	
if (document.referrer.indexOf('yahoo.com') != -1 ||
document.referrer.indexOf('google.com') != -1 ||
document.referrer.indexOf('msn.com') != -1 || 
test_string == "1" )

{

var passed_string = gup( 'subheadline' ); 

} else var passed_string = "Join The 300: The movement to end age-related diseases once and for all</u>";

var strReplaceAll = passed_string;
var intIndexOfMatch = strReplaceAll.indexOf( "_" );
var intIndexOfMatch2 = strReplaceAll.indexOf( "+" );
var intIndexOfMatch3 = strReplaceAll.indexOf( "^" );



// Loop over the string value replacing out each matching
// substring.
while (intIndexOfMatch != -1){
// Relace out the current instance.
strReplaceAll = strReplaceAll.replace( "_", " " )
 

// Get the index of any next matching substring.
intIndexOfMatch = strReplaceAll.indexOf( "_" );
}

// Loop over the string value replacing out each matching
// substring.
while (intIndexOfMatch2 != -1){
// Relace out the current instance.
strReplaceAll = strReplaceAll.replace( "+", "<br \>" )
 

// Get the index of any next matching substring.
intIndexOfMatch2 = strReplaceAll.indexOf( "+" );
}

// Loop over the string value replacing out each matching
// substring.
while (intIndexOfMatch3 != -1){
// Relace out the current instance.
strReplaceAll = strReplaceAll.replace( "^", "'" )
 

// Get the index of any next matching substring.
intIndexOfMatch3 = strReplaceAll.indexOf( "^" );
}


document.write(strReplaceAll);