+ var mapSearchStmts = [
+ '#street',
+ ', ',
+ '#zipcode',
+ ' ',
+ '#city',
+ ', ',
+ '#country'
+ ];
+
+ this.showMapWidget = function(prefix, widgetWrapper) {
+ var result = {
+ };
+
+ $(function(){
+
+ widgetWrapper = $(widgetWrapper);
+
+ var mapSearchElements = [];
+ for(var i in mapSearchStmts) {
+ var stmt = mapSearchStmts[i];
+ if( stmt.charAt(0) == '#' ) {
+ var elem = $('#'+ prefix + stmt.substring(1));
+ if( elem )
+ mapSearchElements.push(elem);
+ }
+ }
+
+ var isNotEmpty = function() {
+ for(var i in mapSearchElements)
+ if( mapSearchElements[i].val() == '' )
+ return false;
+ return true;
+ };