//***********默认设置定义.*********************

//***************内部变量定义*****************
function bookmarkit(){window.external.addFavorite('<%=weburl%>','<%=WebName%>')}

function cimg(link)
{
window.open(link,'','top=50,left=150,width=500,height=280,scrollbars=yes')
}

function viewa(url){ 
var url; window.open(url,'_blank','status=no,scrollbars=yes,top=20,left=100,width=575,height=240'); 
}

var flag=false;
function DrawImage(ImgD){
   var image=new Image();
   image.src=ImgD.src;
   if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>= 140/125){
     if(image.width>140){  
     ImgD.width=140;
     ImgD.height=(image.height*140)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     //ImgD.alt=image.width+"×"+image.height;
     }
    else{
     if(image.height>125){  
     ImgD.height=125;
     ImgD.width=(image.width*125)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     //ImgD.alt=image.width+"×"+image.height;
     }
    }
} 


function show_sader(mylink)
{
window.open(mylink,'','top=50,left=120,width=520,height=450,scrollbars=yes')
}
function show_product(link)
{
window.open(link,'','top=50,left=150,width=500,height=450,scrollbars=yes')
}

function show(mylink)
{
window.open(mylink,'','top=50,left=100,width=750,height=500,scrollbars=yes')
}
