function blurInputt(obj)
{
	if (obj.value == "")
	{
		obj.value = "请输入内容"
		obj.style.color='#999999'
		obj.outerHTML = obj.outerHTML
	}
	else	obj.setAttribute("name", obj.oName)
}function focusInputt(obj)
{
	if (obj.value == "请输入内容")	obj.value = ""
	obj.style.color = "#000000"
}
function nsearch()
{
if (document.getElementById("search_keywords").value=="请输入内容" || document.getElementById("search_keywords").value=="")
{
alert("请输入需要搜索的关键字");
return false;
}
if (GetRadioValue("search_type")=="bbs")
{
var win=window.open('','_blank');
win.location.href="http://bbs.jinku.com/search.php?searchid=57&orderby=lastpost&ascdesc=desc&searchsubmit=yes&srchtxt="+document.getElementById("search_keywords").value;
}
if (GetRadioValue("search_type")=="blog")
{
var win=window.open('','_blank');
win.location.href="http://blog.jinku.com/batch.search.php?authorsearch=true&all_out=all_out&type=&searchkey="+encodeURI(document.getElementById("search_keywords").value);
}
if (GetRadioValue("search_type")=="baike")
{
var win=window.open('','_blank');
win.location.href="http://baike.jinku.com/search.php?s=1&t=doc_title_upper&q="+encodeURI(document.getElementById("search_keywords").value);
}
if (GetRadioValue("search_type")=="news")
{
var win=window.open('','_blank');
win.location.href="http://www.jinku.com/plus/search.php?kwtype=0&select=titlekeyword&keyword="+encodeURI(document.getElementById("search_keywords").value);
}
if (GetRadioValue("search_type")=="product")
{
var win=window.open('','_blank');
win.location.href="http://product.jinku.com/product_search.php?listtype=rmb&cpmc="+encodeURI(document.getElementById("search_keywords").value);
}
}
function GetRadioValue(RadioName){
    var obj;   
    obj=document.getElementsByName(RadioName);
    if(obj!=null){
        var i;
        for(i=0;i<obj.length;i++){
            if(obj[i].checked){
                return obj[i].value;           
            }
        }
    }
    return null;
}
function blurInputt2(obj)
{
	if (obj.value == "")
	{
		obj.value = "欢迎评论..."
		obj.style.color='#999999'
		obj.outerHTML = obj.outerHTML
	}
	else	obj.setAttribute("name", obj.oName)
}function focusInputt2(obj)
{
	if (obj.value == "欢迎评论...")	obj.value = ""
	obj.style.color = "#000000"
}
