


function popup(url) 
{
 var width  = 905;
 var height = 705;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=yes';
 params += ', scrollbars=yes';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}

var onLayer="undefined";

 
function showLayer(layerName)
{
	
 // alert( typeof layerName)  
 
if (document.layers) 
     { 
	 
	  //if (onLayer != undefined)  { document.layers[onLayer].visibility="hidden"; }
	 	document.layers[layerName].visibility="visible";
	  
     } 
else if (document.all && ! document.getElementById) 
     { 
	    // if (onLayer != undefined)  {  document.all[onLayer].style.visibility="hidden"; }
       	document.all[layerName].style.visibility="visible"; 
     } 
else
     {
		 	if ( onLayer != "undefined") {    document.getElementById(onLayer).style.visibility = "hidden";   }
	      // alert(layerName)
	        document.getElementById(layerName).style.visibility = "visible";
		    document.getElementById(layerName).style.position="absolute";
	 	    document.getElementById(layerName).style.top="510px";
		    document.getElementById(layerName).style.width="434px";
		  
		  
     } 

 onLayer = layerName; 
 
}
  







function onlinelearning(ent)
	 {
                   // open( "http://www.serverws4.com/cgi-bin/fi/db.cgi?sf=chmail&ent="+ent ,"_top");

  		open( "http://www.serverws4.com/fx/" + ent + "/" ,"_top");

 

	 }







function iol6(ent6)
	 {
                    window.open('http://www.serverws4.com/fx/inlingua6/index.html?'+ent6+'&fi','français','menubar=0,location=0,toolbar=0,scrollbars=auto,resizable=1,status=1');
	 }	
	




function tutorials(tutorialName)
	{
	  //alert(tutorialName);
              window.open( 'http://www.serverws4.com/fi/tutorials/'+tutorialName , 'tutorial', 'menubar=0,location=0,toolbar=0,scrollbars=auto,resizable=1,status=0,width=795,height=616');
          
	}





function NewWindow(mypage, myname, w, h, scroll) {

var winl = (screen.width - w) / 2;

var wint = (screen.height - h) / 2;

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'

win = window.open(mypage, myname, winprops)

if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}
