
function Inview( link,  Inwidth, Inheight) {

if(link=="Search.php")njL=1500;
else njL=3000;
// Testing for IE 4, since IE4 does not recognize document.getElementById
  var ie4 = (document.all && !document.getElementById) ? true : false;
// If it is IE 4, we set document.all. 
//If we are not IE 4 then we use the standard getElementById
  if (ie4 == "true") {
    var irame = document.all["aa"];
	var extend=document.all["ee"];
  }
  else {
    var irame = document.getElementById("aa");
var extend=document.getElementById("ee");
  }



      // Build the Frame and Load the URL

      myIframe = document.createElement('IFRAME');
      myIframe.setAttribute('id','ifra');
      myIframe.setAttribute('width',Inwidth);
      myIframe.setAttribute('height',Inheight);
	myIframe.setAttribute('className','Inframe');
	myIframe.setAttribute('name','In_f');
	myIframe.setAttribute('ALLOWTRANSPARENCY','true');
	myIframe.setAttribute('frameBorder','0');
	myIframe.setAttribute('marginWidth','0');
	myIframe.setAttribute('marginHeight','0');
      myIframe.setAttribute('src',link);
      //myIframe.setAttribute('scrolling','no');
	irame.innerHTML=""; 
      irame.appendChild(myIframe);
extend.style.height=njL;



  }

function ResFr(myI){
var extend=document.getElementById("ee");

if (myI && !window.opera){
myI.style.display="block";
if (myI.contentDocument && myI.contentDocument.body.offsetHeight) //ns6 syntax
myI.height = myI.contentDocument.body.offsetHeight;
else if (myI.Document && myI.Document.body.scrollHeight) //ie5+ syntax
myI.height = myI.Document.body.scrollHeight;
}

alert(myI.height);
  	extend.style.height=myI.height-350;


}
