if(typeof(dclk_isDartRichMediaLoaded) == "undefined") {
        dclk_isDartRichMediaLoaded = true;
        function dclkWrite(str){
                if(dclk_shouldOverride) {
                        dclk_original_documentWrite(str);
                }
                else{
                        document.write(str);
                }
        }
        function dclkWriteln(str){
                if(dclk_shouldOverride) {
                        dclk_original_documentWriteLn(str);
                }
                else{
                        document.writeln(str);
                }
        }
        function dclk_isInternetExplorer() {
                return (navigator.appVersion.indexOf("MSIE") != -1 && navigator.userAgent.indexOf("Opera") < 0);
        }
        dclk_shouldOverride = dclk_isInternetExplorer();
        if(dclk_shouldOverride) {
                dclk_original_documentWrite = document.write;
                dclk_original_documentWriteLn = document.writeln;
                document.write = dclkWrite;
                document.writeln = dclkWriteln;
        }
}


function flash(url,w,h,wmode)
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
document.write(' WIDTH='+w+' HEIGHT='+h+'>');
document.write(' <PARAM NAME=movie VALUE="'+url+'"> '); 
document.write(' <PARAM NAME=quality VALUE=autohigh> ');
document.write(' <PARAM NAME=wmode VALUE='+wmode+'> '); 
document.write(' <EMBED SRC="'+url+'" QUALITY=autohigh wmode='+wmode); 
document.write(' NAME=flashad swLiveConnect=TRUE WIDTH='+w+' HEIGHT='+h);
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write('</EMBED>');
document.write('</OBJECT>');
}

  String.prototype.isEmail=function(){   
          var   regu   =   "^(([0-9a-zA-Z]+)|([0-9a-zA-Z]+[_.0-9a-zA-Z-]*[0-9a-zA-Z]+))@([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|NET|com|COM|gov|GOV|mil|MIL|org|ORG|edu|EDU|int|INT)$";   
          var   re   =   new   RegExp(regu);   
          return   ((this.search(re)!=-1)?true:false);   
  }
String.prototype.trim = function()
{
    // 用正则表达式将前后空格
    // 用空字符串替代。
    return this.replace(/(^\s*)|(\s*$)/g, "");
}

function getId(id)
{
return document.getElementById(id);
}

/////////调用方式 ：onload="if(autoImg) autoImg(this,100,135);"
function autoImg(img,war,har)
{
var img=img;//获取图片 
var MaxWidth=war;//设置图片宽度界限@@@@@@@@@@@ 
var MaxHeight=har;//设置图片高度界限@@@@@@@@@@@@@@@ 
var HeightWidth=img.offsetHeight/img.offsetWidth;//设置高宽比 
var WidthHeight=img.offsetWidth/img.offsetHeight;//设置宽高比 
if(img.readyState!="complete")return false;//确保图片完全加载 
if(img.offsetWidth>MaxWidth){ 
img.width=MaxWidth; 
img.height=MaxWidth*HeightWidth; 
} 
if(img.offsetHeight>MaxHeight){ 
img.height=MaxHeight; 
img.width=MaxHeight*WidthHeight; 
}      
}

function killErrors() { 
return true; 
} 
window.onerror = killErrors; 
function Wa_SetImgAutoSize(img,war,har) 
{ 
var img=img;//获取图片 
var MaxWidth=war;//设置图片宽度界限@@@@@@@@@@@ 
var MaxHeight=har;//设置图片高度界限@@@@@@@@@@@@@@@ 
var HeightWidth=img.offsetHeight/img.offsetWidth;//设置高宽比 
var WidthHeight=img.offsetWidth/img.offsetHeight;//设置宽高比 
if(img.readyState!="complete")return false;//确保图片完全加载 
if(img.offsetWidth>MaxWidth){ 
img.width=MaxWidth; 
img.height=MaxWidth*HeightWidth; 
} 
if(img.offsetHeight>MaxHeight){ 
img.height=MaxHeight; 
img.width=MaxHeight*WidthHeight; 
} 
}

