<!-- General java scripts for system control

// a random number generator function
	var now = new Date()
	var seed = now.getTime() % 0xffffffff

	function rand(n)
	{
		seed = (0x015a4e35 * seed) % 0x7fffffff;
		return (seed >> 16) % n;
	}

// The ads for the site
	var theAds = new Array();

	theAds[0] = "CS1.gif";
	theAds[1] = "CS2.gif";
	theAds[2] = "CS4.gif";
	theAds[3] = "CS3.gif";

	var theAdsRef = new Array();
	theAdsRef [0] = "CSPI.php";
	theAdsRef [1] = "methodology.php";
	theAdsRef [2] = "CSSQC.php";
	theAdsRef [3] = "CSCP.php";

	function getNewAd()
	{
		var n = 4;
		var i = rand(n);
		var aObj = MM_findObj( "mkmsgR" );
		var iObj = MM_findObj("mkmsg");
		if( aObj != null && iObj != null )
		{
			aObj.href = theAdsRef[i];
			iObj.src = "images/general/" + theAds[i];
		}
	}

	function startMe()
	{
		getNewAd();
		setInterval( "getNewAd()", 15000 )
	}

			var ipn = false;
			var canvaswin;

			function opener(theURL, pos)
			{
				if (ipn) {
					canvaswin.close();
				}
				if(pos == 'bottom')
				{
					canvaswin = window.open(theURL,"canvas_window","titlebar=no,left=150,top=50,Width=450,Height=250,scrollbars=yes,alwaysRaised=yes")
					ipn = true;
				}
					if (pos == 'top')
				{
					canvaswin = window.open(theURL,"canvas_window","titlebar=no,left=150,top=30,Width=600,Height=450,scrollbars=yes,alwaysRaised=yes")
				}
					if (pos == 'lgtop')
				{
					canvaswin = window.open(theURL,"canvas_window","titlebar=no,left=150,top=30,Width=800,Height=450,scrollbars=yes,alwaysRaised=yes")
				}

			}

// stop hiding -->

