﻿function getClientSize(){return window.innerHeight || document.body.clientHeight;}function setsemistre(semistre){var t1,t2;if (semistre==1) { t1='tabsem1'; t2='tabsem2';}else if(semistre==2) {  t1='tabsem2'; t2='tabsem1';}else return;document.getElementById(t2).style.display = "none";document.getElementById(t1).style.display = "table";}function setexamprof(exam){var t1,t2,t3,t4,t5,t6,t7,t8;if (exam==10) { t1='exam10'; t2='exam11';}else if(exam==11) { t1='exam11'; t2='exam10';}else return;document.getElementById(t2).style.display = "none";document.getElementById(t1).style.display = "table";}function opendoc(doc){var file;var test=document.getElementById("extswf").checked;file=(test==true)?doc+".swf":doc+".pdf";document.getElementById("cadre").src="get.php?id="+file;}function openlabo(doc){var file=doc+".swf"; document.getElementById("cadrelabo").src="get.php?id="+file;}function open_doc(doc,soudoss,locatphp){var file;var test=document.getElementById("extswf").checked;file=(test==true)?doc+".swf":doc+".pdf";document.getElementById("cadre").src=locatphp+"get.php?id="+file+"&sd="+soudoss;}function open_doc_self(doc,soudoss,locatphp){ window.open(locatphp+"get.php?id="+doc+"&sd="+soudoss,"_self");}function open_labo(doc,soudoss,locatphp){var  file=doc+".swf"; document.getElementById("cadrelabo").src=locatphp+"get.php?id="+file+"&sd="+soudoss;}function openfile(doc){ window.open("get.php?id="+doc,"_top");}function updatenc(){var obj=document.getElementById("nbconnect");if (obj!=undefined) {	var xhr_object = null;	if(window.XMLHttpRequest) // Firefox		xhr_object = new XMLHttpRequest();	else if(window.ActiveXObject) // Internet Explorer		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");	else { // XMLHttpRequest non support par le navigateur		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");		return;	}	xhr_object.open("GET", "nc.inc.php?get=yes&anticache="+new Date().getTime(), true);	xhr_object.onreadystatechange = function anonymous() {		if(xhr_object.readyState == 4) {    	 if (xhr_object.status != 200) { /*window.setTimeout("updatenc()",300000);alert("connexion impossible !")*/ ;return 0;};          obj.innerHTML=xhr_object.responseText;		}	}	xhr_object.send(null);};window.setTimeout("updatenc()",300000);}/*function updatepage(){var site="http://www.naja7math.com/";	var xhr_object = null;	if(window.XMLHttpRequest) // Firefox		xhr_object = new XMLHttpRequest();	else if(window.ActiveXObject) // Internet Explorer		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");	else { // XMLHttpRequest non support par le navigateur		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");		return;	}	xhr_object.open("GET", site+"nc.inc.php?get=update&anticache="+new Date().getTime(), true);	xhr_object.send(null);window.setTimeout("updatepage()",300000);}*/function add_favoris() {var msg='لإضافته للمفضلة ctrl+D  اظغط';if (window.sidebar) { // Mozilla Firefox window.sidebar.addPanel("رياضيات النجاح","http://www.naja7math.com","");} else if( window.external ) { // IE   if(window.ActiveXObject) {  //ie  window.external.AddFavorite("http://www.naja7math.com","رياضيات النجاح");  } else {//chrome  alert(msg);  }} else if(window.opera && window.print) { // Opera  return true; } else { //safri alert(msg); }}function cntct_me(){var f=window.open("cntct/contact.php","ctctme","width=300,height=450,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no");f.focus();}function calculateur(){var f=window.open("outils/calc.html","dst","width=232,height=316,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no");f.focus();}function p_aires(){var f=window.open("outils/aires.html","dst","width=780,height=416,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no");f.focus();}
