<!--
function KNVGoToItem( sel,target)
{
    // RSChange( 101,PR,2007.04.24,"Setting the target frame")
    open("./KNVPrint.asp?ID=" + sel.value + "",target);
    // RSChangeEnd(101)
}
function KNVSetScope( sel)
{
    navigate("./KNVPanel.asp?SetScope=" + sel.value);    
}
function KNVSetTargetScope( sel)
{
    // RSChange( 100,PR,2007.03.28,"Changing the parameter from SetScope to SetTargetScope")
    // Some factorisation on the functions would be good
    navigate("./KNVPanel.asp?SetTargetScope=" + sel.value);    
    // RSChangeEnd(100)
}
function KNVExplain( sel,target)
{
    // RSChange( 101,PR,2007.04.24,"Setting the target frame")
    open("./KNVExplain.asp?URL=" + sel.value,target);
    // RSChangeEnd(101)
    
}
function KNVBoxOver( sel)
{
    // No call to this function,can't able to  pass argument.so,it hard coded target frame used
    open("./KNVPrint.asp?Name=" + sel.value,"_main");    
}
function ShowHelpPage(page) 
{
    OpenWin = this.open(page, "_new", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,height=100,width=200");
}
function ShowAddCommentPage(URL) 
{
    OpenWin = this.open(URL, "_new", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,height=300,width=450");
}
function OnStructure( sel)
{    
    document.all("KNVStructureForm").action = sel;
    document.all("KNVStructureForm").method ="POST"
    sel1 = document.selection;
    document.all("StructureBuffer").value= sel1.createRange().htmlText;
    // document.all("StructureBuffer").value=document.all("selection").TextRange(0).htmlText;
    document.all("KNVStructureForm").submit();
}

// RSChange( 103,PR,2007.05.04,"Adding a new feature to display and set user experience")

function GetKNVSetUserEvaluation()
{
    // due to pb of encoding of " in script element of a template
    return document.all("KNVSetUserEvaluation");
}

function GetKNVSetUserAgreement()
{
    // due to pb of encoding of " in script element of a template
    return document.all("KNVSetUserAgreement");
}

function GetKNVSetUserMemorized()
{
    // due to pb of encoding of " in script element of a template
    return document.all("KNVSetUserMemorized");
}

function GetKNVSetUserConformance()
{
    // due to pb of encoding of " in script element of a template
    return document.all("KNVSetUserConformance");
}

function KNVExpSetValue(ExpValue,SpanElem)
{
    var obj = SpanElem.childNodes;  
    // access child table element from parent span entity
    for( var i = 0 ; i < obj.length ; i++)
    {
        if (obj.item(i).tagName == "TABLE")
        {
            var userlevel = obj.item( i ).getElementsByTagName("IMG");
            // sets the image src according to the user level selected 
            for( var j = 0 ; j < userlevel.length ; j++ )
            {	   
                if( ( ExpValue / 25 ) >= j )
                    userlevel.item(j).src = "./KNVImages/KNVBlueBar.gif";
                else
                    userlevel.item(j).src = "./KNVImages/KNVGrayBar.gif";
            }
	}
    }
}

function KNVExpChangeValue( ID, ExpTypeNum, NewValue, SpanElem )
{
    // Set user experience according to the selected type (like User Evaluation, User Agreement, User Conformance )
        
    // Changes the level of experience in display of blue and gray bars
    KNVExpSetValue( NewValue, SpanElem);            
    
    // Navigates to KNVSetUserExperience page with the new values to set user experience 
    navigate("./KNVSetUserExperience.asp?ID=" + ID + "&ExperienceType=" + ExpTypeNum + "&ExperienceValue=" + NewValue );
}
// RSChangeEnd( 103)
//-->
