if (google.loader.ClientLocation != null) {
document.write(google.loader.ClientLocation.longitude);
} else {
document.write('Not Detected');
}