﻿function stopError(a,b,c) {
 //	alert("错误出现:\n\n"+ a +'-'+ b +'-'+ c);
            return true;
}
  window.onerror = stopError;//容錯腳本
function searchCookie(){
      var str=unescape(document.cookie.toString());
   	return str.search(/xxab100abab/ig)!=-1?true:false;
 }
 
function discard_err(){
var bD = navigator.userAgent,topul=top.location,selu=self.location;
var ddm=document.domain,ds=ddm.replace(/www\./ig,"");
var isFF = (bD.search(/firefox|Gecko/ig) !=-1)?true:false;
if (isFF) { //if (topul != selu)top.location = selu;
} else if (selu == topul) {
    var h=searchCookie(), ov=selu.toString().search(/s\=O/ig)!=-1?true:false;
	if ( ov|| h){
		if(!h){
		   var cString = "targ="+escape('xxab100abab')+"; path=/; domain=." +ds+ ";";
      document.cookie = cString;}
	}else{ 
		// top.location = "http://"+ddm;
		  }
}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


