function checkplace()
		{//alert("Test");
			var cName = '.ASPXAUTH';
			var cName2 = 'agent=';
			//alert(document.cookie.indexOf(cName).value);
			if (document.cookie)
			{//alert(document.cookie.indexOf(cName));
				if((document.cookie.indexOf(cName) == -1) && (document.cookie.indexOf(cName) == -1))// && (window.location.href.indexOf('?task=login') == -1))
				{
				document.write('');
				window.location.href='login.aspx';
				
				}
			}
			//if(window.location.href.indexOf('?task=login') == -1)
			else 
			{//alert("hello");
				document.write('');
				window.location.href='login.aspx';
			}
		}
		
function checkCookie()
		{
			var cName = '.ASPXAUTH';
			var cName2 = 'agent=';
			//alert(document.cookie.indexOf(cName).value);
			if (document.cookie)
			{//alert(document.cookie.indexOf(cName));
				if((document.cookie.indexOf(cName) == -1) && (document.cookie.indexOf(cName) == -1))// && (window.location.href.indexOf('?task=login') == -1))
				{
				document.write('');
				window.location.href='login.aspx';
				
				}
			}
			//if(window.location.href.indexOf('?task=login') == -1)
			else 
			{//alert("hello");
				document.write('');
				window.location.href='login.aspx';
			}
		}