//Copyright 2004 BDS Solutions
//Author G Zealley


//Opens a specified URL if provided
function m_click(x)
{
    if (x != null)
      location=x

}

function toggle(id)
{
	el = document.getElementById(id);
	var display = el.style.display ? '' : 'none';
	el.style.display = display;
}


function hideAll(loop)
{
	var elID;
	for( var i=1; i<=loop; i++)
	{
		elID = "row" + i + "d";
		//alert (elID);
		element = document.getElementById (elID);
		element.style.display = 'none';
	}
}

function openFAQ()
{

	var x = document.getElementById('faqs');

	var value = x.value;
	
	switch (value)
	{
	case 'ABS_FAQ':
		window.location ='abs_faq.php';
		break;
	case 'DMU_FAQ':
		window.location ='dmu_faq.php';
		break;
	case 'DIN_FAQ':
		window.location ='din_faq.php';
		break;
	case 'DOM_FAQ':
		window.location ='dom_faq.php';
		break;
	case 'ENQ_FAQ':
		window.location ='enq_faq.php';
		break;
	case 'GPA_FAQ':
		window.location ='gpa_faq.php';
		break;
	case 'SQC_FAQ':
		window.location ='sqc_faq.php';
		break;
	default:
		break;
	}
	
}


function setProduct(value)
{
	var x = document.getElementById('updateTextBox');
	
	x.value= ("");
	
	switch (value)
	{
	case 'ABS_up':
		x.value = ("v2.5.0  Date: 14/09/2004  Size: 526kb");
		break;
	case 'DIM_up':
		x.value = ("v1.9.1  Date: 06/11/2007  Size: 1646kb");
		break;
	case 'DMU_up':
		x.value = ("v1.9.1  Date: 06/11/2007  Size: 1646kb");
		break;
	case 'DIN_up':
		x.value = ("v1.6.1  Date: 06/11/2007  Size: 5150kb");
		break;
	case 'DLC_up':
		x.value = ("v1.1.0  Date: 15/12/2003  Size: 530kb");
		break;
	case 'DOM_up':
		x.value = ("v1.1.4  Date: 24/06/2005  Size: 989kb");
		break;
	case 'ENQ1_up':
		x.value = ("v1.3.0  Date: 13/10/2003  Size: 603kb");
		break;
	case 'ENQ2_up':
		x.value = ("v2.2.5  Date: 28/04/2005  Size: 925kb");
	case 'SQC_up':
		x.value = ("v1.1.4  Date: 26/10/2006  Size: 741kb");		
		break;	
	default:
		break;

	}

}


function openPage(value)
{

	var x = document.getElementById('productitems');

	var value = x.value;

	switch (value)
	{
	case 'ABS_prod':
		window.location ='abs_faq.php';
		break;
	case 'DMU_prod':
		window.location ='dmu_index.php';
		break;
	case 'DIM_prod':
		window.location ='dim_index.php';
		break;		
	case 'DIN_prod':
		window.location ='din_index.php';
		break;
	case 'DLC_prod':
		window.location ='dlm_index.php';
		break;
	case 'DLM_prod':
		window.location ='dlm_index.php';
		break;
	case 'DOM_prod':
		window.location ='dom_index.php';
		break;
	case 'ENQ_prod':
		window.location ='enq_index.php';
		break;
	case 'GPA_prod':
		window.location ='gpa_faq.php';
		break;
	case 'SQC_prod':
		window.location ='sqc_faq.php';
		break;		
	default:
		break;
	}

}

function downloadUpdate()
{
	var x = document.getElementById('updates');

	var value = x.value;

	switch (value)
	{
	case 'ABS_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/ABS/ABS250.exe';
		break;
	case 'DMU_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/DIM/DIM191.exe';
		break;
	case 'DIM_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/DIM/DIM191.exe';
		break;		
	case 'DIN_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/DIN/DIN161.exe';
		break;
	case 'DLC_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/DLM/DLC110.exe';
		break;
	case 'DOM_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/DOM/DOM114.exe';
		break;
	case 'ENQ1_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/ENQ/ENQ130.exe';
		break;
	case 'ENQ2_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/ENQ/ENQ225.exe';
		break;
	case 'SQC_up':
		window.location ='http://www.bds-solutions.co.uk/Downloads/Products/SQC/SQC114.exe';
		break;		
	default:
		break;
	}

}




function displayInfo(value)
{

	var para = document.getElementById('productInfo');

	switch (value)
	{
	case 'ABS_prod':
		para.innerHTML = "BDS Solutions&acute; ABStract portfolio was originally developed to address quality issues within the NHS National Address Book Synchronisation (ABS) Service. ABStract2 is designed to enable email administrators in authorities and trusts to access addressing information hosted on Exchange, Active Directory and NDS servers.";
		break;
	case 'DMU_prod':
		para.innerHTML = "BDS Solutions&acute; Directory Manager harnesses the national Electronic Staff Record (ESR) or a local HR/Payroll system to fully populate and administer Microsoft Active Directory.";
		break;
	case 'DIM_prod':
		para.innerHTML = "Contact Manager - for building and maintaining complete local address books.";
		break;		
	case 'DIN_prod':
		para.innerHTML = "Directory Integrator is a tool that meets the challenges associated with the integration and maintenance of directory data. Directory Integrator can pull data together from different sources, apply standard values, open up Active Directory attributes for use, translate values, apply validation rules and more.";
		break;
	case 'DLC_prod':
		para.innerHTML = "Distribution List Client is a utility that provides an intelligent method for creating and maintaining distribution lists that will help ensure the integrity and usefulness of the lists. It combines all the functionality required for these tasks together with a simple and user-friendly interface.";
		break;
	case 'DLM_prod':
		para.innerHTML = "Distribution List Monitor is a Windows service that runs on the host server. All changes made through our Distribution List Client software are then logged in a central database from which DL Monitor compiles reporting information and sends it to list managers.";
		break;
	case 'DOM_prod':
		para.innerHTML = "Download Manager is a tool for managing the creation and downloading of address books from directory sources. Precise definitions can be created detailing the content of the desired address book. These are stored in an application database and can be updated at any time. Each defintion has a download frequency setting that when due, will be automatically downloaded and an address book file saved locally.";
		break;
	case 'ENQ_prod':
		para.innerHTML = "Enquiry Agent gives power to the user through enhanced directory browsing and searching capabilities, with relevant information being clearly displayed on screen addressing a number of significant shortcomings in the standard address book interface provided by MS Outlook.";
		break;
	case 'GPA_prod':
		para.innerHTML = "GP-ABStract was produced to enable GP practices to submit their email addresses to the ABS On-line service. The software consists of two modules, the Address Manager is used by practices to manage address submission, and the Central Module that receives copies of address submissions to ABS On-line so that activity can be monitored easily.";
		break;
	case 'SQC_prod':
		para.innerHTML = "SQLconnect converts Microsoft Access databases into equivalent SQL databases. The software performs two functions, firstly the initial conversion of the Access database into an equivalent SQL format and secondly, to continually update the new SQL database to reflect changes made to the original Access database.";
		break;		
	default:
		break;
	}

}



function changeLinkColourOn(elemID)
{
	var x = document.getElementById(elemID);
	x.style.color = "#B11F24";
}

function changeLinkColourOff(elemID)
{
	var x = document.getElementById(elemID);
	x.style.color = "#B11F24";
}