function SetCwinHeight_faq(){
var bobo=document.getElementById("faqContent"); //iframe id
if (document.getElementById){
//   if (bobo && !window.opera){
//		alert("bobo.contentDocument.body.offsetHeight="+bobo.contentDocument.body.offsetHeight);
    if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
//		alert("enter into SetCwinHeight4");
     bobo.height = bobo.contentDocument.body.offsetHeight;
    }else if(bobo.Document && bobo.Document.body.scrollHeight){
//		alert("enter into SetCwinHeight5");
     bobo.height = bobo.Document.body.scrollHeight;
    }
   //}
   	 if( bobo.height < 1000 ){
	 	//bobo.height = 1000;
	 }   
}
}

function SetCwinHeight1(){
var bobo=document.getElementById("faqContent"); //iframe id
if (document.getElementById){
//   if (bobo && !window.opera){
//		alert("bobo.contentDocument.body.offsetHeight="+bobo.contentDocument.body.offsetHeight);
    if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
//		alert("enter into SetCwinHeight4");
     bobo.height = bobo.contentDocument.body.offsetHeight;
    }else if(bobo.Document && bobo.Document.body.scrollHeight){
//		alert("enter into SetCwinHeight5");
     bobo.height = bobo.Document.body.scrollHeight;
    }
   //}
   	 if( bobo.height < 1000 ){
	 	bobo.height = 1000;
	 }   
}
}

	function SetCwinHeight(iframeObj){
	if (document.getElementById){ 
  		if (iframeObj){
    		if (iframeObj.contentDocument && iframeObj.contentDocument.body.offsetHeight){
      			iframeObj.height = iframeObj.contentDocument.body.offsetHeight;
      		} else if (document.frames[iframeObj.name].document && document.frames[iframeObj.name].document.body.scrollHeight){  				iframeObj.height = document.frames[iframeObj.name].document.body.scrollHeight;
      		}
    	}
  	}
}





//** iframe×Ô¶¯ÊÊÓ¦Ò³Ãæ **// 

//ÊäÈëÄãÏ£Íû¸ù¾ÝÒ³Ãæ¸ß¶È×Ô¶¯µ÷Õû¸ß¶ÈµÄiframeµÄÃû³ÆµÄÁÐ±í 
//ÓÃ¶ººÅ°ÑÃ¿¸öiframeµÄID·Ö¸ô. ÀýÈç: ["myframe1", "myframe2"]£¬¿ÉÒÔÖ»ÓÐÒ»¸ö´°Ìå£¬Ôò²»ÓÃ¶ººÅ¡£ 

//¶¨ÒåiframeµÄID 
var iframeids=["main"] 

//Èç¹ûÓÃ»§µÄä¯ÀÀÆ÷²»Ö§³ÖiframeÊÇ·ñ½«iframeÒþ²Ø yes ±íÊ¾Òþ²Ø£¬no±íÊ¾²»Òþ²Ø 
var iframehide="yes" 

function dyniframesize() 
{ 
var dyniframe=new Array() 
for (i=0; i<iframeids.length; i++) 
{ 
if (document.getElementById) 
{ 
//×Ô¶¯µ÷Õûiframe¸ß¶È 
dyniframe[dyniframe.length] = document.getElementById(iframeids[i]); 
if (dyniframe[i] && !window.opera) 
{ 
dyniframe[i].style.display="block" 
if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //Èç¹ûÓÃ»§µÄä¯ÀÀÆ÷ÊÇNetScape 
dyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight; 
else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //Èç¹ûÓÃ»§µÄä¯ÀÀÆ÷ÊÇIE 
dyniframe[i].height = dyniframe[i].Document.body.scrollHeight; 
} 
} 
//¸ù¾ÝÉè¶¨µÄ²ÎÊýÀ´´¦Àí²»Ö§³ÖiframeµÄä¯ÀÀÆ÷µÄÏÔÊ¾ÎÊÌâ 
if ((document.all || document.getElementById) && iframehide=="no") 
{ 
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]) 
tempobj.style.display="block" 
} 
} 
} 

if (window.addEventListener) 
window.addEventListener("load", dyniframesize, false) 
else if (window.attachEvent) 
window.attachEvent("onload", dyniframesize) 
else 
window.onload=dyniframesize 

