﻿// JScript 文件
   
    function changeflash(objhid,obj,index)
    {
        try
        {
        var hidhtml = document.getElementById(objhid).value.split(","); 
        for(i=1;i<=hidhtml.length;i++)
        { 		   
            $('#divimg'+i).removeClass('cardsolistbgL');	 
        }
		$('#divimg'+index).addClass('cardsolistbg cardsolistbgL');
         
        $('#cardsimg').html("<img src='images/"+hidhtml[index-1]+"' />");
        }
        catch(err)
        {}
    }
    function chic(obj,tindex)
    {
        
        try
        {
            var hidhtml = document.getElementById('hidccs'+tindex).value.split(","); 
            for(i=0;i<hidhtml.length;i++)
            {  
                $('#divcc'+hidhtml[i]).removeClass('prosize_hig');
                $('#divcc'+hidhtml[i]).addClass('prosize');
            }
            obj.className='prosize_hig';	  
           
        }
        catch(err)
        {
             
        }
    }
    function chicys(objdiv,objhid)
    {
    try
    {        
        var hidhtml = document.getElementById(objhid).value.split(","); 
        var newdivhtml='';

        for(i=0;i<hidhtml.length;i++)
        {	
            newdivhtml +="<div id='divimg"+(i+1)+"' class='cardsolistbg cardsolistbgL'> <a onclick=\"changeflash('"+objhid+"',this,\'"+(i+1)+"\')\" href='javascript:void(0)'><P><img src='images/"+hidhtml[i]+"'  height='45px'/></P></a></div>";      
        }
        document.getElementById("divimages").innerHTML=newdivhtml;
        
      
        proinfo.Color =$(objdiv).attr("mugcolor");
        proinfo.PCID = $(objdiv).attr("pcid");
        
    
        for(i=1;i<=hidhtml.length;i++)
        { 
            if(i!=1)
            { 
                $('#divimg'+i)[0].className="cardsolistbg";
            }
        }
         $('#cardsimg').html("<img src='images/"+hidhtml[0]+"' />");
        
       }catch(err){}
    }
 
