function concat(){
	var whole_number = document.getElementById("areacode_req").value + document.getElementById("num1_req").value + document.getElementById("num2_req").value;
    document.getElementById("register").value = whole_number;
}

function Scroll(phone_id){
	phone_id = phone_id.substr(7);
	document.getElementById("num2_req").value = phone_id;
}

function drawCircle(center, radius, nodes, liColor, liWidth, liOpa, fillColor, fillOpa){
	var latConv = center.distanceFrom(new GLatLng(center.lat()+0.1, center.lng()))/100;
	var lngConv = center.distanceFrom(new GLatLng(center.lat(), center.lng()+0.1))/100;
	var points = [];
	var step = parseInt(360/nodes)||10;
	for(var i=0; i<=360; i+=step) {
		var pint = new GLatLng(center.lat() + (radius/latConv * Math.cos(i * Math.PI/180)), center.lng() + (radius/lngConv * Math.sin(i * Math.PI/180)));
		points.push(pint);
		bounds.extend(pint);
	}
	points.push(points[0]);
	fillColor = fillColor||liColor||"#0055ff";
	liWidth = liWidth||2;
	var poly = new GPolygon(points,liColor,liWidth,liOpa,fillColor,fillOpa); map.addOverlay(poly);
}
function fit(){
	map.panTo(bounds.getCenter());
	map.setZoom(map.getBoundsZoomLevel(bounds));
} 


function searchx(){
	location.href='/directory/search/'+document.getElementById('register').value;
	return false;
}

function abRedirect(){
	rand=Math.random();
	if(rand>0.5){
		location.href='/directory/search/'+document.getElementById('register').value;
		return false;
	}
}
