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;
    }else if(bobo.document){
		bobo.height = bobo.contentWindow.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 


