	function OpenComment(object,id){
		window.open('http://www.reggaefrance.com/comment_view.php?all=1&id='+id+'&type='+object,'commentaire','width=527,height=450,scrollbars=1')
	}
	function PrintPage(url){
		window.open('/'+url+'&head=N&print=1','impression','width=600,height=500,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,menuBar=0')
	}
    function OpenPhoto(width,height,num){
    	Player = window.open('/photo.php?num='+num,'photo','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width='+width+',height='+height);
		Player.focus();
    }
    function OpenConcours(num){
    	window.open('/concours.php?num='+num,'concours','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width=260,height=340');
    }
	function OpenPopup(num,lang){
		Player = window.open('/player/soundplayer.php?num='+num+'&lang='+lang,'radio','width=363,height=282');
		Player.focus();
	}
	function OpenVideo(num,format){
		Player = window.open('/player/videoplayer.php?num='+num+'&format='+format,'video','resizable=1,scrollbars=0,width=650,height=400');
		Player.focus();
	}
	function OpenDiaporama(num){
		Player = window.open('/player/diaporama.php?num='+num,'photos','resizable=1,width=650,height=600');
		Player.focus();
	}
	function OpenSondage(sondage,reponse){
		window.open('/sondage_script.php?sondage='+sondage+'&reponse='+reponse,'sondage','width=270,height=250');
	}
	function OpenSondageResult(){
		window.open('/sondage_results.php','sondage','width=280,height=285');
	}
	function OpenTracklist(num){
		//'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=205,height=170'
		window.open('/sons_tracklist.php?num='+num,'tracklist','scrollbars=1,width=520,height=350');
	}
	function OpenNews(num){
		window.open('/news_detail.php?num='+num,'news','scrollbars=1,width=510,height=400');
	}
	function OpenArtist(num){
		window.open('/artiste.php?head=N&num='+num,'artiste','scrollbars=1,menubar=0,toolbar=0,width=590,height=500');
	}
	function OpenTicket(num){
		window.open('http://www.digitick.com/index-css4-digitick-pg101-ri'+num+'-di4.html','artiste','scrollbars=1,menubar=1,toolbar=1,resizable=1,width=785,height=570');
	}
	function rand_number(n)	{
		var x;
		x=Math.round(Math.random()*100);
		x%=n;
		return x;
	}
	var menuskin=1
	var display_url=0
	
	function showmenuie5(){
		var rightedge=document.body.clientWidth-event.clientX
		var bottomedge=document.body.clientHeight-event.clientY
		if (rightedge<ie5menu.offsetWidth)
			ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
		else
			ie5menu.style.left=document.body.scrollLeft+event.clientX
		if (bottomedge<ie5menu.offsetHeight)
			ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
		else
			ie5menu.style.top=document.body.scrollTop+event.clientY
			ie5menu.style.visibility="visible"
			return false
		}
	
	function hidemenuie5(){
	ie5menu.style.visibility="hidden"
	}
	
	function highlightie5(){
		if (event.srcElement.className=="menuitems"){
			event.srcElement.style.backgroundColor="highlight"
			event.srcElement.style.color="white"
			if (display_url==1)
				window.status=event.srcElement.url
			}
		}
	
	function lowlightie5(){
		if (event.srcElement.className=="menuitems"){
		event.srcElement.style.backgroundColor=""
		event.srcElement.style.color="black"
		window.status=''
		}
	}
	
	function jumptoie5(){
		if (event.srcElement.className=="menuitems"){
			if (event.srcElement.getAttribute("target")!=null)
				window.open(event.srcElement.url,event.srcElement.getAttribute("target"))
			else
			window.location=event.srcElement.url
			}
	}
		
	function jumpMenu(targ,selObj,restore) {
  		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  	if (restore) selObj.selectedIndex=0;
	}
	
	function ferme(){
		fenetre=this.window
		fenetre.close()
	}
	
	function addbookmark(){
		var bookmarkurl="http://www.reggaefrance.com"
		var bookmarktitle="Reggaefrance.com - Reggae-Dancehall community"
		if (document.all) {
			window.external.AddFavorite(bookmarkurl,bookmarktitle);
		}
		else {
			alert("Use Ctrl-D to add a bookmark in Netscape Navigator.");
		}
	}
    function f_open_calendar(fields) {
        Win = window.open("include/calendar.php?fields=" + fields + "&no_title=Y", "Calendrier", 'width=180,height=170,toolbar=0,status=0,scrollbars=0,resizable=0');
       	Win.focus();
   	}
    function f_change_texte(texte,champ){
      if(document.getElementById)
      document.getElementById(champ).innerHTML = texte;
    }

	function f_defile(text){
		var blanc = " ";
		var texte = text
		var scrolling_text = blanc + texte;
		scrolling_text = scrolling_text.substring(n,scrolling_text.length);
		document.message.scroll_text.value = scrolling_text;
		if(scrolling_text.length > 0) n ++;
		else n = 0;
		s = n;
		n = setTimeout("scroll(s)", 100);
	}
    function OpenSam(){
    	window.open('sam.htm','sam','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=790,height=550');
    }
