


function CallWidgets(v_item_id,v_category_id,v_store_db,v_sci_flag,v_gallery_flag,v_dealer_locator_flag) 
{
     var item_id,category_id,store_db,specs_flag,op_manuals_flag,gallery_flag,dealer_locator_flag;
        item_id = v_item_id;
        category_id =v_category_id
        store_db = v_store_db;
        sci_flag = v_sci_flag;
        gallery_flag =v_gallery_flag;
        dealer_locator_flag =v_dealer_locator_flag;
        
       // alert("Specs Flag:" + specs_flag)
       // alert("gallery_flag:" + gallery_flag)
        //alert("item_id:" + item_id)
        //alert("store_db:" + store_db)
        // alert("dealer_locator_flag:" + dealer_locator_flag)
  		//alert("sci_flag=" + sci_flag + "<--");      
  
    if(gallery_flag == "y") 
     {
        GalleryWidget(item_id,store_db) ;
     }
     if(dealer_locator_flag == "y") 
     {
        DealerLocatorWidget(item_id,category_id,store_db) ;
     }
     if(sci_flag == "y") 
     {
        //SpecsWidget(item_id,store_db);
        //ManualsWidget(item_id,store_db);
        //ItemNumberWidget(item_id,store_db) ;
        //cinc/common/supporting_customer_information.asp
     }
  
    
 
   
}	



/*********** This function display the supportingCustomerInfoWidget including Item numbers.  ****************************/
function ItemNumberWidget(v_item_id,v_store_db) 
{
     var item_id,store_db;
    item_id = v_item_id;
    store_db = v_store_db;
   // alert("Item ID should not be empty."+ store_db + "model"+ item_id);
    
   if(item_id == "") 
    {
        //alert("Item ID should not be empty.");
		return false;
    }
   else if(store_db == "") 
    {
        //alert("Store DB should not be empty.");
		return false;
    }
    shElement('specbox_item_number') ;
    useAjax('/cinc/common/item_numbers/widget_item_numbers.asp?model=' + item_id  + '&store_db='+ store_db ,'specbox_item_number');

}	
	
/**************************************/	
/*********** This function display the Specs.  ****************************/
function SpecsWidget(v_item_id,v_store_db) 
{
	//alert("in SpecsWidget function!");
   var item_id,store_db,fileToAjaxWindow; //,shElement;
    item_id = v_item_id;
    store_db = v_store_db;
    
   if(item_id == "") 
    {
     //alert("Item ID should not be empty.");
			return false;
    }
   else if(store_db == "") 
    {
        //alert("Store DB should not be empty.");
		return false;
    }
	
    shElement('specbox_specs') ;
	
	fileToAjaxWindow = '/cinc/common/specs/specs.asp?model=' + item_id  + '&store_db='+ store_db;
	
	//alert("file=" + fileToAjaxWindow + "<--");
	
    useAjax(fileToAjaxWindow,'specbox_specs');
    
}	
/**************************************/	
/*********** This function display the  Manuals.  ****************************/
function ManualsWidget(v_item_id,v_store_db) 
{
    var item_id,store_db;
    item_id = v_item_id;
    store_db = v_store_db;
    
   if(item_id == "") 
    {
        //alert("Item ID should not be empty.");
		return false;
    }
   else if(store_db == "") 
    {
         //alert("Store DB should not be empty.");
		return false;
    }
    shElement('specbox_operating_manual') ;
    useAjax('/cinc/common/operating_manuals/manuals.asp?model=' + item_id  + '&store_db='+ store_db ,'specbox_operating_manual');

}	
/**************************************/	
/*********** This function display the DealerLocator.  ****************************/
function DealerLocatorWidget(v_item_id,v_category_id,v_store_db) 
{
    var item_id,store_db;
    item_id = v_item_id;
    category_id =v_category_id;
    store_db = v_store_db;
   
   if(item_id == "") 
    {
        //alert("Item ID should not be empty.");
		return false;
    }
   else if(store_db == "") 
    {
        //alert("Store DB should not be empty.");
		return false;
    }
    useAjax('/cinc/common/locator/locator_widget.asp?model=' + item_id  +'&cat='+ category_id + '&store_db='+ store_db ,'dealerLocatorWidget');
    //useAjax('/outlet_store/store_locator.aspx?model=' + item_id  +'&cat='+ category_id + '&store_db='+ store_db ,'dealerLocatorWidget');
  
}	
/**************************************/	
/*********** This function display the Galley.  ****************************/
function GalleryWidget(v_item_id,v_store_db) 
{
    var item_id,store_db;
    item_id = v_item_id;
    store_db = v_store_db;
     //alert("item_id:ZZZZZZZZ" + item_id)
       // alert("store_db:CCCCCCCCCCC" + store_db)
   if(item_id == "") 
    {
        //alert("Item ID should not be empty.");
		return false;
    }
   else if(store_db == "") 
    {
        //alert("Store DB should not be empty.");
		return false;
    }
    useAjax('/cinc/common/gallery/widget_gallery.asp?model=' + item_id  + '&store_db='+ store_db ,'galleryWidget');
 
}	

/**************************************/	
	
	
	