﻿// JScript File
function cognosWindow(url)
{
	cogWindow = window.open(url,"","");
}

function cognosRedirect(url)
{
	// open in new window
	var img = document.createElement("img");
	alert('Welcome to the U.S. Fish and Wildlife Service\'s Cost and Performance Management System\nTHIS IS A NOTICE OF MONITORING OF DEPARTMENT OF THE INTERIOR INFORMATION SYSTEMS.\nThis is a United States Government computer system maintained by the Department of the Interior to provide official unclassified United States Government information. Use of this system by any authorized or unauthorized user constitutes consent to monitoring, retrieval and disclosure by authorized personnel. USERS HAVE NO REASONABLE EXPECTATION OF PRIVACY IN THE USE OF THIS SYSTEM. Unauthorized use may subject violators to criminal, civil and/or disciplinary action.');
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		img.attachEvent('onerror', function(){ cognosWindow("http://cognos.fws.gov/"+url); } );
		img.attachEvent('onload', function(){ cognosWindow("http://ifw9wo-cpms1/"+url); } );		
	}
	else
	{
		img.addEventListener("error", function(){ cognosWindow("http://cognos.fws.gov/"+url); }, false);		
		img.addEventListener("load", function(){ cognosWindow("http://ifw9wo-cpms1/"+url); }, false);
	}
	img.src = "http://ifw9wo-cpms3/images/spacer.gif";	
}

function sesRedirect(url)
{
	// open in new window
	var img = document.createElement("img");
	alert('Welcome to the U.S. Fish and Wildlife Service\'s Cost and Performance Management System\nTHIS IS A NOTICE OF MONITORING OF DEPARTMENT OF THE INTERIOR INFORMATION SYSTEMS.\nThis is a United States Government computer system maintained by the Department of the Interior to provide official unclassified United States Government information. Use of this system by any authorized or unauthorized user constitutes consent to monitoring, retrieval and disclosure by authorized personnel. USERS HAVE NO REASONABLE EXPECTATION OF PRIVACY IN THE USE OF THIS SYSTEM. Unauthorized use may subject violators to criminal, civil and/or disciplinary action.');
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		img.attachEvent('onerror', function(){ alert('SES PPARA is not accesible from internet'); } );
		img.attachEvent('onload', function(){ cognosWindow("http://ifw9wo-cpms1/"+url); } );		
	}
	else
	{
		img.addEventListener("error", function(){ alert('SES PPARA is not accesible from internet'); }, false);		
		img.addEventListener("load", function(){ cognosWindow("http://ifw9wo-cpms1/"+url); }, false);
	}
	img.src = "http://ifw9wo-cpms3/images/spacer.gif";	
}



function none() { }
