﻿// JScript File

function navigate_page(targetfile)
{
    window.open(targetfile,"_self");
}

function change_color_Mo(mnuitem)
{
    //document.getElementById('mnuitem').style.background:url(career_images/menu_bg1.jpg);
        document.getElementById(mnuitem).style.background='url(career_images/menu_bg1.gif)';
    //document.getElementById(mnuitem).style.backgroundColor='white';
    document.getElementById(mnuitem).style.color='#3c61a3';
}

function change_color_Ml(mnuitem)
{
    document.getElementById(mnuitem).style.background='url(career_images/menu_bg.gif)';
    //document.getElementById(mnuitem).style.backgroundColor='#e54829';
    document.getElementById(mnuitem).style.color='#ffffff';
}



function change_color_r_Mo(mnuitem)
{
    document.getElementById(mnuitem).style.background='url(career_images/menu_r_bg1.gif)';
}

function change_color_r_Ml(mnuitem)
{
    document.getElementById(mnuitem).style.background='url(career_images/menu_r_bg.gif)';
}

function change_color_l_Mo(mnuitem)
{
    //document.getElementById('mnuitem').style.background:url(career_images/menu_bg1.jpg);
        document.getElementById(mnuitem).style.background='url(career_images/menu_l_bg1.gif)';
    //document.getElementById(mnuitem).style.backgroundColor='white';
   // document.getElementById(mnuitem).style.color='Blue';
}

function change_color_l_Ml(mnuitem)
{
    document.getElementById(mnuitem).style.background='url(career_images/menu_l_bg.gif)';
    //document.getElementById(mnuitem).style.backgroundColor='#e54829';
    //document.getElementById(mnuitem).style.color='Red';
}

function addBookmark(title, url)
{
    if (window.sidebar)
    { // firefox
        window.sidebar.addPanel(title, url,"");
    }
    else if( document.all )
    { //MSIE
        window.external.AddFavorite( url, title);
    }
    else
    {
        alert("Sorry, your browser doesn't support this");
    }
}

function validate_numbers()
{
    var a=event.keyCode;
    //alert(a);
    if(!(a >= 48 && a <= 57))
    {
        alert("Sorry, Numbers only allowed...!");
        event.keyCode=0;
    }
}

