/***********************
Function used to initialize the values of the visibility of the html components on the ON-LOAD event the <body>.
This is mainly used to avoid possible issues with components showing when not supposed to (eg: when the back button
of the browser is pressed the components are rendered strangely.). Re-uses functions defined previosly in the first 
YA project.
***********************/

function initHeader(formname){
	if (formname=="frmHome")
	{
		if (document.frmHome.chkMyAddress != null) 
			HideStateCity(formname);
		else if (document.frmHome.chkMPMyAddress != null)
			MPHideStateCity(formname);
	}	
	else if (formname=="frmHomeGov")
	{
		if (document.frmHome.chkGovMyAddress != null) 
			HideStateCity(formname);
		else if (document.frmHome.chkGovMPMyAddress != null)
			MPHideStateCity(formname);
		
	}
	else if (formname=="frmBusinessSearchResult")
	{
		if(document.frmBusinessSearchResult.MainHeader1_chkMyAddress != null) 
			HideStateCity(formname);
		else if (document.frmBusinessSearchResult.MainHeader1_chkMPMyAddress != null)
			MPHideStateCity(formname);
	}
	else  if (formname=="frmBusinessSearchResultGov")
	{
		if(document.frmBusinessSearchResult.MainHeader1_chkGovMPMyAddress != null) 
			HideStateCity(formname);
		else if (document.frmBusinessSearchResult.MainHeader1_chkGovMPMyAddress != null)
			MPHideStateCity(formname);
	}
}
