	function checkLogin(frm)
	{
		if ( frm.agreetoterms.checked != true || frm.un.value == "" || frm.pw.value == "" )
		{
			alert("In order to access the reports, you must complete\nthe form and agree to the terms.");
			return false;
		}

		return true;
	}

	function doPopUp(varPopUp)
	{
		var strUrl = varPopUp;
		window.open(strUrl, 'Aptimus', "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=300,height=280,left=22,top=275");

	}

	function preview(id)
	{
		var t;
		var m;

		switch (id)
		{
		   case '1':
		   {
				t='Active Downloaders';
				m="Access to over 25 million impressions per month from engaged downloaders on the web's most popular download sites.";
		   		break;
		   }
		   case '2':
		   {
				t='African American';
				m='Reach engaged African Americans on the category-leading sites they trust. Access to over 4.5 million unique users per month.';
		   		break;
		   }
		   case '3':
		   {
				t='Communications';
				m='Reach engaged consumers on sites where they are communicating with others.';
		   		break;
		   }
		   case '4':
		   {
				t='Early Adopters';
				m='Reach nearly 20 million engaged early adopters each month on leading technology sites they trust.';
		   		break;
		   }
		   case '5':
		   {
				t='Home/New Movers';
				m='Reach engaged consumers interested in products for the home, many of whom are considering a move or have recently moved.';
		   		break;
		   }
		   case '6':
		   {
				t='Local Markets';
				m='Reach engaged consumers on the websites they frequent and trust for local information.';
		   		break;
		   }
		   case '7':
		   {
				t='Photo';
				m='Reach engaged consumers interested in photos and photo sharing.';
		   		break;
		   }
		   case '8':
		   {
				t='Promotional';
				m='Reach engaged consumers who are visiting leading incentivized Web sites on the Internet.';
		   		break;
		   }
		   case '9':
		   {
				t='Self-Improvement';
				m='Reach engaged consumers interested in improving the quality of their lifestyle, health, wealth and education.';
		   		break;
		   }
		   case '10':
		   {
				t='Social Networking';
				m="Reach the Internet's most engaged audience segment where they are most comfortable interacting.";
		   		break;
		   }
		   default: { break; }
		}
		previewStartFlashMessage(t,m);
	}

	function stopPreview()
	{
		previewStopFlashMessage();
	}
	
	
	function previewStartFlashMessage (title, message)
	{
	mc = window.document["network"];
	mc.SetVariable( "titletxt", title);
	mc.SetVariable( "messagetxt", message);
	mc.SetVariable( "doPreview", "true");
	}
	
	function previewStopFlashMessage ()
	{
	mc = window.document["network"];
	mc.SetVariable( "doPreview", "false");
}
	
