// JavaScript Document

function getValue(name_value_pair,xOutput){

		//document.write(name_value_pair);
		//document.write(xOutput);
		
		var objURL = new Object();
		var the_text = "<span class= 'ppc_code'>866-454-4858</span>";


		window.location.search.replace(

			new RegExp( "([^?=&]+)(=([^&]*))?", "g" ),


			function( $0, $1, $2, $3 ){

				objURL[ $1 ] = $3;

			}

			);
			
			
			// Loop over the URL values that we collected.
			for (var strKey in objURL)
				
			{

			// Output the key to the document.

				//document.write(
 
					//"<strong>" + strKey + ":</strong> "

					//);

				// Output the value stored at that key.

				//document.write(

					//objURL[ strKey ] + "<br />"

					//);
			//document.write(name_value_pair)
			
			switch (objURL[ strKey ])
			{
			case 'gadwords':
  					the_text = "<span class = 'ppc_code'>888-405-1125</span>"
  					break
			case 'yappc':
  					the_text =  "<span class = 'ppc_code'>888-444-5062</span>"
  					break
			case 'msnppc':
  					the_text = "<span class= 'ppc_code'>888-668-3658</span>"
  					break
			//default:
  					//document.write("<span class= 'ppc_code'>866-454-4858</span>")
					//break
			}
			
			}
			document.write(the_text)
}

