function getMap(container, lat, lng, zoom)
{
	if (GBrowserIsCompatible()) 
	{ 
    	var map = new GMap2(document.getElementById(container)); 		
		map.addControl(new GMapTypeControl()); 
		map.addControl(new GSmallMapControl()); 

		map.setCenter(new GLatLng(lat, lng), zoom);
			
		var oicon = new GIcon();
		oicon.image='http://www.wewentthere.com/graphics/cross.gif';
		oicon.iconSize= new GSize(19, 21);
		oicon.iconAnchor = new GPoint(9, 21);

		var setMarker=new GMarker(map.getCenter(), oicon);
		map.addOverlay(setMarker);							
	}	
}

function illegalString(s)
{
	var illegalChars = /\W/;

    return illegalChars.test(s); 
}

function getRequestObject()
{
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try
	{
		ajaxRequest = new XMLHttpRequest();
	} 
	catch (e)
	{
		//ie
		try
		{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e) 
		{
			try
			{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (e)
			{
				return false;
			}
		}
	}

	return ajaxRequest;
}