var b="【宝宝成长，鸣星相伴】请向您的朋友们推荐 Mxabc.COM ！";
function d(){
 window.status=b;
 timerID=setTimeout("d()",10000);
}

var bb="【宝宝成长，鸣星相伴】请向您的朋友们推荐 Mxabc.COM ！";
function dd(){
 window.status=bb;
 timerID=setTimeout("dd()",10000);
}

function copyUrl(){
var currentUrl;
currentUrl="我在鸣星网上看到一篇很不错的文章,也许对你有帮助哦：";
currentUrl=currentUrl+"http://"+location.host+location.pathname;
window.clipboardData.setData("Text",currentUrl);
alert('网址已生成并替您复制好了，直接用键盘Ctrl＋V粘贴到QQ、MSN、论坛、邮箱就可以了\n\n您的朋友一定会很惊喜，快快发送吧！');
//window.location.replace(url);
//return false;
}

function copyQiFu(){
var currentUrl;
currentUrl="我在网上看到这个'我佛慈悲-点灯祈福'网站,在这里您可以在佛前点灯祈福、功德回向喔！快过来为您的亲友点一盏灯，祈愿平安吉祥、福慧增长吧！ ";
currentUrl=currentUrl+"http://"+location.host+location.pathname;
window.clipboardData.setData("Text",currentUrl);
alert('网址已生成并替您复制好了，直接用键盘Ctrl＋V粘贴到QQ、MSN、论坛、邮箱就可以了\n\n您的朋友一定会很惊喜，快快发送吧！');
//window.location.replace(url);
//return false;
}


function Reset_ImgSize(obj, MaxW, MaxH)
{
    if (obj != null) imageObject = obj;
    var state=imageObject.readyState;
    var oldImage = new Image();
    oldImage.src = imageObject.src;
    var dW=oldImage.width; var dH=oldImage.height;
    if(dW>MaxW || dH>MaxH) {
        a=dW/MaxW; b=dH/MaxH; 
        if(b>a) a=b;
        dW=dW/a; dH=dH/a;
    }
    if(dW > 0 && dH > 0)
        imageObject.width=dW;imageObject.height=dH;
    //if(state!='complete' || imageObject.width>MaxW || imageObject.height>MaxH) {
     //   setTimeout("ResizeImage(null,"+MaxW+","+MaxH+")",40); 
    //}
}

function ResumeError() {
    return true;
}
window.onerror = ResumeError;