function start_search(){
	document.location.href="http://www.bonevents.nl/index.php?page=4&page_title=Artiesten"
}

function change_choice(direction,task){
	if(direction=='a_1'){
		document.location.href= 'index.php?page=6&page_title=Agenda login&no_task='+task+'&open='+direction
	}
	if(direction=='b_2'){
		document.location.href= 'index.php?page=6&page_title=Adminarea login&no_task='+task+'&open='+direction
	}
}
								  
								  
function click(e) {
	if(document.all) {
		if(event.button==2) {
			alert("Copyrights Bonetti Entertainment -  2004");
			return false;
		}
	}
	if(document.layers) {
		if(e.which==3) {
			alert("Copyrights Bonetti Entertainment -  2004");
			return false;
		}
	}
}
if(document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

function DHTMLSound(surl,sg) {
	prog();
	var to_play = '../sound/'+sg+'/'+surl
  document.getElementById("dummyspan").innerHTML=
    "<embed src='"+to_play+"' hidden=true autostart=true loop=false>";
	//maybe must make a nrw function for the uploader
	document.admin_menu.del_sound.value=surl
	
}

function no_enter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
   {
   return false;
   }
else
   return true;
}


function showUploader(lang,session) {
	//alert(lang)
	var width  = 700;
	var height = 350;
	var theURL = 'user_upld.php?cmd=2&lang='+lang+'&memb_session='+session
	newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width='+width+',height='+height);
}

//////////////////////// PROGRESS BAR   ////////////////////////////////////////
var i
function prog()
{
  document.getElementById("d1").innerHTML="";	document.getElementById("d2").style.width=0;  i=0;
  progBar(); 
}

function progBar()
{
   if (i <=(300))
   {
	    if (i > 40){document.getElementById("d1").innerHTML=parseInt(i/3)+"%";}
      document.getElementById("d2").style.width=i+"px";
      var j=0;		
      while (j <=100)
       	j++;  
        setTimeout("progBar();", 20); 
        i++;   
   }
}
////////////////////////////////////////////////////////////////////////////////

