function index()
{
    
    loadurl('main.jsp','root_container');
    //loadurl('login.jsp', 'logindiv');
    var div=document.getElementById('logindiv');
    document.getElementById('login3').appendChild(div);
    hideObject('login2');
    document.getElementById('indexup').style.display='inline';
	hideDiv('welcome');
	//document.getElementById('welcome')style.display='none';
    //loadurl('ads.jsp','ads');
}

function langen()
{
    
    window.location='index.jsp?lang=en';
}

function langar()
{
    
    window.location='index.jsp?lang=ar';

}

function contactus()
{
    loadurl('contactus.jsp','root_container');
	document.getElementById('indexup').style.display='none';
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
	//loadurl('login.jsp','login');
}

function about()
{
    loadurl('cv.jsp?type=22','root_container');
    //loadurl('aboutsitegroup.jsp','about_sub');
    hideObject('indexup');
}
function cvStep(step,cid,lang,page)
{
    loadurl(page+'?cid='+cid+'&lang='+lang, 'cvmaindiv');
    loadurl('cv_steps.jsp?step='+step+'&cid='+cid+'&lang='+lang,'cv_steps');
}
function login()
{
    var div=document.getElementById('logindiv');
    if(document.getElementById('login2')!=null)
        {

            document.getElementById('login2').appendChild(div);
            //document.getElementById('login2').style.height = '517px';
            //document.getElementById('login2').height='517px';
        }

    document.getElementById('indexup').style.display='none';
    //hideDiv('indexup');
    loadurl('choosepersonal.jsp', 'root_container');
    //loadurl('login.jsp','login');
}
//
//
function startemprreg()
{
	showDiv('welcome');
    document.getElementById('indexup').style.display='none';
setTimeout('testLoad()', 500);
    loadurl('startemprreg.jsp','root_container');
    return false;
}

function startempreg()
{
	showDiv('welcome');
    
    document.getElementById('indexup').style.display='none'
    
    setTimeout('testLoad()', 500);
    loadurl('startempreg.jsp','root_container');
    return false;
}
function testLoad()
{
    var div=document.getElementById('logindiv');
        if(document.getElementById('login2')!=null)
        {
        document.getElementById('login2').appendChild(div);

        }
}

function news()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('newsgroup.jsp?type=1','root_container');return false;
}

//
//
// wanted job 

function personal()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('choosepersonal.jsp','root_container');return false;
}

function mycv()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('empcvmain.jsp','root_container');return false;
}
function myjob()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('empjobs.jsp?img=true','root_container');return false;
}

function interestcompany()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('viewedcv.jsp','root_container');return false;
}

function advises()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('newsgroup.jsp?type=2','root_container');return false;
}

function modifypersonal()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('editempcontact.jsp','root_container');return false;
}
function modifypassword()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('changepassword.jsp','root_container');return false;
}

function searchadver()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
	postForm('searchadver.jsp', 'root_container', 'search2', '');
    //loadurl('searchadver.jsp','root_container');return false;
}
function searchCv()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
	postForm('searchadver.jsp', 'root_container', 'search', '');
    //loadurl('searchadver.jsp','root_container');return false;
}
function searchAdAdver()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
postForm('searchadver.jsp', 'root_container', 'searchform', '');
}
function empLogout()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('cv.jsp?type=12','root_container');return false;
}




/****   *******/
function emprLogout()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('cv.jsp?type=13','root_container');return false;
}


/**** flash button  *******/

function emprPersonal()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('choosepersonal.jsp?indextype=2','root_container');return false;
}


function empPersonal()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('choosepersonal.jsp?indextype=1','root_container');return false;
}

function training()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('cv.jsp?type=20','root_container');return false;
}

function privacy()
{
	showDiv('welcome');
    var div=document.getElementById('logindiv');
    document.getElementById('login2').appendChild(div);
    document.getElementById('indexup').style.display='none';
    loadurl('cv_print.jsp?type=21','root_container');return false;
}
