	function isEmailValid(str) {
		
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
			//alert("false")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
			//alert("false")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
			//alert("false")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
			//alert("false")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
			//alert("false")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
			//alert("false")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
			
		    return false
		 }
 		 return true					
	}
	
	
	/*-----------------------------------------------------------
		STRIPS NON NUMERIC CHARACTERS FROM STRING
	=============================================================*/	
	function stripAlphaChars(pstrSource) 
	{ 
		var m_strOut = new String(pstrSource); 
		m_strOut = m_strOut.replace(/[^0-9]/g, ''); 

		return m_strOut; 
	}
	
	
	/*-----------------------------------------------------------
		ADJUSTS RADIUS OF SEARCH
	=============================================================*/	
	
	function reSearch(theForm){
		document.searchForm.radius.options[theForm.adjustRadius.selectedIndex].selected = true
		getLatLong(document.searchForm.startingAddress.value, document.searchForm)
		
		return false
	}
