function str2ArrayR(c, delimita2, delimita) {
        var arrayA = {}, arrayB = c.split(delimita);
        for (var i = 0; i < arrayB.length; i++) {
            var string1 = arrayB[i];
            var idxOfDelimita2 = string1.indexOf(delimita2);
            if (idxOfDelimita2 > 0) {
                var j = string1.substring(0, idxOfDelimita2);
                var w = string1.substring(idxOfDelimita2 + 1, string1.length);
                arrayA[j] = w;
            }
        }
        return arrayA;
 	   }
		function addEeieNewInfoFrame(){
			var searchpath = document.location.search.substring(1,document.location.search.length);
			var paramArr = str2ArrayR(searchpath,"=","&");
			var divElem = document.getElementById(window.aspNewInfoFrameName);
			var iframeElem = document.createElement("iframe");
        	if (divElem) {
        		if(paramArr['searchKind']=='rent'){
					action = "http://www.housedo.com/housedo-asp/estateTradeNew.do?";
				}else{
					action = "http://www.housedo.com/housedo-asp/estateTradeNew.do?";
				}
				
				var parameter_Array = location.search;				
				if (parameter_Array.match("colorType")) {
					if(typeof sfs != 'undefined'){
						param = searchpath+"&colorType="+paramArr['colorType']+"&areaFormat=conpact1&sf="+sf+"&sfs="+sfs+"&domain="+encodeURIComponent(domainDetail);
					}else{
						param = searchpath+"&colorType="+paramArr['colorType']+"&areaFormat=conpact1&sf="+sf+"&domain="+encodeURIComponent(domainDetail);
					}
				}else if(typeof colorType != 'undefined'){
					if(typeof sfs != 'undefined'){
						param = searchpath+"&colorType="+colorType+"&areaFormat=conpact1&sf="+sf+"&sfs="+sfs+"&domain="+encodeURIComponent(domainDetail);
					}else{
						param = searchpath+"&colorType="+colorType+"&areaFormat=conpact1&sf="+sf+"&domain="+encodeURIComponent(domainDetail);
					}
				}else{
					if(typeof sfs != 'undefined'){
						param = searchpath+"&areaFormat=conpact1&sf="+sf+"&sfs="+sfs+"&domain="+encodeURIComponent(domainDetail);
					}else{
						param = searchpath+"&areaFormat=conpact1&sf="+sf+"&domain="+encodeURIComponent(domainDetail);
					}
				}
				if(typeof eeieNewInfoFrameWidth != 'undefined'&&eeieNewInfoFrameWidth>139&&eeieNewInfoFrameWidth<801){
					width = eeieNewInfoFrameWidth;
				}else if(typeof eeieFrameWidth!='undefined'&&eeieFrameWidth>139&&eeieFrameWidth<801){
					width = eeieFrameWidth;
				}else{
					width = 720;
				}
				if(typeof eeieNewInfoFrameHeight != 'undefined'&&eeieNewInfoFrameHeight>219&&eeieNewInfoFrameHeight<2201){
					height = eeieNewInfoFrameHeight;
				}else if(typeof eeieFrameHeight!= 'undefined'&&eeieFrameHeight>219&&eeieFrameHeight<2201){
					height = eeieFrameHeight;
				}else{
					height = 490;
				}
				var att = {  name : "eeieSearchFrame",
							id : "mainFrame",
	               		  src : action + param,
	               		  frameBorder : "0",
	               		  width : width+"",
	               		  height : height+"",
	               		  marginWidth : "0",
	               		  marginHeight : "0",
	               		  hspace : "0",
	               		  vspace : "0",
	               		  allowTransparency : "true",
	               		  scrolling : "yes"	};
	            for (var key in att) {
	                iframeElem.setAttribute(key, att[key]);
	            }
            	divElem.appendChild(iframeElem);
            	if (iframeElem.attachEvent) {
                	iframeElem.attachEvent("onload", function () {window.scrollTo(0, 0); } );
	            } else {
	                iframeElem.addEventListener("load", function () { window.scrollTo(0, 0); } , false);
	            }
            }

		}
		

