function linkselector (frmObj,lien){

frmObj.action=lien;

frmObj.submit();

}



function popup(myURL,target,popupWidth,popupHeight,ws){

  var popupX = (screen.availWidth)? ((screen.availWidth - popupWidth) / 2): 20;

  var popupY = (screen.availHeight)? ((screen.availHeight - popupHeight) / 3):20;

	var details = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+ws+',resizable=1,width='+popupWidth+',height='+popupHeight+',top='+popupY+',left='+popupX;

	mypopup = 	window.open(myURL,target,details);

	mypopup.focus();

}


///////////////////////////
////SHOW HIDE INTERFACE////
///////////////////////////
function showhide (id,textnone,textblock) {
    if (document.getElementById(id).style.display == 'block')
    {
        document.getElementById(id).style.display = 'none';
		  document.getElementById(id+'inner').innerHTML=textnone;
    }
    else
    {
        document.getElementById(id).style.display = 'block';
		  document.getElementById(id+'inner').innerHTML=textblock;
    }
}


////////////////////////
////TABBED INTERFACE////
////////////////////////

function tab_showpanel(nompanel,nomtab,panel,tabstyle) {
var current=eval(nompanel+nomtab);
if (current != null) {
document.getElementById(nompanel+current).style.display = 'none';
document.getElementById(nomtab+current).className=tabstyle+'off';
}
document.getElementById(nompanel+panel).style.display = 'block';
document.getElementById(nomtab+panel).className=tabstyle+'on';
eval(nompanel+nomtab+'='+panel);
}
