function setCook(nom,valeur)
{
    document.cookie = nom + "=" + escape(valeur)
}
		
function getCook(nom)
{
     deb = document.cookie.indexOf(nom + "=")
     	if (deb >= 0) {
        			deb += nom.length + 1
            			fin = document.cookie.indexOf(";",deb)
            			if (fin < 0) fin = document.cookie.length
            			return unescape(document.cookie.substring(deb,fin))            		            			
            		}
        		return ""
}

function fident_eleve2(val)
	{               
  		url1="fidentelev.php?numero=" + val + "#"                  

		 window.open(url1,'presentation','top=0,left=0,height=250,width=280,scrollbars=no,resizable=no,location=no,menubar=no,status=no')   
         }

function ident_eleve(val,lg)
	{               
  		url1="http://www.sb.k12.tr/squelettes/identelev.php?numero=" + val + "&lang=" + lg + "#"                  

		 window.open(url1,'presentation','top=0,left=0,height=250,width=280,scrollbars=no,resizable=no,location=no,menubar=no,status=no')   
         }

function choix3()
	{
       		val =  document.choix1.choix2.selectedIndex     
	         if  (document.choix1.choix2.options[val].value != "none")
       			{                   
       			 location = document.choix1.choix2.options[ document.choix1.choix2.selectedIndex].value                        
      			}      
	}
	
function choix3a()
	{
        	val =  document.choix1a.choix2a.selectedIndex     
 	        if  (document.choix1a.choix2a.options[val].value != "none")
        		 {                   
            			location = document.choix1a.choix2a.options[ document.choix1a.choix2a.selectedIndex].value                        
        		}      
	}


function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function



