//-----------------------------------------------------------------------
function set_cookie(arg){
	var expDays = 364;
	var today = new Date();
	var exp = new Date();
	exp.setTime(today.getTime() + (expDays * 24*60*60*1000));
	//SetCookie('news_'+arg,arg,exp,'/members/');
	document.cookie = "news_"+escape(arg)+"=" + escape(arg) + "; path=/ ;expires=" + exp.toGMTString();
}
function cbfl_help(id){
	var el = document.getElementById(id);
	if(el.style.display=='none'){
		  el.style.display= 'block';
		  img = document.getElementById(id+'_img');
		  if(img) img.src='images/arru.gif';
		  SetCookie('vmemo_'+id,'show','99999999');
	}
	else{
		 el.style.display= 'none';
		  img = document.getElementById(id+'_img');
		  if(img) img.src='images/arrd.gif';
		  SetCookie('vmemo_'+id,'hide','99999999');
	}

}
//-----------------------------------------------------------------------
function SetCookie(sName, sValue,sTime)
{
    document.cookie = sName + "=" + escape(sValue) + "; path=/";
}
//-----------------------------------------------------------------------
function openBrowseWindow(path,type,sid,baseURL){
	var sFeatures = ""+
        " channelmode = no,"+
        " directories = no,"+
        " fullscreen = no,"+
        " height = 500,"+
        " left = 200,"+
        " location = no,"+
        " menubar = no,"+
        " resizable = no,"+
        " scrollbars = yes,"+
        " status = no,"+
        " titlebar = no,"+
        " toolbar = no,"+
        " top = 100,"+
        " width = 600";
        if(!path) path = '/www';
//    var winChild=window.open(baseURL+'/members/filemanager/?action=browse'+path+'&browse_type='+type+'&'+sid,'winChild',sFeatures);
    var winChild = window.open(baseURL+'/members/filemanager2/openbrowse.php#'+path, 'winChild', sFeatures);
}
//-----------------------------------------------------------------------
 function show_tutorial(file){
        var sFeatures = ""+
                " channelmode = no,"+
                " directories = no,"+
                " fullscreen = no,"+
                " height = 500"+
                " left = "+((document.body.clientWidth/2)-470)+","+
                " location = no,"+
                " menubar = no,"+
                " resizable = yes,"+
                " scrollbars = yes,"+
                " status = no,"+
                " titlebar = no,"+
                " toolbar = no,"+
                " top = "+((document.body.clientHeight/2)-250)+","+
                " width =  940";
        if (file){
                 win_pop =  window.open(file,"", sFeatures,"");
        }
}
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
