// JavaScript Document

// Function to search PubMed. Takes search string just like 

function searchPubMed_UR(name)
{
  
	var sURL = new String("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=PubMed&term=");
	var query = new String("");

	var pubQuery = new Array(26)
	pubQuery[0] = new String(" Ahmed, Rafi [FAU] OR (  Ahmed R [AU]  Emory [AD] ) ");
	  //OR  Los Angeles [AD] OR  UCLA [AD] OR  La Jolla [AD] OR  Irvine;[AD] OR  9201218 ;[PMID] OR  17271252;[PMID] )" );
	pubQuery[1] = new String(" Amara RR [AU]");
	pubQuery[2] = new String(" Altman, John D [FAU] OR ( (  Altman JD [AU] OR  Altman J [AU] )  Emory [AD] ) ");
	  //( Atlanta [AD] OR  Drexel [AD] OR  Brigham [AD] OR  Chicago [AD] OR  Harvard [AD] OR  Wisconsin [AD] OR  Bethesda [AD] OR  Memphis [AD] OR  Philadelphia [AD] OR  Minneapolis [AD]  OR  Germany [AD] OR  Australia [AD] OR  Canada [AD] OR  HIV [MH] OR  Connecticut  [AD] OR  California [AD] OR  Stanford [AD])");
	pubQuery[3] = new String(" Blackwell, Jerry L [FAU] OR (  Blackwell JL [AU]  Emory [AD] ) ");
	pubQuery[4] = new String(" Compans, Richard W [FAU] OR ((  Compans RW [AU] OR  Compans R [AU] ) Emory [AD] ) ");
	pubQuery[5] = new String(" Derdeyn, Cynthia A [FAU] OR (  Derdeyn CA [AU]  Emory [AD] ) ");
	pubQuery[6] = new String(" Galinski [ALL] AND (  Malaria [ALL] OR plasmodium [ALL] OR platsoucas [ALL] )");
	pubQuery[7] = new String(" Garber, David A [FAU] OR (  Garber DA [AU]  Emory [AD] ) ");
	pubQuery[8] = new String(" Grakoui, Arash [FAU] OR (  Grakoui A [AU]  Emory [AD] ) ");
	pubQuery[9] = new String("(  Hunter, Eric [FAU] NOT  Hunter, Eric J [FAU]) OR (  Hunter E [AU] (  Emory [AD] OR  University of Alabama [AD] ) )");						  
	  //  OR  Duke University [AD] OR  Bethesda [AD] OR  Rwanda [AD] OR  Oklahoma [AD] )");
	pubQuery[10] = new String(" Ibegbu, Chris C [FAU] OR ( (  Ibegbu CC [AU] OR  Ibegbu C [AU] )  Emory [AD] ) ");
	pubQuery[11] = new String(" Jacob, Joshy [FAU] OR (  Jacob J [AU]  Emory [AD] ) ");
	pubQuery[12] = new String(" McCormick, Louise [FAU] OR (  McCormick L [AU]  Emory [AD] ) ");
	pubQuery[13] = new String(" Mittler,  Robert S [FAU] OR (  Mittler RS [AU]  Emory [AD] ) ");
	pubQuery[14] = new String(" Mocarski, Edward [FAU] ");
	pubQuery[15] = new String(" Moreno, Alberto [FAU] OR (  Moreno A [AU]  Emory [AD] ) ");
	pubQuery[16] = new String(" Mulligan, Mark J [FAU] OR (  Mulligan MJ [AU]  Emory [AD] ) ");
	pubQuery[17] = new String(" Novembre, Francis J [FAU] OR ( (  Novembre F [AU] OR  Novembre FJ [AU] )  Emory [AD] ) ");
	pubQuery[18] = new String(" Omer, Saad B [FAU] OR ( ( Omer SB [AU] OR Omer S [AU] ) Emory [AD] ) ");
	pubQuery[19] = new String(" Pulendran,  Bali [FAU] OR (  Pulendran B [AU]  Emory [AD] ) ");
	pubQuery[20] = new String(" Robinson, Harriet L [FAU] OR ( (  Robinson HL [AU] OR  Robinson H [AU] )  Emory [AD] ) ");
	pubQuery[21] = new String(" Speck, Samuel H [FAU] OR (  Speck SH [AU]  Emory [AD] ) ");  
	pubQuery[22] = new String(" Rengarajan J [AU] ");
	pubQuery[23] = new String(" Perng, Guey Chuen [FAU] OR  Perng GC [AU] ");
	pubQuery[24] = new String(" Cooper, Max D [FAU] ");
	pubQuery[25] = new String(" (Weiss DS [AU] AND Monack [AU]) OR (Weiss DS [AU] AND Zychlinsky [AU]) OR (Weiss DS [AU] AND Moreno[AU])");
	
//	document.write("This is the name: " + pubQuery.length);
	for (var i=0;i<=pubQuery.length; i++)
		{
		 if (pubQuery[i].indexOf(name)>=0) 	{ query = pubQuery[i]; break;}
		 }
	
	if(query.length > 0) {sURL = sURL + query};
//	document.write("This is the sURL: " + sURL);
	//if(alt_author.length > 0) {sURL = sURL + " OR " + alt_author+ "[AU]"};
	//if(context.length > 0) {sURL = sURL +  " " + context + "[AD]"};
	window.open(sURL);
	}

