function IsNumeric(strString, decimals)
   //  check for valid numeric strings	
   {
	var strValidChars = "0123456789";
	var strChar;
	var blnResult = true;

	if (decimals)
		strValidChars = strValidChars + ".,";

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }
   
function ValidateEmail(origin)
{
    // Email adress regular expression
    myRE = new RegExp(/^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,3}$/);

    results = myRE.exec(origin); 
    
    return (results!=null);
}

function HighlightCurrentMenu(lnkID)
{
    var lnk = document.getElementById(lnkID);
    lnk.className = "MenuLink yellowText";
}

function GenerateGMAP()
{
    if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(pos1, pos2), 14);
		
		var icon = new GIcon();
	    icon.image = "Images/marker.png";
	    icon.iconSize=new GSize(53,32); 
	    icon.iconAnchor=new GPoint(19,26);
		
        // Set map type
        map.setMapType(G_HYBRID_MAP);
        //map.setMapType(G_NORMAL_MAP);
		
		//map.addControl(new GMapKitMapControls3d());
        map.addControl(new GSmallMapControl());				 
        map.addControl(new GMapTypeControl());		
	
	    var opts = new Object();
	    opts.icon = icon;
		opts.title = "CAPS";			
        var marker = new GMarker(new GLatLng(pos1, pos2),opts);
        map.addOverlay(marker);
    }
}