        function hide_and_seek(item_id)

	{ 

                var which_item = document.getElementById(item_id);

                if (which_item.className == "hide_form")

                    {

                        which_item.className="show_form";

                    }

                else

                    {

                        which_item.className="hide_form";

                    }

	}

function hide_and_seek_transcript(uid)

        {

            var item_id = document.getElementById('transcript' + uid);
            var item_image = document.getElementById('transcript_image_' + uid);

            down = new Image(20, 20);
            down.src = "/media/icons/down.gif";

            left = new Image(20, 20);
            left.src = "/media/icons/left.gif";

            if (item_id.className == "hide_form")

                {

                    item_id.className="show_form";
                    item_image.src = down.src;

                }

            else

                {

                    item_id.className="hide_form";
                    item_image.src = left.src;

                }

        }

    function hide_and_seek_news(article)

        {


            var article_item_id = "news_article" + article;
            var image_item_id = "news_switch" + article;

            plus = new Image(11, 11);
            plus.src = "/media/global/plus.gif";

            minus = new Image(11, 11);
            minus.src = "/media/global/minus.gif";


            var article_item = document.getElementById(article_item_id);
            var article_image = document.getElementById(image_item_id);

            if (article_item.className == "hide_form")

                {

                    article_item.className="show_form";
                    article_image.src = plus.src;

                }

            else

                {

                    article_item.className="hide_form";
                    article_image.src = minus.src;

                }

        }

        function hide_and_show(item_to_hide, item_to_show)

{

    var hide_item = document.getElementById(item_to_hide);
    var show_item = document.getElementById(item_to_show);

    hide_item.className="show_form";
    show_item.className="hide_form";

}

    function show_item(item_id)

	{ 

   		var which_item = document.getElementById(item_id); 
   		which_item.className="hide_form"; 

	}

    function hide_item(item_id) 

	{ 

		var which_item = document.getElementById(item_id); 
   		which_item.className="show_form"; 

	}

    function dual_select(show_item_id, hide_item_id)

	{ 

                alert ("This is a Javascript Alert");

   		var show_item = document.getElementById(show_item_id);
                var hide_item = document.getElementById(hide_item_id);

   		show_item.className="hide_form"; 
                hide_item.className="show_form"; 

	}


function rps(rpsValue, rpsItem)
{
    var rpsBox = document.getElementById(rpsItem);
    rpsBox.value = rpsValue;

}



function hideShow_item_and_text(item_id, item_text)
{

        var show_item = document.getElementById(item_id);
        var TaskText = document.getElementById(item_id+'_link');     
        var htmlID = item_id+'_link';
        
        if(show_item.className == 'show_form')
        {
            show_item.className="hide_form";
           //TaskText.innerHTML="<a href=\"javascript:hideShow_item_and_text('"+item_id+"', 'hide');\" id=\""+htmlID+"\" >Hide Form</a>"; 
            TaskText.innerHTML='Hide Form';
            document.rr_notes.notes.focus();
        }
        else
        {
            show_item.className="show_form";
           //TaskText.innerHTML="<a href=\"javascript:hideShow_item_and_text('"+item_id+"', 'show');\" id=\""+htmlID+"\" >Show Form</a>"; 
            TaskText.innerHTML='Show Form';
        }

}

function showoneValue(item_id, showvalue)
{ 
alert(showvalue);
                var which_item = document.getElementById(item_id);
                if(showvalue==3)
                {
                    which_item.className="show_form";
                }
                else
                    {
                        which_item.className="hide_form";
                    }

}

   function hide_and_seek_jobs(job)

        {


            var job_item_id = "job_details" + job;
            var image_item_id = "job_switch" + job;

            plus = new Image(11, 11);
            plus.src = "/media/global/plus.gif";

            minus = new Image(11, 11);
            minus.src = "/media/global/minus.gif";


            var job_item = document.getElementById(job_item_id);
            var article_image = document.getElementById(image_item_id);

            if (job_item.className == "hide_form")

                {

                    job_item.className="show_form";
                    article_image.src = plus.src;

                }

            else

                {

                    job_item.className="hide_form";
                    article_image.src = minus.src;

                }

        }

function show_hide_select(drop_down_current_value,show_value, show_item_id )
{

    var show_item = document.getElementById(show_item_id);

    if (drop_down_current_value == show_value)
    {
        show_item.className="hide_form";
    }
    else
    {
        show_item.className="show_form";
    }

}

function show_options(idtext,dropdownValue, totalNumber)
{

     for (i=0; i <= totalNumber; i++)
        {
            var hide_id = document.getElementById(idtext+'_'+i);
            hide_id.className="show_form";
        }

        var item_id = document.getElementById(idtext+'_'+dropdownValue);
            item_id.className="hide_form";
            
}