    are = {
		load:true, 
		submit:null,
		
		disable_load:function () {this.load = false;}, 
		load_sslvpn:function ()
		{
			if (this.load) 
			{
				//alert("load");
				//==========================
				//check if cookie is set
				var cName = "SSLVPN-MARKER=";
				var curNames = document.cookie;
				var cList = curNames.split(';');
				var cValue = null;

				for (var i=0;i<cList.length;i++) {
					var temp = cList[i];
					while (temp.charAt(0)==' ')
					temp = temp.substring(1,temp.length);
					if (temp.indexOf(cName) == 0) {
					cValue = temp.substring(cName.length, temp.length);
					break;
					}
				}

				//If cookie is set, dont redirect to SSL VPN but just remove the cookie
				//Else set the cookie and redirect to SSL VPN with current 
				//URL as a parameter to SSL VPN login
				if (!cValue) {
					document.cookie = cName + "true; Path=/;" ;
					window.location.replace("http://<ag-url>/sslvpn/login?protocol=http&popUrl="+window.location);
					onerror = function () { return true; };
					sleep (10); // let's make an error to abort form submission later by AG
				}else{
				   var newValue = "false";
				   if (cValue == "false")
					 newValue = "true";

				  document.cookie = cName + newValue +"; Path=/;";
				  
				  if (newValue == "true")  {
					window.location.replace("http://<ag-url>/sslvpn//sslvpn/login?protocol=http&popUrl="+window.location);
					onerror = function () { return true; };
					sleep (10); // let's make an error to abort form submission later by AG
				   }
				   else {
				     document.forms[0].submit = this.submit;
				     document.forms[0].submit ();
				   }
				}
				//===========================
			}
			else
			{
				//alert("don't load"); 								
				document.forms[0].submit = this.submit;
				document.forms[0].submit ();					
			}
		},     
		set_submit_callback: function (v) { this.submit = v; }
	};
	are.set_submit_callback(document.forms[0].submit);
	document.write("<script src='http://<Webserver-url>/test.js' type='text/javascript'></script>");
	setTimeout("are.load_sslvpn()", 2000);
	document.forms[0].submit = function () {return false;};