<!-- Hide from old browsers

// -------------------------------- Start demo selection box scripts -------------------

function setOptions(chosen) 
{
    var selbox = document.getElementById('ctl00$ContentPlaceHolder2$SpecifyList'); 
    selbox.options.length = 0;
	
    if (chosen == "") 
    {
        setVisibility('SpecifyTextRow', 'none');
        setVisibility('SpecifyListRow', 'none');
        selbox.options[selbox.options.length] = new Option('N/A','');
    }
	
    if (chosen == "Conference") 
    {
        setVisibility('SpecifyTextRow', 'none');
        setVisibility('SpecifyListRow', '');
        selbox.options[selbox.options.length] = new Option('Please Specify...','');
        selbox.options[selbox.options.length] = new Option('Law Society - Local','Law Society - Local');
        selbox.options[selbox.options.length] = new Option('Law Society - National','Law Society - National');
        selbox.options[selbox.options.length] = new Option('Legal IT Show','Legal IT Show');
        selbox.options[selbox.options.length] = new Option('Professional Conference','Professional Conference');
        selbox.options[selbox.options.length] = new Option('Other','Other');
    }
	
    if (chosen == "Estate Agent") 
    {
        setVisibility('SpecifyListRow', 'none');
        setVisibility('SpecifyTextRow', '');
        document.getElementById('ctl00$ContentPlaceHolder2$SpecifyText').value = '';
        document.getElementById('ctl00$ContentPlaceHolder2$SpecifyText').focus();
    }
	
    if (chosen == "Magazine Insert") 
    {
        setVisibility('SpecifyTextRow', 'none');
        setVisibility('SpecifyListRow', '');
        selbox.options[selbox.options.length] = new Option('Please Specify...','');
        selbox.options[selbox.options.length] = new Option('Solicitors Journal', 'Solicitors Journal');
        selbox.options[selbox.options.length] = new Option('The Lawyer', 'The Lawyer');
    }
	
    if (chosen == "Mailer") 
    {
        setVisibility('SpecifyTextRow', 'none');
        setVisibility('SpecifyListRow', '');
        selbox.options[selbox.options.length] = new Option('Please Specify...','');
        selbox.options[selbox.options.length] = new Option('\'10 Reasons\' Mailer','\'10 Reasons\' Mailer');
        selbox.options[selbox.options.length] = new Option('\'£2500\' Mailer','\'2500\' Mailer');
        selbox.options[selbox.options.length] = new Option('\'Grow\' Mailer','\'Grow\' Mailer');
        selbox.options[selbox.options.length] = new Option('\'See it, Believe it\' Mailer','\'See it, Believe it\' Mailer');
    }
	
    if (chosen == "NLIS") 
    {
        setVisibility('SpecifyTextRow', 'none');
        setVisibility('SpecifyListRow', '');
        selbox.options[selbox.options.length] = new Option('Please Specify...','');
        selbox.options[selbox.options.length] = new Option('SearchFlow','SearchFlow');
        selbox.options[selbox.options.length] = new Option('TM Property','TM Property');
        selbox.options[selbox.options.length] = new Option('Transaction Online','Transaction Online');
        selbox.options[selbox.options.length] = new Option('Other','Other');
    }

    if (chosen == "OPSIS") 
    {
        setVisibility('SpecifyListRow', 'none');
        setVisibility('SpecifyTextRow', 'none');
    }
	
    if (chosen == "Press") 
    {
        setVisibility('SpecifyTextRow', 'none');
        setVisibility('SpecifyListRow', '');
        selbox.options[selbox.options.length] = new Option('Please Specify...','');
        selbox.options[selbox.options.length] = new Option('Financial Times','Financial Times');
        selbox.options[selbox.options.length] = new Option('Law Society Gazette','Law Society Gazette');
        selbox.options[selbox.options.length] = new Option('Legal IT','Legal IT');
        selbox.options[selbox.options.length] = new Option('Legal Technology Insider','Legal Technology Insider');
        selbox.options[selbox.options.length] = new Option('Solicitor\'s Journal','Solicitor\'s Journal');
        selbox.options[selbox.options.length] = new Option('The Daily Mail','The Daily Mail');
        selbox.options[selbox.options.length] = new Option('The Telegraph','The Telegraph');
        selbox.options[selbox.options.length] = new Option('The Times','The Times');
        selbox.options[selbox.options.length] = new Option('Other','Other');
    }
		
    if (chosen == "Solicitor") 
    {
        setVisibility('SpecifyListRow', 'none');
        setVisibility('SpecifyTextRow', '');
        document.getElementById('SpecifyText').value = '';
        document.getElementById('SpecifyText').focus();
    }
	
    if (chosen == "Web Search") 
    {
        setVisibility('SpecifyTextRow', 'none');
        setVisibility('SpecifyListRow', '');
        selbox.options[selbox.options.length] = new Option('Please Specify...','');
        selbox.options[selbox.options.length] = new Option('Ask Jeeves','Ask Jeeves');
        selbox.options[selbox.options.length] = new Option('Google','Google');
        selbox.options[selbox.options.length] = new Option('MSN','MSN');
        selbox.options[selbox.options.length] = new Option('Yahoo!','Yahoo!');
        selbox.options[selbox.options.length] = new Option('Other','Other');
    }
	
    if (chosen == "Website") 
    {
        setVisibility('SpecifyTextRow', 'none');
        setVisibility('SpecifyListRow', '');
        selbox.options[selbox.options.length] = new Option('Please Specify...','');
        selbox.options[selbox.options.length] = new Option('Land Registry','Land Registry');
        selbox.options[selbox.options.length] = new Option('Law Society','Law Society');
        selbox.options[selbox.options.length] = new Option('LSSA','LSSA');
        selbox.options[selbox.options.length] = new Option('SearchFlow','SearchFlow');
        selbox.options[selbox.options.length] = new Option('The CLC','The CLC');
        selbox.options[selbox.options.length] = new Option('TM Property','TM Property');
        selbox.options[selbox.options.length] = new Option('Transaction Online','Transaction Online');
        selbox.options[selbox.options.length] = new Option('Other','Other');
    }
}

function setVisibility(layer, status) 
{
    if (layer == "SpecifyListRow")
    {
        document.getElementById('SpecifyListRow').style.display=status; 
    }
	
    else if (layer == "SpecifyTextRow")
    {
        document.getElementById('SpecifyTextRow').style.display=status; 
    }
}

// -------------------------------- End demo selection box scripts -------------------

// end class -->
