/**
 * Class        : siteMap.js
 * Author(s)    : Geeta Saluja
 * Creation Date: June 22, 2006
 * Functionality: 
 * Copyright    : P&G 
 *  Modification History
 *  Date                 Author              Description.
 */

/* this function is used for lifestages and navigating to the Site Map Article screen.*/ 
function LifeStage(species,lifestage,article)
{
    var strSpecies=document.lifeStageForm.species;	
    var strLifeStage=document.lifeStageForm.lifeStage;	
    strSpecies.value=species;
    strLifeStage.value=lifestage;
    document.lifeStageForm.searchResultPage.value="IAMS_Page.jsp?pageID=SMA&articleHeading="+article;
    document.lifeStageForm.submit();
}
/* this function is used for general articles and navigating to the Site Map Article screen. */
function General(species,general,article)
{
	var strSpecies=document.generalForm.species;	
    var strGeneral=document.generalForm.showOnlyGeneralArticle;	
    strSpecies.value=species;
    strGeneral.value=general;
    document.generalForm.searchResultPage.value="IAMS_Page.jsp?pageID=SMA&articleHeading="+article;
    document.generalForm.submit();
}
/* this function is used for displaying articles and navigating to the Site Map Article screen. */
function Topic(species,topic,article)
{
    var strTopic=document.topicForm.topic;		
    var strSpecies=document.topicForm.species;	
	strTopic.value=topic;
    strSpecies.value=species;
    document.topicForm.searchResultPage.value="IAMS_Page.jsp?pageID=SMA&articleHeading="+article;
    document.topicForm.submit();
}

	