document.write("<div class='top_indx'>");
document.write("<div class='topt'><a href='http://www.ydplan.com'>HOME</a> | <a href='contact.php'>CONTACT</a></div>");
document.write("<div class='topb'>");
document.write("<div class='topb_r'>站内搜索</div>");
document.write("<div class='topb_m'><a href='#' onclick='selval()'><img src='images/search_pic.jpg' alt='' /></a></div>");
document.write("<div class='topb_l'><select name='seltype' id='seltype'>");
document.write("<option value='1'>关于意道</option>");
document.write("<option value='2'>意道人</option>");
document.write("<option value='3'>意道动态</option>");
document.write("<option value='4' selected='selected'>意道案例</option>");
document.write("<option value='5'>意道视野</option>");
document.write("<option value='6'>客户通道</option>");
document.write("</select>&nbsp;<input id='mysel' onkeydown='enterDown()' value='关键字' onclick='clickme()' name='mysel' type='text' /></div>");
document.write("</div>");
document.write("<div id='apDiv1'></div>");
document.write("</div>");
document.getElementById('mysel').focus();
function selval()
{
	var val = document.getElementById('mysel').value;
	var sval = encodeURI(val);
	//alert(sval);
	var selty= document.getElementById('seltype').value;
	location.href="search.php?selty="+selty+"&s="+sval;
}
function enterDown(){
if(event.keyCode==13){
	selval();
	}	
}


function clickme(){
	
	var myval = document.getElementById('mysel');
	//alert(myval.value);
	if(myval.value == '关键字'){
		myval.value = "";
		}
}
