var xmlhttp = null;

 function getXmlHttpRequest(){ 
 	try{													// XMLHttpRequest´Â ¸¶ÀÌÅ©·Î¼ÒÇÁÆ®ÀÇ ºê¶ó¿ìÀú¸¦ Á¦¿ÜÇÑ ¸ðµç ºê¶ó¿ìÁ®¿¡¼­ ÀÛµ¿.
   		xmlhttp = new XMLHttpRequest();     					// XMLHttpRequest Å¸ÀÔÀ¸·Î xmlhttp ¿äÃ»°´Ã¼¸¦ »ý¼º
  	} catch(trymicrosoft){                      	
   		try{												// ActiveXObject´Â ¸¶ÀÌÅ©·Î¼ÒÇÁÆ®ÀÇ ºê¶ó¿ìÁ®¿¡¼­ Áö¿øÇÏ´Â Å¸ÀÔ.
    			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");		// ActiveXObject  Å¸ÀÔÀ¸·Î xmlhttp ¿äÃ»°´Ã¼¸¦ »ý¼º
   		} catch(othermicrosoft){
    			try{	 										// ¸î¸î Áö¿øÇÏÁö ¾Ê´Â ºê¶ó¿ìÁ®¸¦ À§ÇÑ Ã³¸®
     				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    			} catch(failed){								// °´Ã¼»ý¼º ½ÇÆÐ
     				xmlhttp = null;
    			}
   		}
  	}
  
  	if(xmlhttp == null) {
  		alert("°´Ã¼ »ý¼º¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù.");
  	} else {
  		return xmlhttp;
  	}
 }
 
 function resizeFrame(iframeObj){
 	var innerBody = iframeObj.contentWindow.document.body;
  	oldEvent = innerBody.onclick;
  	innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
  	var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
  	iframeObj.style.height = innerHeight;
  	var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
  	iframeObj.style.width = innerWidth;     
  	if( !arguments[1] )        /* Æ¯Á¤ ÀÌº¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */
    		this.scrollTo(1,1);
 }
