﻿/// <reference name="MicrosoftAjax.js"/>


 function SetCwinHeight(){
  var bobo=document.getElementById("bobo"); //iframe id 
    
  if (document.getElementById){
    

   if (bobo && !window.opera){
    if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
     bobo.height = bobo.contentDocument.body.offsetHeight+30;
    }else if(bobo.Document && bobo.Document.body.scrollHeight){
     bobo.height = bobo.Document.body.scrollHeight + 30 ;
    }
   }
  }

 }
 
 
function v10()
{
var a=document.getElementById("q")

if(a.value.length <= 0)
{
alert("请填写搜索的内容！！！");
return false;
}
else 
{
return true;
} 
}

 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>=  180/140){  
             
         ImgD.width=172;  
         ImgD.height=(image.height*172)/image.width;  
         
         ImgD.alt=image.width+"×"+image.height;  
         }  
       else{  
             
         ImgD.height=132;  
         ImgD.width=(image.width*132)/image.height;            
        
         ImgD.alt=image.width+"×"+image.height;  
         }  
       }  
}     