_U			= "undefined";
dev;
dev = "http://trustcom/intradoc-cgi/idc_cgi_isapi.dll?IdcService=SS_GET_PAGE&" + devPage;

function fnCheckKey()
{
	try
	{
		if (event.ctrlKey && event.shiftKey)
		{
			switch (event.keyCode)
			{
				// F5
				case 116:
					fnToggle();
					break;

				default:
					break;
			}
		}
	}
	catch(e)
	{
		fnLog(e, "fnCheckKey", this.name);
	}
}

function fnToggle()
{
	try
	{
		if (document.location.href.search(/SSContributor=true/) >= 0) // disable
		{
			var str = window.location.href.replace(/.SSContributor=true/gi,"");
			window.location.replace(str);
		}
		else // enable
		{
			if(window.location.href.search(/\?/) >= 0)
			{
				//window.location = window.location.href + "&SSContributor=true";
				window.location = dev;
			}
			else
			{
				//window.location = window.location.href + "?SSContributor=true";
				window.location = dev;
			}
		}
	}
	catch(e)
	{
		fnLog(e, "fnToggle", this.name);
	}
}



function fnInit()
{
	try
	{
		if (typeof document.body != _U && document.body != null)
		{
			document.body.attachEvent('onkeydown', fnCheckKey);

		}
	}
	catch(e)
	{
		fnLog(e, "fnInit", this.name);
	}
}


function fnLog( e, fn, f )
{
	alert(f + "-1\n" + fn + "-2\n" + e.name + "-3\n" + e.description + "-4\n" );
}


if(document.getElementById && document.all && !csMac)
	window.onload = fnInit;
