// Clear the Site Search Box 
function ClearInit(objName)
{
	if (objName.value == 'Search Site')
	{
		objName.value = '';
	}
}

// Initiate the Site Search Process
function SiteSearch(strPage, objName)
{
	window.location.href = strPage + '?Text=' + objName.value.toString();
}

// Bookmark Function
function BookmarkMe(strTitle, strUrl)
{
	if (document.all)
	{
		window.external.AddFavorite(strUrl, strTitle);
	}
	else if (window.sidebar)
	{
		window.sidebar.addPanel(strTitle, strUrl, "");
	}
}

// Open a New Window to Email a Contact
function EmailContact(contactID)
{
	var top = (screen.availHeight - 375) / 2;
	var left = (screen.availWidth - 450) / 2;
	var win = 'height=375,width=450,scrollbars=0,status=1,menubar=0,location=0,top=' + top + ',left=' + left ;
	window.open('/EmailContact.aspx?ContactID=' + contactID, '', win, '');
}

// Open a New Window to Email a URL to a Friend
function EmailFriend(pageID)
{
	var top = (screen.availHeight - 375) / 2;
	var left = (screen.availWidth - 450) / 2;
	var win = 'height=375,width=450,scrollbars=0,status=1,menubar=0,location=0,top=' + top + ',left=' + left ;
	window.open('/EmailPage.aspx?pageID=' + pageID, '', win, '');
}

// Set Area Height of a Div Tag
function SetAreaHeight(areaID)
{
//function deprecated for new requirements to have min-height of div tag.
	/*
	if(document.all)
	{
		//var area = document.getElementById(areaID);
		
		//area.style.height = "96%";
	}
	

	
	var iScreenHeight = window.screen.height;
	var iAvailHeight = window.screen.availHeight;
	var iAreaHeight = document.getElementById(areaID).offsetHeight;
	var iDifference = iAvailHeight - iAreaHeight;
	var iValue = 0;
	
	//alert('iAvailHeight = ' + iAvailHeight + ' + iAreaHeight = ' + iAreaHeight + ' + iDifference = ' + iDifference);
	//alert(iScreenHeight + ' - ' + iAvailHeight + ' + ' + iAreaHeight);
	
	if(iDifference <= 0)
	{
		iValue = iAreaHeight;
		//iValue = iDifference;
		document.getElementById(areaID).style.height = iValue;
	}
	else
	{
		//iValue = iAvailHeight + iDifference;
		//iValue = iDifference;
		iValue = (iAvailHeight / 2) + iAreaHeight;
		document.getElementById(areaID).style.height = iValue;	
	}
	*/
}