// JavaScript Document
//交友的JS脚本（屏蔽右键，状态栏提示，跳转窗口）

function click(e){
if(document.all){
if(event.button==2||event.button==3){
oncontextmenu='return false';
}}
if(document.layers){
if(e.which==3){
oncontextmenu='return false';
}}}
if(document.layers){
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")
//-------------------

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//---------------
function scroll(seed)
{
var m1 = "－欢 迎 光 临 军 同 交 友－" 
var m2 = "严 禁 黄 色 、反 动 的 言 论和 图 片"
var msg=m1+" "+m2; 
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
var cmd="scroll(" + seed + ")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
var cmd="scroll(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
} else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
var cmd="scroll(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scroll(100)",7);
}
}
}
timerONE=window.setTimeout('scroll(100)',50);
//----------------
function KBAddFavorite(theTit) {
// Copyright (c) 1998 by Kevin Bartz. All rights reserved. This site has been enhanced by one of Kevin Bartz's behaviours! Mail him at kevinbartz@geocities.com! This line must remain in the script.
IE4=(document.all)? 1 : 0
if (IE4) {
theSite=window.location
window.external.AddFavorite(theSite,theTit)
}
}
