/**
@ author fulin
@ 2009-01-07
*/
/**
function: return short style of elm 
*
function $(obj){
return document.getElementById(obj);
}
**
fuction : check version of user browser
*/
function ie_nick()
{
	var browser = navigator.appVersion;
	if(browser.indexOf("MSIE") >= 1)
	{
		return true;
	}
	else
	{
		return false;
	}
}

//ǩл
function SwitchElm(s_id,max,sel,k){ 
	for(i=1;i<=max;i++)
	{
		document.getElementById(s_id +'_'+ i).style.display = 'none';	
		if(k!=1){
		    document.getElementById(s_id + '_'+ i + '_a').className = 'unsel';
		}
	}
	document.getElementById(s_id +'_'+ sel).style.display = '';
	if(k!=1){
	  document.getElementById(s_id +'_'+sel + '_a').className = 'sel';
	}
}

