function goToPage(url)
{
			if (url != "")
			window.open(url,'windowbis',
			'width=500,height=500,screenX=100,screenY=100,top=100,left=100')
}

function navig(div)
{

switch (div){
				case 'id1': 
					try{
						document.getElementById('id1').style.backgroundColor = "#FB8E00";
						document.getElementById('id2').style.backgroundColor  = "#6292BB";
						document.getElementById('id3').style.backgroundColor  = "#6292BB";
						document.getElementById('id4').style.backgroundColor  = "#6292BB";
					}catch (e){
				
					}
				break;
				case 'id2': 
					try{
						document.getElementById('id2').style.backgroundColor = "#FB8E00";
						document.getElementById('id1').style.backgroundColor  = "#6292BB";
						document.getElementById('id3').style.backgroundColor  = "#6292BB";
						document.getElementById('id4').style.backgroundColor  = "#6292BB";
					}catch (e){
				
					}
				break;
				case 'id3': 
					try{
						document.getElementById('id3').style.backgroundColor = "#FB8E00";
						document.getElementById('id1').style.backgroundColor  = "#6292BB";
						document.getElementById('id2').style.backgroundColor  = "#6292BB";
						document.getElementById('id4').style.backgroundColor  = "#6292BB";
					}catch (e){
				
					}
				break;
				case 'id4': 
					try{
						document.getElementById('id4').style.backgroundColor = "#FB8E00";
						document.getElementById('id1').style.backgroundColor  = "#6292BB";
						document.getElementById('id3').style.backgroundColor  = "#6292BB";
						document.getElementById('id2').style.backgroundColor  = "#6292BB";
					}catch (e){
				
					}
				break;
				
				}
				
		}


function content1()
{

	document.getElementById('div1').className= "Content2";
		document.getElementById('div2').className= "Content";
			document.getElementById('div3').className= "Content";
				document.getElementById('div4').className= "Content";

}
function content2()
{


	document.getElementById('div1').className= "Content";
		document.getElementById('div2').className= "Content2";
			document.getElementById('div3').className= "Content";
				document.getElementById('div4').className= "Content";

}
function content3()
{


	document.getElementById('div1').className= "Content";
		document.getElementById('div2').className= "Content";
			document.getElementById('div3').className= "Content2";
				document.getElementById('div4').className= "Content";

}
function content4()
{


	document.getElementById('div1').className= "Content";
		document.getElementById('div2').className= "Content";
			document.getElementById('div3').className= "Content";
				document.getElementById('div4').className= "Content2";

}
function scrollIn() {
window.status=Message.substring(0, place);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollOut()",300);
} else {
place++;
window.setTimeout("scrollIn()",50);
   }
}
function scrollOut() {
window.status=Message.substring(place, Message.length);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollIn()", 100);
} else {
place++;
window.setTimeout("scrollOut()", 50);
}
}

function fOpenPopup(pUrl, pNom) {
	popup = window.open(pUrl,pNom,"scrollbars=yes,width=600,height=485");
	popup.focus();
	return false;
}

function oSelectPopup(pCat) {
	
	switch (pCat) {
		case '1':
			rc = fOpenPopup('mod_fiches/mod_debits.php?page=0', 'module_debit');
			break;
		case '2':
			rc = fOpenPopup('mod_fiches/mod_secu.php?page=0', 'module_secu');
			break;
		case '3':
			rc = fOpenPopup('mod_fiches/mod_dhcp.php?page=0', 'module_dhcp');
		break;
		case '4':
			rc = fOpenPopup('mod_fiches/mod_vpn.php?page=0', 'module_vpn');
			break;
		case '5':
			rc = fOpenPopup('mod_fiches/mod_proxy.php?page=0', 'module_proxy');
			break;
		case '6':
			rc = fOpenPopup('mod_fiches/mod_monitoring.php?page=0', 'module_monitoring');
			break;
		
	}
	
	return false;
}

