window.onload=function(){
var inpt=document.getElementById('inpt').onclick=Fclick;
document.getElementById('sel').onclick=Fclick;
}
function Fclick(){
var sel = document.getElementById('sel');
var inpt=document.getElementById('inpt');
inpt.onblur=function(){
this.value=this.defaultValue;
}
if(this==inpt){
if(this.disabled==true)
this.disabled=false;
this.value='';
sel.disabled=true;
}
if(this==sel){
if(this.disabled==true)
this.disabled=false;
inpt.value='';
}
}