// JavaScript Document
	function mouseOn (o)
	{
		o.style.backgroundColor='#e1e1e1';
	}
	
	function mouseOut (o)
	{
		o.style.backgroundColor='';
	}
	
	function check_uncheck(v)
	{
		var frm = document.getElementById("frmList");
		var nm;
		for (i=0; i<frm.elements.length; i++)
		{
			nm = frm.elements[i].name;
			if(nm.substr(nm,4)=="chk_")
			{
				frm.elements[i].checked = v;
			}
		}
	}
	
	
	function del_selected()
	{
		var a;
		a = confirm("Are you sure you want to delete the selected item(s)?");
		if(a)
		{
	 		document.getElementById("frmList").submit();
		}
	}
	
	function delete_record(s)
	{
		var a = confirm("Are you sure you want to delete the selected record?");
		
		if(a)
		{
			window.location.href=self_page+'?delete='+s;
		}
	}
	
	function delete_record_new(s,i)
	{
		var a = confirm("Are you sure you want to delete the selected record?");
		
		if(a)
		{
			window.location.href=self_page+'?delete='+s+'&id='+i;
		}
	}
	
	function edit_record(s)
	{
		window.location.href=self_page+'?edit='+s;
	}
	
	function display(s)
	{
		window.location.href=self_page+'?site_record='+s;
	}
	
	function edit_record_new(s,p)
	{
		window.location.href=self_page+'?edit='+s+'&package='+p;
		//alert('?edit='+s+'&package='+p);
	}
	
	function edit_profile(s)
	{
		window.location.href='?edit_profile='+s;
	}
	
	function ShowImage(page, tag)
	{
		var i = 1;
		var el;
		while (el = document.getElementById(tag + i)) {
			if (i == page)
				el.style.display = 'block';
			else
				el.style.display = 'none';
			i++;
		}
	}