function goto_page(pgno)
{
	document.frm.javapgno.value=pgno;
	document.frm.javafunctionname.value="Pageclick";
	document.frm.submit();
}

function filterme()
{
	document.frm.javafunctionname.value="filter";
	document.frm.submit();
}

function sortme(sortby,sorttype)
{
	document.frm.javafunctionname.value="sort";
	document.frm.javasortby.value=sortby;
	document.frm.javasorttype.value=sorttype;
	document.frm.submit();
}

function emoticon(text)
{
	if (document.post.message.createTextRange && document.post.message.caretPos)
	{
		var caretPos = document.post.message.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == " " ? text + " " : text;
		document.post.message.focus();
	}
	else
	{
		document.post.message.value  += text;
		document.post.message.focus();
	}
}

function checkName()
{
	if (document.save.search_name.value=="" || document.save.search_name.value=="<search name>")
	{
		alert ("Please Enter Search Name")
		return false
	}
	return true
}

function deleteItem(item_id, page)
{
	if(confirm('"."Are you sure? All member data will be removed"."'))
	{
		document.location.href="main.php?service="+page+"&del_id="+item_id
	}
}

function goBottom()
{
	parent.IM.scrollTo(0,500);
}
