function col_home(showType){
	var collect_id = $('.collect');
	var content = $('.con');
	$('.all_win').height(document.body.scrollHeight);

	//1.未登录 跳转
	//2.未收藏
	if(showType == 1){	  
	  content.html('已加入收藏夹');
	  $(".over_text").show();
	  collect_id.show();
	  $('.all_win').show();
	}

}


	function SNColection(langId,storeId,catalogId,catEntryId,buttonId){

	   //toPageNoBlock('InterestItemAdd?langId=' + langId + '&storeId=' + storeId + '&catEntryId_1=' + catEntryId + '&URL=GiftProductDescView?langId=' + langId + '&catalogId=' + catalogId + '&catentryId=' + catEntryId + '&storeId=' + storeId,'');
       
       document.getElementById(buttonId).onclick = Function("void(0)");
      
       col_home(1);
       
      var url = 'InterestItemAdd?langId=' + langId + '&storeId=' + storeId + '&catEntryId_1=' + catEntryId + '&URL=GiftProductDescView?langId=' + langId + '&catalogId=' + catalogId + '&catentryId=' + catEntryId + '&storeId=' + storeId;
       
       toPageNoBlock(url,'');

	}
	
	
	function showCardInfoDiv(){
	   	$('.all_win').height(document.body.scrollHeight);
		$('.all_win').show();
		$("#inner2").hide();
	
		var collect_id = $('.collect');
		var content = $('.con');
		content.html('<a href="SNCardInfoModify?dealFlg=0&storeId=10052&catalogId=10051">&gt;&gt;&nbsp;补全会员卡信息</a>');
		collect_id.show();
   }
   
   	function SNPointExchange(itemID,salesOrg,partNumber,depot,vendor){
	
	    var url = 'SNCheckUserCardInfoCmd';
	   	
		$.ajax({
		  url:url,
		  cache: false,
		  async: false,
		  success: function(html){
		    if(html == "1")
		    {
                document.forms["reflashForm"].catEntryId_1.value = itemID;
			    document.forms["reflashForm"].saleOrg.value = salesOrg;
			    document.forms["reflashForm"].partNumber.value = partNumber;
			    document.forms["reflashForm"].dept.value = depot;
			    document.forms["reflashForm"].vendor.value = vendor;
			    document.forms["reflashForm"].errorView.value = 'GiftProductDescView?catentryId=' + itemID + '&storeId=10554&catalogId=10653';
			    document.forms["reflashForm"].submit();
			    
		    }else{
		      showCardInfoDiv();
		      return false;
		    }
		   }
		});
	}
	
  function SNPointExchangeForDescPage(){
	   var url = 'SNCheckUserCardInfoCmd';
	   	
		$.ajax({
		  url:url,
		  cache: false,
		  async: false,
		  success: function(html){
		    if(html == "1")
		    {
              document.getElementById('reflashForm').submit();
		    }else{
		      showCardInfoDiv();
		      return false;
		    }
		   }
		});
	}

	
	
	
