	function hasEmail() 
	{
		// return true;
	   var email = document.FormDownload.Email.value;
		if (email == "") 
		{
		   alert("An e-mail address is required");
			document.FormDownload.Email.focus();		   
		   return false;
		}
   		SetCookie('Email', email);
   		return true;
   		
	}
	
	function onDownloadClick()
	{
	   //if (hasEmail())
	   {
   			document.FormDownload.filename.value = "http://www.issueview.com/IV50.exe";
   			document.FormDownload.submit();
   		}
	}
	
	function onDownloadFullClick()
	{
	   //if (hasEmail())
	   {
   			document.FormDownload.filename.value = "http://www.issueview.com/IV50MSDE.exe";
   			document.FormDownload.submit();
   		}
	}
		
	function onDownloadIVW()
	{
	   //if (hasEmail())
	   {
   			document.FormDownload.filename.value = "http://www.issueview.com/IVW.exe";
   			document.FormDownload.submit();
   		}
	}
		
	function onDownloadIV40Click()
	{
	   //if (hasEmail())
	   {
   			document.FormDownload.filename.value = "http://www.issueview.com/IV40.exe";
   			document.FormDownload.submit();
   		}
	}
	
	function onDownloadIVW()
	{
		//if (hasEmail())
		{
   			document.FormDownload.filename.value = "http://www.issueview.com/IVW.exe";
   			document.FormDownload.submit();
   		}
	}
		
	function onDownloadWS()
	{
		//if (hasEmail())
		{
   			document.FormDownload.filename.value = "http://www.issueview.com/WS.exe";
   			document.FormDownload.submit();
   		}
	}
		
	function onDownloadIVMonitor()
	{
		//if (hasEmail())
		{
   			document.FormDownload.filename.value = "http://www.issueview.com/IVMonitorSetup.exe";
   			document.FormDownload.submit();
   		}
	}
	
	
	function onDownloadIvSample()
	{
		//if (hasEmail())
		{
		alert('This installer requires a password.  Please contact support@issueview.com');
   			document.FormDownload.filename.value = "http://www.issueview.com/IvSampleSetup.exe";
   			document.FormDownload.submit();
   		}
	}
	
	function onDownloadAdminGuide()
	{
		//if (hasEmail())
		{
   			document.FormDownload.filename.value = "http://www.issueview.com/AdminGuide.exe";
   			document.FormDownload.submit();
   		}
	}
	
		
	function onDownloadWin32Beta()
	{
		if (hasEmail())
		{
   			document.FormDownload.filename.value = "http://www.issueview.com/IV50.exe";
   			document.FormDownload.submit();
   		}
	}
		
	function onDownloadIVWBeta()
	{
		if (hasEmail())
		{
   			document.FormDownload.filename.value = "http://www.issueview.com/IVW50.exe";
   			document.FormDownload.submit();
   		}
	}
		
	function onDownloadWSBeta()
	{
		if (hasEmail())
		{
   			document.FormDownload.filename.value = "http://www.issueview.com/WS50.exe";
   			document.FormDownload.submit();
   		}
	}
		
	function onDownloadIVMonitorBeta()
	{
		if (hasEmail())
		{
   			document.FormDownload.filename.value = "http://www.issueview.com/IVMonitorSetup50.exe";
   			document.FormDownload.submit();
   		}
	}
		
	function onDownloadFile(filename)
	{
   		document.FormDownload.filename.value = filename;
   		document.FormDownload.submit();
	}
		
	function toForm() 
	{
	   preloadImages();
		var email = GetCookie('Email');
		if (email != null) 
			document.FormDownload.Email.value = email;
		//else
		//	document.FormDownload.Email.focus();
		
	}
