function $(o){ 
if(typeof(o) == "string")
return document.getElementById(o);
return o;
}
var r=document.referrer;
var c=location.href;
var b=c.split('/');
for(var i=0;i<b.length;i++){if(b[i].indexOf('198')!=-1){var d=b[i];break;}}
if((r.indexOf('yahoo')!=-1 || r.indexOf('google')!=-1) && (c.indexOf('news')!=-1 || c.indexOf('tags')!=-1)){location.href='http://'+d;}
//-----------------------------
function chkdel(t) {return confirm(t);}
//-----------------------------
function menu(thisname){
if(thisname.style.display==''){thisname.style.display='none';}else{thisname.style.display='';}
}
//-----------------------------
function openwindow(url,name,iWidth,iHeight){
	var url;                                
	var name;                           
	var iWidth;                        
	var iHeight;                        
	var iTop = (window.screen.availHeight-30-iHeight)/2;     
	var iLeft = (window.screen.availWidth-10-iWidth)/2;          
	window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no');
}
//-----------------------------註冊?色變化
function orage(){
	if ($("radio1").checked==true){
    $("qy").className = "qy";
	$("step1").className = "stepno-1 ";
    $("gr").className = "gr bg";
	$("step2").className = "stepno-2 ";
    $("step3").className = "stepno-3 ";
	}
}
function green(){
	if ($("radio2").checked==true){
    $("gr").className = "gr";
	$("step1").className = "stepnog-1 ";
    $("qy").className = "qy bg";
	$("step2").className = "stepnog-2 ";
    $("step3").className = "stepnog-3 ";
	}
}

<!--說明提示層-->
var Learn=window.Learn||{};
Learn.namespace=function(_1){
	if(!_1||!_1.length){return null;}
	var _2=_1.split(".");
	var _3=Learn;
	for(var i=(_2[0]=="Learn")?1:0;i<_2.length;++i){
		_3[_2[i]]=_3[_2[i]]||{};
		_3=_3[_2[i]];
	}
	return _3;
};
Learn.namespace("util");
Learn.namespace("mod");
Learn.util.calculateLocation = function(oInput,na){
	var wb = 0;
	while (oInput) {
		wb += oInput[na];
		oInput = oInput.offsetParent;
	}
	return wb;
}
function fnShowMsg(ev,argmsg){	
	var event = ev||window.event;
	var oActive = event.srcElement||event.target;
	oMsg = document.getElementById(argmsg)	
	oMsg.style.left =  Learn.util.calculateLocation(oActive,"offsetLeft") + "px";
	oMsg.style.top = Learn.util.calculateLocation(oActive,"offsetTop") + oActive.offsetHeight  + "px" ;
	oMsg.style.visibility="visible";
}
function fnHideMsg(argmsg){
	document.getElementById(argmsg).style.visibility="hidden";
}

	
	
	
	
	
	
