var currentUserId='-101';
var currentUserName='';
var userLoggedIn='';
var newMessages=''?'':'0';
var newFriends=''?'':'0';
var nickName='-101';
var vip_Xuanku='';
var vip_Superboke='';
var domain='.maidee.com';
var www_domain='www.maidee.com';
var style_domain='style.maidee.com';
var js_domain='js.maidee.com';
var my_domain='my.maidee.com';
var commune_domain='commune.maidee.com';
var dipan_domain='dipan.maidee.com';
var adm_domain='adm.maidee.com';
var pay_domain='pay.maidee.com';
var rss_domain='rss.maidee.com';
var im_domain='im.maidee.com';
var jsphp_domain='jsphp.maidee.com';
var currentUrl=window.location.href;
if(currentUrl.indexOf('register')>-1)
currentUrl='http://my.maidee.com';
currentUrl=escape(currentUrl);
document.writeln("");
document.writeln("
快捷麦串(0) |");
document.writeln("意见反馈 |");
document.writeln("帮助");
var img1 = new Image().src = "http://"+style_domain+"/snake/index/login_r_bg1.jpg";
var img2 = new Image().src = "http://"+style_domain+"/snake/index/msgbox_right_bg2.jpg";
var img3 = new Image().src = "http://"+style_domain+"/snake/index/msgbox_right_bg.jpg";
var img4 = new Image().src = "http://"+style_domain+"/snake/index/msgbox_right_close.jpg";
var img5 = new Image().src = "http://"+style_domain+"/snake/index/vip_ts1_bg.jpg";
var img6 = new Image().src = "http://"+style_domain+"/snake/index/vip_ts2_bg.jpg";
var img7 = new Image().src = "http://"+style_domain+"/snake/index/msgbox_top.jpg";
var img8 = new Image().src = "http://"+style_domain+"/snake/index/msgbox_center.jpg";
var img9 = new Image().src = "http://"+style_domain+"/snake/index/msgbox_bottom.jpg";
var img10 = new Image().src = "http://"+style_domain+"/snake/index/msgbox_close.jpg";
var img11 = new Image().src = "http://"+style_domain+"/snake/index/close.jpg";
var img12 = new Image().src = "http://"+style_domain+"/snake/index/vip_shengji.jpg";
var img13 = new Image().src = "http://"+style_domain+"/snake/my/ht_xx_mm_tijiao.jpg";
var img14 = new Image().src = "http://"+style_domain+"/snake/index/login_denglu.jpg";
var img15 = new Image().src = "http://"+style_domain+"/snake/my/ht_xx_mm_chexiao.jpg";
function head_dosearch()
{
if(fromID("kw").value == "") {
show_tips("请输入搜索关键字.", "error");
return false;
}
var pattern = /^[a-zA-Z0-9]$/;
var arr = new Array( "an", "are", "as", "at","be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with","。" ,".","and");
if ( pattern.test(fromID("kw").value) )
{
show_tips ('您输入的关键词过于简单!', 'error');
return false;
}
else if ( in_array(fromID("kw").value,arr) )
{
show_tips ('您输入的关键词过于简单!', 'error');
return false;
}
var se=document.getElementById('nav_search_target');
var f=document.head_searchform;
if(se.selectedIndex==0)
f.action='http://'+www_domain+'/video/search.php';
else if(se.selectedIndex==1)
f.action='http://'+www_domain+'/audio/search.php';
else if(se.selectedIndex==2)
f.action='http://'+www_domain+'/person/';
document.head_searchform.submit();
}
function in_array(needle,arr)
{
var type = typeof needle;
if(type == 'string' || type =='number')
{
for(var i in arr)
{
if ( arr[i] == needle )
{
return true;
}
}
}
return false;
}