function drawpoint(x,y,color)
{
 var features = new Array(x.length);
alert(x[0]);
// var ponit1=new OpenLayers.Geometry.Point(46.1,38).transform(new OpenLayers.Projection("EPSG:4326");
            for (var i=0; i<features.length; i++) {
                features[i] = new OpenLayers.Feature.Vector(
                    new OpenLayers.Geometry.Point(x[i],y[i]).transform(new OpenLayers.Projection("EPSG:4326"), map
                        .getProjectionObject()), {
                        type: 5 + parseInt(5 * Math.random())
                    }
                );
}
            
            // allow testing of specific renderers via "?renderer=Canvas", etc
            var renderer = OpenLayers.Util.getParameters(window.location.href).renderer;
            renderer = (renderer) ? [renderer] : OpenLayers.Layer.Vector.prototype.renderers;
            
            // create the layer styleMap with a simple symbolizer template
            var layer1 = new OpenLayers.Layer.Vector('Points', {
                styleMap: new OpenLayers.StyleMap({
                    pointRadius: 4, // based on feature.attributes.type
                    fillColor: color
                }),
                renderers: renderer
            });
            layer1.addFeatures(features);

            // Strategy 2:  Style features based on something besides attributes.

            // create 50 random features in the southern hemisphere
   /*         var features = new Array(1);
            for (var i=0; i<features.length; i++) {
                features[i] = new OpenLayers.Feature.Vector(
                    new OpenLayers.Geometry.Point(
                        x, y
                    ), {
                        type: 5 + parseInt(5 * Math.random())
                    }
                );
            }
            // create the layer styleMap by giving the default style a context
            var colors = ["red", "green", "blue"];
            var context = {
                getColor: function(feature) {
                    var region = parseInt((feature.geometry.x + 180) / 120);
                    return colors[region];
                },
                getSize: function(feature) {
                    return feature.attributes["type"] / map.getResolution() * .703125;
                }
            };
            var template = {
                pointRadius: "${getSize}", // using context.getSize(feature)
                fillColor: "${getColor}" // using context.getColor(feature)
            };
            var style = new OpenLayers.Style(template, {context: context});
            var layer2 = new OpenLayers.Layer.Vector('Points', {
                styleMap: new OpenLayers.StyleMap(style),
                renderers: renderer
            });
            layer2.addFeatures(features);*/


            map.addLayers([layer1]);
        
}