
start=1;function fxOnload(){alert('this is on load');}

function createNewList()
{var name=prompt("Please 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 post is approved. Please refresh the pageVote result");var y="apostform"+id;var x=document.getElementById(y);return x.submit();}
