var noClientAdsenseContentDisplayed = false;

function PAChange(PAID)
{
	if (!isNaN(parseInt(PAID)))
	{
		var tempStr = eval('PAAlert' + PAID);
		if (tempStr.length != 0) alert(tempStr);
		noClientAdsenseContentDisplayed = true;
	}
}

function citySelect(stateControl)
{	
	if (noClientAdsenseContentDisplayed)
		updateForm()
	else
	{
		var theForm = stateControl.form;
		theForm.call.value = 'iframe';
		theForm.func.value = 'getCities';
		theForm.cityId.options.length = 0;
		theForm.target = 'commFrame';
		
//		theForm.call.value = 'main';
//		theForm.target = '_self';
	
		theForm.submit();
	}
}

function formSelect(formElement)
{
	if (noClientAdsenseContentDisplayed)
		updateForm()
	else
	{
		var theForm = formElement.form;
		theForm.call.value = 'iframe';
		theForm.func.value = 'checkForm';
		theForm.target = 'commFrame';
		
//		theForm.call.value = 'main';
//		theForm.target = '_self';
	
		theForm.submit();
	}
}

function updateForm()
{
	var theForm = document.frmInquiry;
	theForm.call.value = 'main';
	theForm.target = '_self';
	theForm.submit();
}

function getCityControl()
{
	return document.frmInquiry.cityId;
}

function pageInit()
{
	if (citySelectExists && document.frmInquiry.cityId.options.length < 2)
		citySelect(document.frmInquiry.cityId);
}

function changeBox(cbox)
{
	var box = document.frmInquiry[cbox];
	box.checked = !box.checked;
}

function changeRadio(rName, rValue, rDescriptionOptional)
{
	var theRadControl = document.frmInquiry[rName];
	for(var i = 0; i < theRadControl.length; i++)
	{
		if (theRadControl[i].value == rValue)
		{
			theRadControl[i].checked = true;
			if (rName == 'pAId')
				recordPracticeAreaSelection(rDescriptionOptional);
		}
	}
}

<!-- Begin
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {

var url = location.href;
var title = document.title;

document.write('<A style="color : #000000;" HREF="javascript:window.ext');
document.write('ernal.AddFavorite(url,title);" ');
document.write('onMouseOver=" window.status=');
document.write("'Add our site to your favorites!'; return true ");
document.write('"onMouseOut=" window.status=');
document.write("' '; return true ");
document.write('">Add our site to your favorites!</a>');
}
else {
var msg = "Don't forget to bookmark us!";
if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
document.write(msg);
}

// End -->


