﻿// JScript 文件

function showsrc(imgid,s)
{
   document.getElementById(imgid).src=s;
}


function switch_tab_two(d,num,menu,obj)
{

    var index=parseInt(d);
    if(index < 0 && index > num-1)
    {
      index = 0;
    }
    
    for(var ti=0;ti<num;ti++)
    {
        if(index==ti){
            document.getElementById(obj+ti).style.display = "block";
            //document.getElementById(menu+ti).className = "currentarea";   
            
        }else{
            document.getElementById(obj+ti).style.display = "none";
            //document.getElementById(menu+ti).className = "";    
        }
    }
    
}
function checkUrl(u)
 {
 //alert(u);
 window.open(u,'ifname1');
 }
