function selectType(which)
{
	var usertype=which.value;
	set_cookie2(usertype);
	
}
function initUserType()
{
	var usertype=get_cookie2();
	for(var i=0;i<document.all["fl_sf"].options.length;i++)
	{
		if(document.all["fl_sf"].options[i].value==usertype)
		{
			document.all["fl_sf"].selectedIndex=i;
			return;
		}
	}
}
function get_cookie2()
{
  var cookiehead="SdrcUserType=";
  var cookiestring=new String(document.cookie);
  var urls;
  var xurls;
  var xurl=null;
  var i=cookiestring.indexOf(cookiehead);
  if(i!=-1){
				
	 xurls=cookiestring.substring(i+cookiehead.length);
	
	 urls=xurls.split(";");
	 if(urls.length>0)
		  xurl=urls[0];
	 else
		 xurl=xurls;
	 }
		

  return xurl;
  
  
}

function set_cookie2 (value)
{
	var expDays =100;
	var exp = new Date();
	exp.setTime(exp.getTime() + (expDays*24*60*60*1000));//1tian 
	document.cookie="SdrcUserType="+value+";expires=" + exp.toGMTString() +";path=/";
}

