// Engagement Questions Functions
function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n)
}

function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}

function addCommas(nStr)
{
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}

function showres()
{
var result;
var s1,s2,s3,s4,s5,s6;
if (document.getElementById('stafftype1').checked==true) {
	s1=(document.Form1.s1.options[document.Form1.s1.selectedIndex].value*110000)*1.5; 
	s2=(document.Form1.s2.options[document.Form1.s2.selectedIndex].value*70000)*1.5;
	s3=(document.Form1.s3.options[document.Form1.s3.selectedIndex].value*50000);
	s4=(document.Form1.s4.options[document.Form1.s4.selectedIndex].value*35000);
	s5=(document.Form1.s5.options[document.Form1.s5.selectedIndex].value*45000)*1.5;
	s6=(document.Form1.s6.options[document.Form1.s6.selectedIndex].value*33000);
}
else
{
	s1=(document.Form1.s1.options[document.Form1.s1.selectedIndex].value*110000)*1.5; 
	s2=(document.Form1.s2.options[document.Form1.s2.selectedIndex].value*70000)*1.5;
	s3=(document.Form1.s3.options[document.Form1.s3.selectedIndex].value*37000);
	s4=(document.Form1.s4.options[document.Form1.s4.selectedIndex].value*40000);
	s5=(document.Form1.s5.options[document.Form1.s5.selectedIndex].value*50000)*1.5;
	s6=(document.Form1.s6.options[document.Form1.s6.selectedIndex].value*33000);
}
result=s1+s2+s3+s4+s5+s6;

document.getElementById('calcresult').innerHTML = "$" + addCommas(result);
document.getElementById('result1').style.display="inline";
document.getElementById('result2').style.display="inline";

document.location.href = "#result";

}

function setCategoriesBlue()
{
document.getElementById('cat2').innerHTML = "Line/Production, <br>Project Managers";
document.getElementById('cat3').innerHTML = "Process, Line Workers";
document.getElementById('cat4').innerHTML = "Stores/Logistics <br>Staff";
document.getElementById('cat5').innerHTML = "Technical Production <br>Staff";
document.getElementById('cat6').innerHTML = "Office Personnel";
document.getElementById('stafftype1').checked=false;
document.getElementById('result1').style.display="none";
document.getElementById('result2').style.display="none";
}
function setCategoriesWhite()
{
document.getElementById('cat2').innerHTML = "Line Managers/Team Leaders";
document.getElementById('cat3').innerHTML = "IT/Technical/Consulting Staff";
document.getElementById('cat4').innerHTML = "Accounts/Payroll, HR Staff";
document.getElementById('cat5').innerHTML = "Sales/Customer Service Staff";
document.getElementById('cat6').innerHTML = "Secretarial/<br>Administration Staff";
document.getElementById('stafftype2').checked=false;
document.getElementById('result1').style.display="none";
document.getElementById('result2').style.display="none";
}


function Validate(btnName)
{
	var btn = document.Form1[btnName]
	var valid
	
	for (var x = 0;x < btn.length; x++)
	{
		valid = btn[x].checked
		if (valid) {return true}
	}
	if(!valid)
	{
		alert("Please select an answer for "+btnName+".");
		return false
	}
}


function getSelectedRadio(buttonGroup) 
{
    if (buttonGroup[0]) 
    { 
      for (var i=0; i<buttonGroup.length; i++) 
      {
         if (buttonGroup[i].checked) 
         {
            return i
         }
      }
	} else 
   {
      if (buttonGroup.checked) { return 0; } 
   }   
   return -1;
} 

//Used for Engage Results
function getQueryVariable(variable) 
{
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) 
  {
    var pair = vars[i].split("=");
    if (pair[0] == variable) 
    {
      return pair[1];
    }
  } 
  return ""
}

function setboxes(showsolns)
{
var col_array=showsolns.split("~");
var length=col_array.length;
var box=6;
if (showsolns=="") {length=0}
//hide not needed boxes
	while (box > length)
	{
	document.getElementById('soln'+box).style.display='none'
	box-=1;
	}
	return
}

function engage1()
{
if ((Validate('Q1')) && (Validate('Q2')) && (Validate('Q4')) && (Validate('Q5')) && (Validate('Q6')))
{
	var solnList='1~2~3~4~5~6';	
	if (getSelectedRadio(document.Form1.Q1)==0){solnList=solnList.replace('1','')}	
	if (getSelectedRadio(document.Form1.Q2)==0){solnList=solnList.replace('~2','')}
	if (getSelectedRadio(document.Form1.Q31)==0 && getSelectedRadio(document.Form1.Q32)==0 && getSelectedRadio(document.Form1.Q33)==0 && getSelectedRadio(document.Form1.Q34)==0 && getSelectedRadio(document.Form1.Q35)==0)
	{solnList=solnList.replace('~3','')}
	if (getSelectedRadio(document.Form1.Q4)==0) {solnList=solnList.replace('~4','')}
	if (getSelectedRadio(document.Form1.Q5)==0) {solnList=solnList.replace('~5','')}
	if (getSelectedRadio(document.Form1.Q6)==0) {solnList=solnList.replace('~6','')}
	//send results via qstring
	if (Left(solnList,1)=='~') 
	{		
		var length=solnList.length;		
		solnList=Right(solnList,length-1);		
	}
	window.location = '../engage/engae1soln.aspx?soln='+solnList;
}
}


function engage1sol(showsolns)
{
var boxes=showsolns;
setboxes(boxes);

if (showsolns=="") 
{
document.getElementById("results").innerHTML="Based on the answers you provided there is no requirement for a specified business solution.";
}

var sol1='Training Needs Analysis';
var sol2='Desktop Training';
var sol3='Professional Development Training';
var sol4="Salesforce Training";
var sol5='Employee Retention Training';
var sol6='Organisation Climate Surveys';

var body1='<li>Enhance the skills, performance and productivity of your staff</li><li>Pin-point where learning gaps exist</li><li>Define and deliver learning outcomes that are appropriate to each individual</li>'
var body2='<li>Increase the efficiency and productivity of your staff</li><li>Increases morale and employee retention</li><li>Instil a learning culture to your organisation</li>';
var body3='<li>Develop a corporate learning solution and drive measurable results</li><li>Improve morale, productivity, and staff performance</li><li>Align learning solutions with your organisation’s values and culture.</li>';
var body4='<li>Understand the sales strengths and potential of your sales people</li><li>Overcome sales call reluctance</li><li>Improve the effectiveness and conversion rate of your sales team</li>';
var body5='<li>Reduce unwanted staff turnover</li><li>Implement an integrated employee retention strategy</li><li>Win the war for talent and gain competitive advantage through your staff</li>';
var body6='<li>Isolate the root causes of continuing problems, such as high turnover and low productivity and morale</li><li>Uncover solutions to issues what will lead to profitable improvements</li><li>Improve communication and productivity of individuals and teams</li>';

var href1='../BUSSOLUTIONS/trainingneeds.aspx';
var href2='../BUSSOLUTIONS/desktoptraining.aspx';
var href3='../BUSSOLUTIONS/professionaldevelopment.aspx';
var href4='../BUSSOLUTIONS/salesforceassessments.aspx';
var href5='../BUSSOLUTIONS/employeeretentiontraining.aspx';
var href6='../BUSSOLUTIONS/climatesurveys.aspx';

var col_array=showsolns.split("~");
var length=col_array.length;
	for (var i=0;i<length;i++) 
	{
	switch(col_array[i])
		{
		case '1':
		document.getElementById('heading'+(i+1)).innerHTML=sol1;		
		document.getElementById('body'+(i+1)).innerHTML=body1;
		document.getElementById('ref'+(i+1)).setAttribute('href',href1);
		break;
		case '2':
		document.getElementById('heading'+(i+1)).innerHTML=sol2;
		document.getElementById('body'+(i+1)).innerHTML=body2;
		document.getElementById('ref'+(i+1)).setAttribute('href',href2);
		break;
		case '3':
		document.getElementById('heading'+(i+1)).innerHTML=sol3;
		document.getElementById('body'+(i+1)).innerHTML=body3;
		document.getElementById('ref'+(i+1)).setAttribute('href',href3);
		break;
		case '4':
		document.getElementById('heading'+(i+1)).innerHTML=sol4;
		document.getElementById('body'+(i+1)).innerHTML=body4;
		document.getElementById('ref'+(i+1)).setAttribute('href',href4);
		break;
		case '5':
		document.getElementById('heading'+(i+1)).innerHTML=sol5;
		document.getElementById('body'+(i+1)).innerHTML=body5;
		document.getElementById('ref'+(i+1)).setAttribute('href',href5);
		break;
		case '6':
		document.getElementById('heading'+(i+1)).innerHTML=sol6;
		document.getElementById('body'+(i+1)).innerHTML=body6;
		document.getElementById('ref'+(i+1)).setAttribute('href',href6);
		break;
		}
	}	
}

function engage2()
{
if ((Validate('Q1')) && (Validate('Q2')) && (Validate('Q3')) && (Validate('Q4')) && (Validate('Q5')) && (Validate('Q6')))
{
	var solnList='1~2~3~4~5~6';	
	if (getSelectedRadio(document.Form1.Q1)==0){solnList=solnList.replace('1','')}	
	if (getSelectedRadio(document.Form1.Q2)==0){solnList=solnList.replace('~2','')}
	if (getSelectedRadio(document.Form1.Q3)==0){solnList=solnList.replace('~3','')}
	if (getSelectedRadio(document.Form1.Q4)==0) {solnList=solnList.replace('~4','')}
	if (getSelectedRadio(document.Form1.Q5)==0) {solnList=solnList.replace('~5','')}
	if (getSelectedRadio(document.Form1.Q6)==0) {solnList=solnList.replace('~6','')}
	//send results via qstring
	if (Left(solnList,1)=='~') 
	{		
		var length=solnList.length;		
		solnList=Right(solnList,length-1);		
	}
	window.location = '../engage/engae2soln.aspx?soln='+solnList;
}
}


function engage2sol(showsolns)
{
var boxes=showsolns;
setboxes(boxes);

if (showsolns=="") 
{
document.getElementById("results").innerHTML="Based on the answers you provided there is no requirement for a specified business solution.";
}

var sol1='Employee retention training';
var sol2='Oganisation climate surveys';
var sol3='Exit interviewing';
var sol4="Succession planning";
var sol5='Performance appraisals';
var sol6='Outplacements services';

var body1='<li>Reduce unwanted staff turnover</li><li>Implement an integrated employee retention strategy</li><li>Win the war for talent and gain competitive advantage through your staff</li>'
var body2='<li>Isolate the root causes of continuing problems, such as high turnover and low productivity and morale</li><li>Uncover solutions to issues what will lead to profitable improvements</li><li>Improve communication and productivity of individuals and teams</li>';
var body3='<li>Reduce unwanted employee turnover</li><li>Increase organisational productivity and outcomes to stakeholders</li><li>Reduce the investment of time and money currently channelled into re-sourcing, re-hiring and re-training new employees</li>';
var body4='<li>Identify, retain and get the most from your high potential employees</li><li>Develop real leaders from within your organisation</li><li>Ensure a steady stream of talent ready to take on critical roles</li>';
var body5='<li>Retain, motivate and get the best from your workforce</li><li>Increase overall morale and staff productivity</li><li>Reduce paperwork and time to conduct performance appraisals by doing them online</li>';
var body6='<li>Maintain productivity and morale when reducing staffing levels</li><li>Create the best outcomes for departing employees</li><li>Leverage positive employer branding from outplacement</li>';

var href1='../BUSSOLUTIONS/employeeretentiontraining.aspx';
var href2='../BUSSOLUTIONS/climatesurveys.aspx';
var href3='../BUSSOLUTIONS/exitinterviewing.aspx';
var href4='../BUSSOLUTIONS/successionplanning.aspx';
var href5='../BUSSOLUTIONS/performanceappraisals.aspx';
var href6='../BUSSOLUTIONS/outplacementservices.aspx';

var col_array=showsolns.split("~");
var length=col_array.length;
	for (var i=0;i<length;i++) 
	{
	switch(col_array[i])
		{
		case '1':
		document.getElementById('heading'+(i+1)).innerHTML=sol1;		
		document.getElementById('body'+(i+1)).innerHTML=body1;
		document.getElementById('ref'+(i+1)).setAttribute('href',href1);
		break;
		case '2':
		document.getElementById('heading'+(i+1)).innerHTML=sol2;
		document.getElementById('body'+(i+1)).innerHTML=body2;
		document.getElementById('ref'+(i+1)).setAttribute('href',href2);
		break;
		case '3':
		document.getElementById('heading'+(i+1)).innerHTML=sol3;
		document.getElementById('body'+(i+1)).innerHTML=body3;
		document.getElementById('ref'+(i+1)).setAttribute('href',href3);
		break;
		case '4':
		document.getElementById('heading'+(i+1)).innerHTML=sol4;
		document.getElementById('body'+(i+1)).innerHTML=body4;
		document.getElementById('ref'+(i+1)).setAttribute('href',href4);
		break;
		case '5':
		document.getElementById('heading'+(i+1)).innerHTML=sol5;
		document.getElementById('body'+(i+1)).innerHTML=body5;
		document.getElementById('ref'+(i+1)).setAttribute('href',href5);
		break;
		case '6':
		document.getElementById('heading'+(i+1)).innerHTML=sol6;
		document.getElementById('body'+(i+1)).innerHTML=body6;
		document.getElementById('ref'+(i+1)).setAttribute('href',href6);
		break;
		}
	}	
}

function engage3()
{
if ((Validate('Q1')) && (Validate('Q2')) && (Validate('Q3')) && (Validate('Q4')) && (Validate('Q5')))
{
	var solnList='1~2~3~4~5';	
	if (getSelectedRadio(document.Form1.Q1)==0){solnList=solnList.replace('1','')}	
	if (getSelectedRadio(document.Form1.Q2)==0){solnList=solnList.replace('~2','')}
	if (getSelectedRadio(document.Form1.Q3)==0){solnList=solnList.replace('~3','')}
	if (getSelectedRadio(document.Form1.Q4)==0) {solnList=solnList.replace('~4','')}
	if (getSelectedRadio(document.Form1.Q5)==0 && getSelectedRadio(document.Form1.Q61)==0 && getSelectedRadio(document.Form1.Q62)==0 && getSelectedRadio(document.Form1.Q63)==0 && getSelectedRadio(document.Form1.Q64)==0 && getSelectedRadio(document.Form1.Q65)==0) 
		{solnList=solnList.replace('~5','')}
	//send results via qstring
	if (Left(solnList,1)=='~') 
	{		
		var length=solnList.length;		
		solnList=Right(solnList,length-1);		
	}
	window.location = '../engage/engae3soln.aspx?soln='+solnList;
}
}
function engage3sol(showsolns)
{
var boxes=showsolns;
setboxes(boxes);

if (showsolns=="") 
{
document.getElementById("results").innerHTML="Based on the answers you provided there is no requirement for a specified business solution.";
}

var sol1='Behavioural and skills assessment';
var sol2='Salesforce assessment';
var sol3='Leadership & emotional intelligence training';
var sol4='Office and industrial assessments';
var sol5='12 steps to recruitment';
var sol6='';

var body1='<li>Make the RIGHT hiring decision, first-time</li><li>Increase retention - create a more engaged and productive workforce</li><li>Improve communication with and between your team</li>'
var body2='<li>Hire top performing sales professionals</li><li>Increase your prospecting activity by more than 20%</li><li>Improve sales team effectiveness,and company profitability</li>';
var body3='<li>Develop motivational and inspirational leaders</li><li>Understand individuals\' strengths and weaknesses</li><li>Retain your key staff and enhance team cohesion</li>';
var body4='<li>Minimise the risk of a bad-hire</li><li>Match the skills of your current and prospective staff to workload and requirements</li><li>Customise training and learning programs for your staff</li>';
var body5='<li>Outsource the essential recruitment steps that you are not set up to complete</li><li>Save time and money</li><li>Utilise proven recruitment methodology alongside your own processes</li>';
var body6='';

var href1='../BUSSOLUTIONS/behaviouralprofiling.aspx';
var href2='../BUSSOLUTIONS/salesforceassessments.aspx';
var href3='../BUSSOLUTIONS/leadershipassessment.aspx';
var href4='../BUSSOLUTIONS/officeandindustrialassessments.aspx';
var href5='../BUSSOLUTIONS/12steps.aspx';
var href6='';

var col_array=showsolns.split("~");
var length=col_array.length;
	for (var i=0;i<length;i++) 
	{
	switch(col_array[i])
		{
		case '1':
		document.getElementById('heading'+(i+1)).innerHTML=sol1;		
		document.getElementById('body'+(i+1)).innerHTML=body1;
		document.getElementById('ref'+(i+1)).setAttribute('href',href1);
		break;
		case '2':
		document.getElementById('heading'+(i+1)).innerHTML=sol2;
		document.getElementById('body'+(i+1)).innerHTML=body2;
		document.getElementById('ref'+(i+1)).setAttribute('href',href2);
		break;
		case '3':
		document.getElementById('heading'+(i+1)).innerHTML=sol3;
		document.getElementById('body'+(i+1)).innerHTML=body3;
		document.getElementById('ref'+(i+1)).setAttribute('href',href3);
		break;
		case '4':
		document.getElementById('heading'+(i+1)).innerHTML=sol4;
		document.getElementById('body'+(i+1)).innerHTML=body4;
		document.getElementById('ref'+(i+1)).setAttribute('href',href4);
		break;
		case '5':
		document.getElementById('heading'+(i+1)).innerHTML=sol5;
		document.getElementById('body'+(i+1)).innerHTML=body5;
		document.getElementById('ref'+(i+1)).setAttribute('href',href5);
		break;
		case '6':
		document.getElementById('heading'+(i+1)).innerHTML=sol6;
		document.getElementById('body'+(i+1)).innerHTML=body6;
		document.getElementById('ref'+(i+1)).setAttribute('href',href6);
		break;
		}
	}	
}
function engage4()
{
if ((Validate('Q1')) && (Validate('Q3')) && (Validate('Q4')) && (Validate('Q5')) && (Validate('Q6')))
{
	var solnList='1~2~3~4~5~6';	
	if (getSelectedRadio(document.Form1.Q1)==1 && getSelectedRadio(document.Form1.Q3)==1){solnList=solnList.replace('1','')}	
	if (getSelectedRadio(document.Form1.Q21)!=0 && getSelectedRadio(document.Form1.Q23)!=0){solnList=solnList.replace('~2','')}
	if (getSelectedRadio(document.Form1.Q22)!=0){solnList=solnList.replace('~3','')}
	if (getSelectedRadio(document.Form1.Q4)==1) {solnList=solnList.replace('~4','')}
	if (getSelectedRadio(document.Form1.Q5)==0) {solnList=solnList.replace('~5','')}
	if (getSelectedRadio(document.Form1.Q6)==0) {solnList=solnList.replace('~6','')}
	//send results via qstring
	if (Left(solnList,1)=='~') 
	{		
		var length=solnList.length;		
		solnList=Right(solnList,length-1);		
	}
	window.location = '../engage/engae4soln.aspx?soln='+solnList;
}
}
function engage4sol(showsolns)
{
var boxes=showsolns;
setboxes(boxes);

if (showsolns=="") 
{
document.getElementById("results").innerHTML="Based on the answers you provided there is no requirement for a specified business solution.";
}

var sol1='Business process outsourcing';
var sol2='Financial outsourcing';
var sol3='Call centre outsourcing';
var sol4='Flexible staffing';
var sol5='Online contractor management';
var sol6='Performance appraisals';

var body1='<li>Reduce business risk and improve profitability</li><li>Meet the changing needs of business</li><li>Benefit form world class outsourcing through people, processes and technology</li>'
var body2='<li>Reduce administration infrastructure and costs</li><li>Ensure 100% compliance with statutory and legislative requirements</li><li>Balance your workforce with fluctuating workflow</li>';
var body3='<li>Increase your productivity by concentrating on your core competency</li><li>Improve contact centre performance</li><li>Lower the cost of buying, maintaining and updateing telephony equipment</li>';
var body4='<li>Reduce unnecessary labour costs</li><li>Balance your workforce with your workload</li><li>Avoid the dilemma of skills shortages</li>';
var body5='<li>Order staff quickly and efficiently online and reduce administration time</li><li>Extensive online reporting including contractor order tracking, work history, contractor hours and overtime</li><li>Reduce timesheet and invoice errors</li>';
var body6='<li>Retain, motivate and get the best from your workforce</li><li>Increase overall morale and staff productivity</li><li>Reduce paperwork and time to conduct performance appraisals by doing them online</li>';

var href1='../BUSSOLUTIONS/busprocessoutsourcing.aspx';
var href2='../BUSSOLUTIONS/financialoutsourcing.aspx';
var href3='../BUSSOLUTIONS/callcentreoutsourcing.aspx';
var href4='../BUSSOLUTIONS/flexiblestaffing.aspx';
var href5='../BUSSOLUTIONS/onlinecontractormanagement.aspx';
var href6='../BUSSOLUTIONS/performanceappraisals.aspx';

var col_array=showsolns.split("~");
var length=col_array.length;
	for (var i=0;i<length;i++) 
	{
	switch(col_array[i])
		{
		case '1':
		document.getElementById('heading'+(i+1)).innerHTML=sol1;		
		document.getElementById('body'+(i+1)).innerHTML=body1;
		document.getElementById('ref'+(i+1)).setAttribute('href',href1);
		break;
		case '2':
		document.getElementById('heading'+(i+1)).innerHTML=sol2;
		document.getElementById('body'+(i+1)).innerHTML=body2;
		document.getElementById('ref'+(i+1)).setAttribute('href',href2);
		break;
		case '3':
		document.getElementById('heading'+(i+1)).innerHTML=sol3;
		document.getElementById('body'+(i+1)).innerHTML=body3;
		document.getElementById('ref'+(i+1)).setAttribute('href',href3);
		break;
		case '4':
		document.getElementById('heading'+(i+1)).innerHTML=sol4;
		document.getElementById('body'+(i+1)).innerHTML=body4;
		document.getElementById('ref'+(i+1)).setAttribute('href',href4);
		break;
		case '5':
		document.getElementById('heading'+(i+1)).innerHTML=sol5;
		document.getElementById('body'+(i+1)).innerHTML=body5;
		document.getElementById('ref'+(i+1)).setAttribute('href',href5);
		break;
		case '6':
		document.getElementById('heading'+(i+1)).innerHTML=sol6;
		document.getElementById('body'+(i+1)).innerHTML=body6;
		document.getElementById('ref'+(i+1)).setAttribute('href',href6);
		break;
		}
	}	
}
function engage5()
{
if ((Validate('Q1')) && (Validate('Q2')) && (Validate('Q3')) && (Validate('Q4')) && (Validate('Q5')) && (Validate('Q6')))
{
	var solnList='1~2~3~4~5';		
	if (getSelectedRadio(document.Form1.Q1)==1 && getSelectedRadio(document.Form1.Q6)==1 && getSelectedRadio(document.Form1.Q5)!=2){solnList=solnList.replace('1','')}	
	if (getSelectedRadio(document.Form1.Q4)==1) {solnList=solnList.replace('~4','')}
	if (getSelectedRadio(document.Form1.Q5)!=1) {solnList=solnList.replace('~5','')}
	//send results via qstring
	if (Left(solnList,1)=='~') 
	{		
		var length=solnList.length;		
		solnList=Right(solnList,length-1);		
	}
	window.location = '../engage/engae5soln.aspx?soln='+solnList;
}
}


function engage5sol(showsolns)
{
var boxes=showsolns;
setboxes(boxes);

if (showsolns=="") 
{
document.getElementById("results").innerHTML="Based on the answers you provided there is no requirement for a specified business solution.";
}

var sol1='Direct marketing consultancy';
var sol2='Online conferencing technologies';
var sol3='Online surveys';
var sol4='Interactive messages';
var sol5='Training needs analysis';
var sol6='';

var body1='<li>Increase returns on your direct marketing investment</li><li>Produce high quality, high return business prospects</li><li>Increase your sales opportunities overnight</li>'
var body2='<li>Communicate across your business easier, faster</li><li>Create high-impact training experiences and client presentations</li><li>Reduce your travel requirements through online presentations</li>';
var body3='<li>Create online surveys quickly and easily</li><li>Access survey results in real-time</li><li>Produce quantitative research without the time consuming data crunching</li>';
var body4='<li>Send instant online video messages anywhere to anyone</li><li>Broadcast messages with a cutting edge technology</li><li>Create a unique, customised message that breaks through the clutter</li>';
var body5='<li>Enhance the skills, performance and productivity of your staff</li><li>Pin-point where learning gaps exist</li><li>Define and deliver learning outcomes that are appropriate to each individual</li>';
var body6='';

var href1='../BUSSOLUTIONS/directmarketing.aspx';
var href2='../BUSSOLUTIONS/onlinecommunication.aspx';
var href3='../BUSSOLUTIONS/onlinesurveys.aspx';
var href4='../BUSSOLUTIONS/interactivemessaging.aspx';
var href5='../BUSSOLUTIONS/trainingneeds.aspx';
var href6='';

var col_array=showsolns.split("~");
var length=col_array.length;
	for (var i=0;i<length;i++) 
	{
	switch(col_array[i])
		{
		case '1':
		document.getElementById('heading'+(i+1)).innerHTML=sol1;		
		document.getElementById('body'+(i+1)).innerHTML=body1;
		document.getElementById('ref'+(i+1)).setAttribute('href',href1);
		break;
		case '2':
		document.getElementById('heading'+(i+1)).innerHTML=sol2;
		document.getElementById('body'+(i+1)).innerHTML=body2;
		document.getElementById('ref'+(i+1)).setAttribute('href',href2);
		break;
		case '3':
		document.getElementById('heading'+(i+1)).innerHTML=sol3;
		document.getElementById('body'+(i+1)).innerHTML=body3;
		document.getElementById('ref'+(i+1)).setAttribute('href',href3);
		break;
		case '4':
		document.getElementById('heading'+(i+1)).innerHTML=sol4;
		document.getElementById('body'+(i+1)).innerHTML=body4;
		document.getElementById('ref'+(i+1)).setAttribute('href',href4);
		break;
		case '5':
		document.getElementById('heading'+(i+1)).innerHTML=sol5;
		document.getElementById('body'+(i+1)).innerHTML=body5;
		document.getElementById('ref'+(i+1)).setAttribute('href',href5);
		break;
		case '6':
		document.getElementById('heading'+(i+1)).innerHTML=sol6;
		document.getElementById('body'+(i+1)).innerHTML=body6;
		document.getElementById('ref'+(i+1)).setAttribute('href',href6);
		break;
		}
	}	
}
function engage6()
{
if ((Validate('Q2')) && (Validate('Q3')) && (Validate('Q4')) && (Validate('Q5')) && (Validate('Q6')))
{
	var solnList='1~2~3';
	if (getSelectedRadio(document.Form1.Q2)==1) {solnList=solnList.replace('~2','')}
	//send results via qstring
	if (Left(solnList,1)=='~') 
	{		
		var length=solnList.length;		
		solnList=Right(solnList,length-1);		
	}
	window.location = '../engage/engae6soln.aspx?soln='+solnList;
}
}


function engage6sol(showsolns)
{
var boxes=showsolns;
setboxes(boxes);

if (showsolns=="") 
{
document.getElementById("results").innerHTML="Based on the answers you provided there is no requirement for a specified business solution.";
}

var sol1='Flexible staffing';
var sol2='Industrial labour hire';
var sol3='Online contractor management';
var sol4='';
var sol5='';
var sol6='';

var body1='<li>Reduce unnecessary labour costs</li><li>Balance your workforce with your workload</li><li>Avoid the dilemma of skills shortages</li>';
var body2='<li>Ramp up your industrial labour quickly to meet workload demands</li><li>Prevent overtime and backlogs in your operation</li><li>Meet the demands of busy work periods</li>';
var body3='<li>Order staff quickly and efficiently online and reduce administration time</li><li>Enhance visability to costs via extensive online reporting</li><li>Reduce timesheet and invoice errors</li>';
var body4='';
var body5='';
var body6='';

var href1='../BUSSOLUTIONS/flexiblestaffing.aspx';
var href2='../BUSSOLUTIONS/industrialstaffing.aspx';
var href3='../BUSSOLUTIONS/onlinecontractormanagement.aspx';
var href4='';
var href5='';
var href6='';

var col_array=showsolns.split("~");
var length=col_array.length;
	for (var i=0;i<length;i++) 
	{
	switch(col_array[i])
		{
		case '1':
		document.getElementById('heading'+(i+1)).innerHTML=sol1;		
		document.getElementById('body'+(i+1)).innerHTML=body1;
		document.getElementById('ref'+(i+1)).setAttribute('href',href1);
		break;
		case '2':
		document.getElementById('heading'+(i+1)).innerHTML=sol2;
		document.getElementById('body'+(i+1)).innerHTML=body2;
		document.getElementById('ref'+(i+1)).setAttribute('href',href2);
		break;
		case '3':
		document.getElementById('heading'+(i+1)).innerHTML=sol3;
		document.getElementById('body'+(i+1)).innerHTML=body3;
		document.getElementById('ref'+(i+1)).setAttribute('href',href3);
		break;
		case '4':
		document.getElementById('heading'+(i+1)).innerHTML=sol4;
		document.getElementById('body'+(i+1)).innerHTML=body4;
		document.getElementById('ref'+(i+1)).setAttribute('href',href4);
		break;
		case '5':
		document.getElementById('heading'+(i+1)).innerHTML=sol5;
		document.getElementById('body'+(i+1)).innerHTML=body5;
		document.getElementById('ref'+(i+1)).setAttribute('href',href5);
		break;
		case '6':
		document.getElementById('heading'+(i+1)).innerHTML=sol6;
		document.getElementById('body'+(i+1)).innerHTML=body6;
		document.getElementById('ref'+(i+1)).setAttribute('href',href6);
		break;
		}
	}	
}

