/************************************************************************************

Form Handling Scripts.
 
Version 0.alpha
Assembled from various scripts: 23 July 2007


-----------------------------------------------------------------------------------------------------------------------------


************************************************************************************/

/*
  -------------------------------------------------------------------------
			MAILTO
			Version 1.0
	Created: 2007_07_05 provided by Redmon Group Inc.

	When mailto is required in web page, add this script block to the page
	For multiple mailto links you will still add this code to the page ONE TIME
	This function is to be used only when a mailto link is required
	we can add subject to this if needed

	Then use the following example syntax to use this funciton
	<a onclick="mailHelper('countyboard','arlingtonva.us'); return false;" href="#">Email the county board</a>
	
    -------------------------------------------------------------------------  
*/

function mailHelper(to,dom){

	if (dom == 'arlingtonva.us')
	{
		window.location = 'http://www.arlingtonva.us/Scripts/feedbackform.aspx?to=' + to + '&dom=' + dom;
	}
	else {
		window.location.href='mailto:' + to + '@' + dom;
	}

}




/************************************************************************************
Launch External Browser
 
Version 1.0
Open new browser for links external to the Arlington domain

************************************************************************************/

function Start(page) {
	OpenWin=this.open(page,"CtrlWindow","toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,width=500,height=300");
	OpenWin.focus()
}