		function showuser(userid)
		{
			if (userid != null)
			{
			var w = 710;
			var h = (screen.height - 300);
			var winl = (screen.width - w) / 2;
			var wint = (screen.height - h) / 2;
			winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0,scrollbars=yes';
			window.open("user_profile.asp?userid="+userid+"", "", winprops)
			}
		}
		function refupload()
		{
			var w = 600;
			var h = 500;
			var winl = (screen.width - w) / 2;
			var wint = (screen.height - h) / 2;
			winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0,scrollbars=yes';
			window.open('ref_upload.asp', 'refupload', winprops);
		}
		function sendmsg(toid)
		{
			window.open('popup_msg.asp?q=reply&replyid=' + toid + '', 'sendmessage', 'scrollbars=yes, width=710, height=520');
		}
		function refdownload(refid)
		{
			var w = 600;
			var h = 500;
			var winl = (screen.width - w) / 2;
			var wint = (screen.height - h) / 2;
			winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0,scrollbars=yes';
			window.open('ref_download.asp?refid=' + refid + '', '', winprops);
		}
		function refpoint(refid)
		{
			var w = 500;
			var h = 600;
			var winl = (screen.width - w) / 2;
			var wint = (screen.height - h) / 2;
			winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0,scrollbars=yes';
			window.open('ref_point.asp?refid=' + refid + '', '', winprops);
		}
		function passrem()
		{
			var w = 420;
			var h = 200;
			var winl = (screen.width - w) / 2;
			var wint = (screen.height - h) / 2;
			winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0,scrollbars=no';
			window.open('pass_reminder.asp', '', winprops);
		}
		function flashchat()
		{
			var w = 750;
			var h = 500;
			var winl = (screen.width - w) / 2;
			var wint = (screen.height - h) / 2;
			winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'resizable=0,scrollbars=no';
			window.open('chat/default.asp', '', winprops);
		}
		function CheckAll(checkAllBox)                       
		{                                                                 
			var frm = document.frmmsg;                              
			var ChkState=checkAllBox.checked;                
			for(i = 0; i < frm.elements.length;i++) {
            elm = document.frmmsg.elements[i]
            if (elm.type == 'checkbox') {
                   elm.checked = ChkState;
            }
        }
                                             
		}  


function toggle(theDiv) 
{
var elem = document.getElementById(theDiv);
     elem.style.display = (elem.style.display == "none")?"":"none";
 }

function confirmDelete()
{
  var x = confirm("Bu mesajı silmek istediğinizden emin misiniz?");
  if (x)
  { return true;
  }
  else
  { //alert("Delete cancelled.");
    return false;
  }
}

function confirmSpam()
{
  var x = confirm("Bu mesaj; reklam, küfür yada benzeri sebeplerden beni rahatsız etmektedir. Gereğinin yapılmasını rica ederim.");
  if (x)
  { return true;
  }
  else
  { //alert("Delete cancelled.");
    return false;
  }
} 

function menutxt(text)
{
	if (text == null || text == '')
	{
		text = ''
	}
	else
		text = '<strong>'+text+'</strong>';
	var ns4=document.layers?1:0
	var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1?1:0
	var ns6=document.getElementById&&!document.all?1:0
	var docAll;
	if(ie4)
	{
		menuText = document.all.menuCell;
	}
	else if(ns4)
	{	
		menuText = document.layers.menuCell;
	}
	else if(ns6)
	{	
		menuText = document.getElementById("menuCell");
	}
	else
	{
		menuText = document.all.menuCell;
	}

	menuText.innerHTML = text;
}