
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
	var curDoc = ly ? ly.document : document; var elem = curDoc[n];
	if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
		elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
	return elem;
}

function CSURLPopupShow(formName, popupName, target) {
	var form  = CSFindElement(formName);
	var popup = form.elements[popupName];
	var choix = popup.options[popup.selectedIndex].value ;
	var myHost = "http://www.i-translator.org" ;
	var str1 = window.location.pathname ;


/* Choix de la langue */
  if (popupName == "select_reviseur" || popupName == "select_traducteur"){
	/* Francais */
	if (index == 1){
		if(popupName == "select_traducteur"){
			window.location.href = myHost + "/francais/choix_traducteurs.html#" + choix ;
		}
		else if (popupName == "select_reviseur"){
			window.location.href = myHost + "/francais/choix_reviseurs.html#" + choix ;
		}
	}
	/* Anglais */
	else if (index == 2){
		if (popupName == "select_traducteur"){
			window.location.href = myHost + "/anglais/choix_traducteurs.html#" + choix ;
		}
		else if (popupName == "select_reviseur"){
			window.location.href = myHost + "/anglais/choix_reviseurs.html#" + choix ;
		}
	}
	/* Espagnol */
	else if (index == 3){
		if (popupName == "select_traducteur"){
			window.location.href = myHost + "/espagnol/choix_traducteurs.html#" + choix ;
		}
		else if (popupName == "select_reviseur"){
			window.location.href = myHost + "/espagnol/choix_reviseurs.html#" + choix ;
		}
	}
	/* Italien */
	else if (index == 4){
		if (popupName == "select_traducteur"){
			window.location.href = myHost + "/italien/choix_traducteurs.html#" + choix ;
		}
		else if (popupName == "select_reviseur"){
			window.location.href = myHost + "/italien/choix_reviseurs.html#" + choix ;
		}
	}
  }


	var traducteur = str1.search("traducteurs") ;
	var reviseur = str1.search("reviseurs") ;

/* Choix de la categorie */
	if (popupName != "select_reviseur" && popupName != "select_traducteur"){
		if(index == 1){ /* Francais */
			if(traducteur != -1){
				window.location.href = myHost + "/francais/choix_traducteurs.html#" + choix ;
			}
			else if(reviseur != -1){
				window.location.href = myHost + "/francais/choix_reviseurs.html#" + choix ;
			}
		}
		else if(index == 2) { /* Anglais */
			if(traducteur != -1){
				window.location.href = myHost + "/anglais/choix_traducteurs.html#" + choix ;
			}
			else if(reviseur != -1){
				window.location.href = myHost + "/anglais/choix_reviseurs.html#" + choix ;
			}
		}
		else if(index == 3) { /* Espagnol */
			if(traducteur != -1){
				window.location.href = myHost + "/espagnol/choix_traducteurs.html#" + choix ;
			}
			else if(reviseur != -1){
				window.location.href = myHost + "/espagnol/choix_reviseurs.html#" + choix ;
			}
		}
		else if(index == 4) { /* Italien */
			if(traducteur != -1){
				window.location.href = myHost + "/italien/choix_traducteurs.html#" + choix ;
			}
			else if(reviseur != -1){
				window.location.href = myHost + "/italien/choix_reviseurs.html#" + choix ;
			}
		}
	}

	popup.selectedIndex = 0;
}




