//获取指定的兄弟类型节点
//currentObj:当前节点,type:类型,如p标签,input标签等,如果是p标签,则传'p',皆同理
function getOtherBro(currentObj,type) {
var a = [];
var p = currentObj.parentNode.children;
for ( var i =0,pl= p.length;i<pl;i++) {
if (p[i] !== currentObj&&p[i].nodeType==type) a.push(p[i]);
}
return a;
}