﻿<!--
function Additional_Questions()
{
	booksCheckbox = document.getElementById('PubGuideRequestContainer1_ctl00_PreviouslyPublished_2');
	if(booksCheckbox.checked)
	{
		document.getElementById('PubGuideRequestContainer1_ctl00_BooksPublishedQuantity').style.display = 'block';
		document.getElementById('PubGuideRequestContainer1_ctl00_PublishingMethod').style.display = 'block';
		document.getElementById('PubGuideRequestContainer1_ctl00_cbxPublishingMethod').style.display = 'block';
		document.getElementById('PubGuideRequestContainer1_ctl00_CopiesSold').style.display = 'block';
		document.getElementById('PubGuideRequestContainer1_ctl00_rblCopiesSold').style.display = 'block';
	}
	else
	{
		document.getElementById('PubGuideRequestContainer1_ctl00_BooksPublishedQuantity').style.display = 'none';
		document.getElementById('PubGuideRequestContainer1_ctl00_PublishingMethod').style.display = 'none';
		document.getElementById('PubGuideRequestContainer1_ctl00_cbxPublishingMethod').style.display = 'none';
		document.getElementById('PubGuideRequestContainer1_ctl00_CopiesSold').style.display = 'none';
		document.getElementById('PubGuideRequestContainer1_ctl00_rblCopiesSold').style.display = 'none';
	}

}

function Additional_Questions2()
{
	booksCheckbox = document.getElementById('LPFormController1_ctl00_PreviouslyPublished_2');
	if(booksCheckbox.checked)
	{
		document.getElementById('LPFormController1_ctl00_BooksPublishedQuantity').style.display = 'block';
		document.getElementById('LPFormController1_ctl00_PublishingMethod').style.display = 'block';
		document.getElementById('LPFormController1_ctl00_cbxPublishingMethod').style.display = 'block';
		document.getElementById('LPFormController1_ctl00_CopiesSold').style.display = 'block';
		document.getElementById('LPFormController1_ctl00_rblCopiesSold').style.display = 'block';
	}
	else
	{
		document.getElementById('LPFormController1_ctl00_BooksPublishedQuantity').style.display = 'none';
		document.getElementById('LPFormController1_ctl00_PublishingMethod').style.display = 'none';
		document.getElementById('LPFormController1_ctl00_cbxPublishingMethod').style.display = 'none';
		document.getElementById('LPFormController1_ctl00_CopiesSold').style.display = 'none';
		document.getElementById('LPFormController1_ctl00_rblCopiesSold').style.display = 'none';
	}
}

//*******************************************************************************************
// This version support the change from a RadioButton list to a DropDownList for CopiesSold
//*******************************************************************************************
function Additional_Questions3()
{
	booksCheckbox = document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_PreviouslyPublished_2');

	if(booksCheckbox.checked)
	{
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_BooksPublishedQuantity').style.display = 'block';
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_PublishingMethod').style.display = 'block';
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_cbxPublishingMethod').style.display = 'block';
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_CopiesSold').style.display = 'block';
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_ddlCopiesSold').style.display = 'block';
	}
	else
	{
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_BooksPublishedQuantity').style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_PublishingMethod').style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_cbxPublishingMethod').style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_CopiesSold').style.display = 'none';
		document.getElementById('ctl00_ContentPlaceHolder2_LPFormController1_ctl00_ddlCopiesSold').style.display = 'none';
	}
}


function Clear_List(toClear)
{
	listToClear = document.getElementById(toClear).getElementsByTagName("input");
	for(i = 0; i < listToClear.length; i++)
	{
		listToClear[i].checked = false;
	}
}
//-->


