/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



        var country ="India";
        var state = "All";
        var city = "All";
        var cat = "All";
        var subcat = "All";
        var age = "All";
        var marital = "All";
        var salary = "All";
        var education = "All";
        var wholereligion = "All-All-All";
        var cast = "All";
        var subcast = "All";
        var selectionflag = "2";

    YAHOO.example.init = function() {
    var tabView = new YAHOO.widget.TabView({id: 'demo'});

    YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab({
        label: 'Home',
        dataSrc: 'home.jsp',
        active: true
    }), tabView);

    YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab({
        label: 'Matrimonial',
        dataSrc: 'matrimonial.jsp',
        cacheData: false
    }), tabView);

    YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab({
        label: 'Personals',
        dataSrc: 'personals.jsp',
        cacheData: false
    }), tabView);

    YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab({
        label: 'For Sale',
        dataSrc: 'forsale.jsp',
        cacheData: false
    }), tabView);

    YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab({
        label: 'Real Estate',
        dataSrc: 'realestate.jsp',
        cacheData: false
    }), tabView);

    YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab({
        label: 'Automobile',
        dataSrc: 'automobile.jsp',
        cacheData: false
    }), tabView);

    YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab({
        label: 'Services',
        dataSrc: 'services.jsp',
        cacheData: false
    }), tabView);

    YAHOO.plugin.Dispatcher.delegate (new YAHOO.widget.Tab({
        label: 'Jobs',
        dataSrc: 'job.jsp',
        cacheData: false
    }),


      tabView,
      { // content configuration...
        relative:true  // the resources in the content (css/js) are relatives, and need path correction...
      }
    );

    YAHOO.util.Event.onContentReady('doc4', function() {
        tabView.appendTo('doc4');
    });

}();
