
	function si(surl,type,param,width){
		if(type==null) type='data';
		if(width==null) width=300;
		if(type=='user'&&surl=='') surl='/usr-info.php?usr_id='+param;
		if(document.all){
			s=location.href;
			if(typeof page_top == 'undefined') page_top=0;
			if((top.location.href==s&&page_top==0)||type=='pp'){
				window.open(surl, type, "top=100, left=100,width=650,height=400,resizable=0,scrollbars=1,titlebar=0,menubar=0,location=0,status=0",1);
			} else {
				top.frames['bpinfo'].sc(type,surl);
				document.all('base2').rows = "5,*,"+width;
			}
		} else if(1!=1&document.getElementById){
			//top.frames['info'].scns(type,surl);
			document.getElementById('base2').rows = "5,*,"+width;
		} else {
			window.open(surl, 'user', "top=100, left=100,width=650,height=400,resizable=0,scrollbars=1,titlebar=0,menubar=0,location=0,status=0",1);
		}
			
	};

	function hide_info(){
		if(document.all){
			document.all('base2').rows = "5,*,0";
		} else if(1!=1&&document.getElementById){
			document.getElementById('base').rows = "*,0"
		} else {
			window.close();
		}
			
	}
	
	
	function addBookmark(title,url) { 
		if (window.sidebar) { 
			window.sidebar.addPanel(title, url,""); 
		} else if( document.all ) { 
			window.external.AddFavorite( url, title); 
		} else if( window.opera && window.print ) { 
			return true; 
		} 
	} 
	
	
	function MM_findObj(n, d) { 
	  var p,i,x;  
	  if(!d) d=document; 
	  if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
		}
	  if(!(x=d[n])&&d.all) x=d.all[n]; 
	  if(!(x=d[n])&&document.getElementById) x=d.getElementById(n); 
	  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
	}
	
	function showObj(objname,d) {
		var obj = MM_findObj(objname,d);
		if (obj !=null)
		{
			if (obj.style)
			{
				obj=obj.style;
			}
			obj.visibility = 'visible';
		}
	}

	function hideObj(objname,d)
	{
		var obj = MM_findObj(objname,d);
		if (obj !=null)
		{
			if (obj.style)
			{
				obj=obj.style;
			}
			obj.visibility = 'hidden';
		}
	}

		function showObj1(objname,d) {
		var obj = MM_findObj(objname,d);
		if (obj !=null)
		{
			if (obj.style)
			{
				obj=obj.style;
			}
			obj.display = '';
		}
	}

	function hideObj1(objname,d)
	{
		var obj = MM_findObj(objname,d);
		if (obj !=null)
		{
			if (obj.style)
			{
				obj=obj.style;
			}
			obj.display = 'none';
		}
	}