 	/*Ver : 22.0, Created : Jan 2007 by S.K.v, Last Mod Dt : Oct 16 08 - S.K.v*/ 	var alphabets ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; 	var numbers ="0123456789"; 	var allSpecial =" `~!@#$%^&*()-_=+|[]{};:',./\"\\?"; 	var alphanumeric = alphabets + numbers + allSpecial; 	var n=navigator.appName; 	var ns = (n.indexOf("Netscape") != -1); 	var d = document; 	var ipSellPropertyArr=null,ipRentPropertyArr=null; 	var ie=(n=="Microsoft Internet Explorer"); 	var lb = null; 	var lbA = null; 	/*var badOldBrowser = ( window.navigator.userAgent.indexOf('Opera') + 1 ) || ( window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 ) || ( navigator.vendor == 'KDE' );*/ 	function IsMandatory(obj, obj_type,	Msg,	ErrType, DivId){ 		if (obj_type == "text" || obj_type == "password" || obj_type == "textarea" || obj_type == "file"){ 			if(obj_type != "file") obj.value = ip.Trim(obj.value); 			var objValue; 			objValue = obj.value.replace(/\s+$/,""); 			if (objValue.length == 0){return ip.throwErr(obj,Msg,ErrType,DivId);}else{return ip.throwSuccess(obj, Msg, ErrType, DivId);} 		}else if (obj_type == "select"){ 			var cnt=1; 			if(obj.multiple) for(var i=0,cnt=0; i<obj.length; i++){ if(obj.options[i].selected)cnt++;} 			if(obj.selectedIndex==-1 || (obj.options[obj.selectedIndex].value=="0"  && cnt==1) || 					obj.options[obj.selectedIndex].value=="00" || obj.options[obj.selectedIndex].value=="" || 						(obj.options[obj.selectedIndex].value=="any" && obj.name=="state") ) 						return ip.throwErr(obj,Msg,ErrType,DivId); 			else{return ip.throwSuccess(obj, Msg, ErrType, DivId);} 		}else if (obj_type == "radio" || obj_type == "checkbox"){ 			if (!obj[0] && obj){ 				if (!obj.checked){return ip.throwErr(obj,Msg,ErrType,DivId);}else {return ip.throwSuccess(obj, Msg, ErrType, DivId);} 			}else{ 				for (i=0; i < obj.length; i++){ if(obj[i].checked){return ip.throwSuccess(obj, Msg, ErrType, DivId);}} 				return ip.throwErr(obj[0],Msg,ErrType,DivId); 			} 		}else{return ip.throwErr(obj,Msg,ErrType,DivId);} 	} 	function IsEmpty(obj, obj_type){ 		if(!obj || obj=="undefined" || obj==null || obj=="null") return; 		if (obj_type == "text" || obj_type == "password" || obj_type == "textarea" || obj_type == "file"){ 			var objValue; 			if(obj_type != "file") if(obj.value.length>0) obj.value = ip.Trim(obj.value); 			objValue = obj.value.replace(/\s+$/,""); 			return (objValue.length==0) ? true : false; 		}else if (obj_type == "select"){ 			var cnt=1; 			if(obj.multiple) for(var i=0,cnt=0; i<obj.length; i++){ if(obj.options[i].selected)cnt++;} 			if(obj.selectedIndex==-1 || (obj.options[obj.selectedIndex].value=="0" && cnt==1) || 					obj.options[obj.selectedIndex].value=="00" || obj.options[obj.selectedIndex].value=="" || 						(obj.options[obj.selectedIndex].value=="any" && obj.name=="state") ){ 				return true; 			}else{return false;} 		}else if (obj_type == "radio" || obj_type == "checkbox"){ 			if (!obj[0] && obj){ 				return (obj.checked) ? false : true; 			}else{ 				for (i=0; i < obj.length; i++){if(obj[i].checked) return false;} 				return true; 			} 		}else{return true;} 	} 	function IsFoundCharacters(ObjVal, str){ 		for( var i= 0; i< ObjVal.length; i++ ){ 			var m = false; 			for( var j= 0; j< str.length; j++){ 				 if( ObjVal.charAt(i) == str.charAt(j) || String(ObjVal.charCodeAt(i))==String(10) || String(ObjVal.charCodeAt(i))==String(13)) m = true; 			} 			if(!m) return false; 		} 		return true; 	} 	function IsNotFound(ObjValue,String){ 		for (var i=0; i<String.length; i++) { 			if(ObjValue.indexOf(String.charAt(i))!=-1) return false; 		} 		return true; 	} 	function IsValidCharacters(Value, AllChars, AtleastChars){ 		/*AllChars = AllChars.replace(/\n/g,"");*/ 		if(IsFoundCharacters(Value,AllChars) 			&& AtleastOneChar(Value,AtleastChars) 			&& IsFoundCharacters(Value.substr(0,1),AtleastChars) ) return true; else return false; 	} 	function AtleastOneChar(Expression,ValidateChar){ 		ValidateChar = (ValidateChar=="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") ? /[^a-zA-Z]/g : ValidateChar; 		ValidateChar = (ValidateChar=="0123456789") ? /[^0-9]/g : ValidateChar; 		var charString = Expression.replace(ValidateChar, ""); 		if(charString.length < 1){return false;} 		return true; 	} 	function IsMin(Str,Len){return (Str.length<Len) ? true : false;} 	function IsMax(Str,Len){return (Str.length>Len) ? true : false;} 	function IsMatch(val1,val2){return (val1==val2) ? true : false;} 	function ShowHideDiv(ObjShow,ObjHide){ 		try{ObjHide.style.display ="none";}catch(e){ip.traceErr(e,'ShowHideDiv','common');} 		try{ObjShow.style.display ="";}catch(e){ip.traceErr(e,'ShowHideDiv','common');} 	} 	function EnableDisable(ObjEnable,ObjDisable){ 		if(ObjEnable) ObjEnable.disabled=false; 		if(ObjDisable) ObjDisable.disabled=true; 	} 	function getHTTPObject(){ 		try {return new XMLHttpRequest();}catch(e){} 		try {return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){} 		try {return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){} 		return ip.throwErr(null,"Your Browser doesn't support the XML HTTP Request!",2); 	} 	function SendHTTPRequest(url,DivObject){ 		var Ajaxhttp = new getHTTPObject(); 		var DivObject4HTTP = new Object(); 		DivObject4HTTP = DivObject; 		DivObject4HTTP.innerHTML = "<img src=\"http://imgs.indiaproperty.com/loading.gif\" alt=\"\" class=\"AlignM\" hspace=\"3\" />Loading..."; 		try{ 			Ajaxhttp.open("GET", url, true); 			Ajaxhttp.send(null); 			Ajaxhttp.onreadystatechange = function(){ 				if (Ajaxhttp.readyState == 4) { 					DivObject4HTTP.innerHTML=Ajaxhttp.responseText; 					Ajaxhttp.abort(); 				} 			}; 		}catch(e){ip.traceErr(e,'SendHTTPRequest','common');} 	} 	function OpenPopUp(url,left,top,width,height,title){ 		if(!left) left=100; 		if(!top) left=100; 		if(!width) width=450; 		if(!height) height=400; 		title = (title=="") ? "IndiaProperty" : title; 		var scroll=(height>=700)?"yes":"no"; 		newWindow = window.open(url,title,'height='+height+',width='+width+',left='+left+',top='+top+',taskbar=no,linkbar=no,scrollbars='+scroll); 		newWindow.focus(); 	} 	function OpenPage(url){window.location.href=url;} 	function $ip(){ 		var elements = new Array(); 		for (var i = 0; i < arguments.length; i++) { 			var element = arguments[i]; 			if(typeof element == 'string') element = d.getElementById(element); 			if(arguments.length == 1) return element; 			elements.push(element); 		} 		return elements; 	} 	var ip = { 		img_path : 'http://imgs.indiaproperty.com/', 		css_path:'http://imgs.indiaproperty.com/styles/', 		js_path:'http://imgs.indiaproperty.com/javascripts/', 		loadingStr : '<img src="http://imgs.indiaproperty.com/loading.gif" alt="" width="16" height="16" class="AlignM" hspace="3" />Loading... Please wait...', 		url:"", 		pageFrom : "index.php", 		pageLoaded : false, 		Str:"", 		strLen : 0, 		mouseX : 0, 		mouseY : 0, 		propCatArr : null, 		errMsg : "Unable to access this service currently, Please try again later.<br />", 		err : { 			timeOut : "Unable to access this service currently, Please try again later.<br />", 			spam : "Entered text seems to be spam message, Mail will be send within next 24 hours.<br />", 			codeErr : "Unable to access this service currently, Due to Security issues it has been stoped.", 			cancelled : "Request has been cancelled by the user." 		}, 		loading : function(Str){ 			return '<img src="http://imgs.indiaproperty.com/loading.gif" alt="" width="16" height="16" class="AlignM" hspace="3" />' + Str; 		}, 		successMsg : function(Str,onClickFunc){ 			return '<center>'+Str+'<br /><br /><a href="javascript:void(0);" onclick="ip.exitLB();'+onClickFunc+'" class="button">Ok</a></center>'; 		}, 		loadingLB: function(Str,w){ 			if(!w) w = "auto"; else w = w + "px"; 			return '<div style="float:left; display:block; background-color:#fff; width:'+ w +';"><div class="lBox_dotB"><div class="lBox_dotR"><div class="lBox_dotT"><div class="lBox_dotL"><div class="lBox_bRC"><div class="lBox_bLC"><div class="lBox_tRC"><div class="lBox_tLC"><div style="padding:20px;"><img src="http://imgs.indiaproperty.com/loading.gif" alt="" width="16" height="16" class="AlignM" hspace="3" />' + Str + '</div></div></div></div></div></div></div></div></div><br clear="all" />'; 		}, 		lbTimedOutTimer : null,lbATimedOutTimer:null, 		confirmActive : false, confirmFocusTimer : null, confirmStatus : null, confirmLBDivObj : null, 		lbActive : false,lbObject : null,lbFocusTimer : null,lbType : "alert", lbDivObj : null, 		simpleAlertActive : false,simpleAlertObject : null,simpleAlertFocusTimer : null, simpleAlertDivObj : null, 		lbContent: function(Str,w,onCloseF){ 			if(!onCloseF || onCloseF==null) onCloseF = "ip.exitLB()"; 			if(!w) w = "auto"; else w = w + "px"; 			return '<div style="float:left; display:block; background-color:#fff; width:'+ w +';"><div class="lBox_dotB"><div class="lBox_dotR"><div class="lBox_dotT"><div class="lBox_dotL"><div class="lBox_bRC"><div class="lBox_bLC"><div class="lBox_tRC"><div class="lBox_tLC" style="padding:20px;"><div style="float:right;" id="divGlobalClose"><a href="javascript:void(0)" class="closeX" onclick="javascript:'+ onCloseF +';">&nbsp;</a></div><br clear="all" />' + Str + '</div></div></div></div></div></div></div></div></div><br clear="all" />'; 		}, 		lbAlert: function(Str,w,AlertType,onCloseF){ 			if(!w) w = "300"; else w = w + "px"; 			if(!onCloseF || onCloseF==null) onCloseF = "ip.exitLB()"; 			return '<div style="float:left; display:block; background-color:#fff; width:'+ w +';"><div class="lBox_dotB"><div class="lBox_dotR"><div class="lBox_dotT"><div class="lBox_dotL"><div class="lBox_bRC"><div class="lBox_bLC"><div class="lBox_tRC"><div class="lBox_tLC" style="padding:20px 20px 0px;"> ' + 			'<div style="background:url(\'http://imgs.indiaproperty.com/icons/alert_lb.gif\') no-repeat 0% 30%; color:#4B4B4B; line-height:17px; font-family:Arial; font-weight:normal; padding:20px 20px 20px 50px;"><span id="divLBGlobalMsg">' + 				Str + '</span><br /><div style="float:right; padding:10px 0px;" id="divGlobalClose"><a href="javascript:void(0);" onclick="javascript:'+ onCloseF +';" class="button" style="pointer:cursor;" id="lbAlertCloseBtn">Close</a></div><br clear="all" />' + 				' </div></div></div></div></div></div></div></div></div></div><br clear="all" />'; 		}, 		simpleAlert : function(Str,w,AlertType,onCloseF){ 			if(!w) w = "300"; else w = w + "px"; 			if(!onCloseF || onCloseF==null) onCloseF='ip.exitSimpleAlert()'; 			return '<div id="DivAlertLB" style="float:left; display:block; background-color:#fff; width:'+ w +';"><div class="lBox_dotB"><div class="lBox_dotR"><div class="lBox_dotT"><div class="lBox_dotL"><div class="lBox_bRC"><div class="lBox_bLC"><div class="lBox_tRC"><div class="lBox_tLC" style="padding:20px 20px 0px;"> ' + 			'<div style="background:url(\'http://imgs.indiaproperty.com/icons/alert_lb.gif\') no-repeat 0% 30%; color:#4B4B4B; line-height:17px; font-family:Arial; font-weight:normal; padding:20px 20px 20px 50px;">' + 				Str + '<br /><div style="float:right; padding-top:10px;" id="divGlobalClose"><a href="javascript:void(0);" onclick="javascript:'+ onCloseF +';" class="button" style="pointer:cursor;" id="lbAlertCloseBtn">Close</a></div><br clear="all" />' + 				' </div></div></div></div></div></div></div></div></div></div><br clear="all" />'; 		}, 		makeCenterLB : function(){ 			if(ip.confirmActive)lbA.setCenterPos(this.confirmLBDivObj); 			if(ip.simpleAlertActive){ 				lb.setCenterPos(this.lbDivObj); 				lbA.setCenterPos(this.simpleAlertDivObj); 			} 			if(ip.lbActive)lb.setCenterPos(this.lbDivObj); 		}, 		startLB: function(Obj,Str,w,AlertType,onCloseF,url,focusObj){ 			if(!w) w=300; 			try{ 				if(lb==null || typeof(lb)=="undefined"){ lb = new ipLightBox('divLightBox','',"",250);} 				lb.init(); 				clearTimeout(this.lbFocusTimer); 				clearTimeout(this.lbTimedOutTimer); 				this.lbActive = true; 				this.lbType = AlertType; 				this.lbObject = Obj; 				var divObj = $ip("divLBcontent"); 				this.lbDivObj = divObj; 				divObj.innerHTML = ip.loadingLB("Loading... Please wait...",280); 				divObj.style.display =""; 				this.makeCenter(divObj,w,200); 				/*divObj.onclick = function(){ip.exitLB(divObj,Obj);}*/ 				switch(AlertType){ 					case "aJax": 						var aJax = new getHTTPObject(); 						url = (url.indexOf("http://")!=-1) ?  url : String(ip.host() + url); 						aJax.open("get",url,true); 						aJax.onreadystatechange = function(){ 							if(aJax.readyState==4){ 								var res = aJax.responseText; 								if(res=="") res=ip.errMsg; 								ip.makeCenter(divObj,500,300); 								divObj.innerHTML = ip.lbContent(res,500); 								ip.makeCenter(divObj); 								try{ 									if(typeof(focusObj)=="string"){ 										if(focusObj.indexOf(".")!=-1){eval(focusObj+".focus();");}else{$ip(focusObj).focus();} 									}else{ 										if(focusObj!=null || focusObj!=""){$ip(focusObj).focus();} 									} 								}catch(e){ip.traceErr(e,"startLB");} 							} 						}; 						aJax.send(null); 						this.lbTimedOutTimer = window.setTimeout(function(){ 							if( String(divObj.innerHTML).indexOf("Please wait...")!=-1){ 								divObj.innerHTML =  ip.lbAlert("Unable to access this service currently, Please try again later.<br />",w,AlertType,onCloseF); 								ip.makeCenterLB(); 							} 						},60000); 						break; 					case "message": 						divObj.innerHTML = ip.lbContent(Str,w); 						ip.makeCenter(divObj,divObj.offsetWidth,divObj.offsetHeight); 						break; 					default: 						divObj.innerHTML = ip.lbAlert(Str,w,AlertType,onCloseF); 						ip.sleep(function(){try{$ip("lbAlertCloseBtn").focus();}catch(e){ip.traceErr(e,"startLB","ip_common.js");}},"2000"); 						break; 				} 				this.startKeyDetect(this.getKey); 			}catch(e){ip.traceErr(e,"startLB","ipcommon");} 		}, 		startAlert: function(Obj,Str,w,AlertType,onCloseF,url,focusObj){ 			if(!w) w=300; 			try{ 				if(lbA==null || typeof(lbA)=="undefined"){lbA = new ipLightBox('divLBAlertWindow','',"",250);} 				this.simpleAlertActive = true; 				this.simpleAlertObject = Obj; 				lbA.init(); 				clearTimeout(this.simpleAlertFocusTimer); 				clearTimeout(this.lbATimedOutTimer); 				var divObj = $ip("divLBAlert"); 				this.simpleAlertDivObj = divObj; 				divObj.style.display =""; 				divObj.innerHTML = ip.loadingLB("Loading... Please wait...",280); 				this.makeCenter(divObj,w,200); 				/*divObj.onclick = function(){ip.exitLB(divObj,Obj);}*/ 				switch(AlertType){ 					case "aJax": 						var aJax = new getHTTPObject(); 						var url = ip.host() + url; 						aJax.open("get",url,true); 						aJax.onreadystatechange = function(){ 							if(aJax.readyState==4){ 								var res = aJax.responseText; 								if(res=="") res="Unable to access this service currently, Please try again later.<br />"; 								ip.makeCenter(divObj,500,300); 								divObj.innerHTML = ip.lbContent(res,500); 								window.setTimeout(function(){ 									if(focusObj!=null || focusObj!=""){ 										try{$ip(focusObj).focus();}catch(e){ip.traceErr(e,"startLB");} 									} 								},2000); 							} 						}; 						aJax.send(null); 						this.lbATimedOutTimer = window.setTimeout(function(){ 							if( String(divObj.innerHTML).indexOf("Please wait...")!=-1){ 								divObj.innerHTML = ip.err.timeOut; 								ip.makeCenterLB(); 							} 						},60000); 						break; 					default: 						divObj.innerHTML = ip.simpleAlert(Str,w,AlertType,onCloseF); 						break; 				} 			}catch(e){ip.traceErr(e,"startAlert","ipcommon");} 		}, 		Confirm: function(Str,w,confirmOptions){ 			if(!w) w=300; 			try{ 				if(lbA==null || typeof(lbA)=="undefined"){lbA = new ipLightBox('divLBAlertWindow','',"",250);} 				lbA.init(); 				this.confirmStatus = null; 				this.confirmActive = true; 				clearTimeout(this.confirmFocusTimer); 				var divObj = $ip("divLBAlert"); 				this.confirmLBDivObj= divObj; 				divObj.style.display =""; 				this.makeCenter(divObj,w,200); 				divObj.innerHTML = ip.lbConfirm(Str,w,confirmOptions); 				this.startKeyDetect(this.getKey); 			}catch(e){ip.traceErr(e,"ip.confirm","ipcommon");} 		}, 		lbConfirm : function(Str,w,confirmOptions){ 			var imgW = parseInt(w / 10); 			if(!w) w = "300"; else w = w + "px"; 			var arr = confirmOptions.split("|"); 			if(arr.length<=1) arr = ["Yes","No"]; 			return '<div style="float:left; display:block; background-color:#fff; width:'+ w +';"><div class="lBox_dotB"><div class="lBox_dotR"><div class="lBox_dotT"><div class="lBox_dotL"><div class="lBox_bRC"><div class="lBox_bLC"><div class="lBox_tRC"><div class="lBox_tLC" style="padding:20px 20px 0px;"> ' + 			'<div style="background:url(\'http://imgs.indiaproperty.com/icons/alert_q.gif\') no-repeat 0% 30%; color:#4B4B4B; line-height:17px; font-family:Arial; font-weight:normal; padding:20px 20px 20px 50px;">' + 				Str + '<br /><div style="text-align:center; padding-top:10px;"><input type="button" class="button" onclick="javascript:ip.exitConfirm(null,1);" value="'+ ip.toTitleCase(arr[0]) +'"  id="lbAlertYesBtn" /><img src="http://imgs.indiaproperty.com/trans.gif" width="'+ imgW +'" height="1" alt="" /><input type="button" class="button" onclick="javascript:ip.exitConfirm(null,0);" value="'+ ip.toTitleCase(arr[1]) +'" id="lbAlertNoBtn"/></div>' + 				' </div></div></div></div></div></div></div></div></div></div><br clear="all" />'; 		}, 		exitLB : function(fromObj,Obj){ 			if(!fromObj) fromObj=$ip("divLBcontent"); 			this.lbActive = false; 			if(!Obj) Obj=this.lbObject; 			this.lbObject = null; 			lb.exit(); 			fromObj.style.display="none"; 			fromObj.innerHTML =""; 			this.stopEvent(d.onkeyup); 			this.lbFocusTimer = window.setTimeout(function(){try{Obj.focus();}catch(e){try{Obj[0].focus();}catch(e1){}};},1000); 		}, 		exitSimpleAlert : function(fromObj,Obj){ 			if(!fromObj) fromObj=$ip("divLBAlert"); 			lbA.exit(); 			this.simpleAlertActive= false; 			if(!Obj) Obj=this.simpleAlertObject; 			this.simpleAlertObject= null; 			fromObj.style.display="none"; 			fromObj.innerHTML =""; 			this.simpleAlertFocusTimer = window.setTimeout(function(){try{Obj.focus();}catch(e){try{Obj[0].focus();}catch(e1){}};},1000); 		}, 		exitConfirm: function(fromObj,confirmStatus){ 			if(!fromObj) fromObj=$ip("divLBAlert"); 			this.confirmActive= false; 			lbA.exit(); 			fromObj.style.display="none"; 			fromObj.innerHTML =""; 			this.confirmFocusTimer = window.setTimeout(function(){try{Obj.focus();}catch(e){try{Obj[0].focus();}catch(e1){}};},1000); 			this.confirmStatus=confirmStatus; 		}, 		randomN : function(strLen){return Math.floor(Math.random() * ( (!strLen) ?( new Date().getTime()) : strLen) );}, 		ucfirst : function(Str){return Str.substr(0,1).toUpperCase() + Str.substr(1);}, 		ucwords : function(Str){ 			Str=Str.replace(/  /g," "); 			Arr = Str.split(" "); 			for (var i=0; i<Arr.length; i++) Arr[i] = this.ucfirst(Arr[i]); 			Str = ""; 			for (var i=0; i<Arr.length; i++) Str = (i==0) ? Arr[i] : Str + " " + Arr[i]; 			return Str; 		}, 		toTitleCase : function(String){ 			return this.ucwords(String); 			/*this.Str = String; 			this.Str=this.Str.replace(/  /g," "); 			this.Str = this.Str.toLowerCase(); 			Arr = this.Str.split(" "); 			for (var i=0; i<Arr.length; i++) Arr[i] = this.ucfirst(Arr[i]); 			this.Str = ""; 			for (var i=0; i<Arr.length; i++) this.Str = (i==0) ? Arr[i] : this.Str + " " + Arr[i]; 			return this.Str;*/ 		}, 		OpenPopUp : function(url,left,top,width,height,title,scroll,resize){ 			if(!left) left=100; 			if(!top) top=100; 			if(!width) width=450; 			if(!height) height=400; 			scroll=(height>=700 || scroll)?"yes":"no"; 			if(!resize) resize="no"; 			title = (title=="" || !title) ? "IndiaProperty" : title; 			if(url.indexOf("indiaproperty.com/")==-1){url=ip.host() + "/"+url;}/*url=url.replace("//","/");*/ 			newWindow = window.open(url,title,'height='+height+',width='+width+',left='+left+',top='+top+',taskbar=no,linkbar=no,resizable='+resize+',scrollbars='+scroll); 			newWindow.focus(); 		}, 		OpenPage:function(url){window.location.href=url;}, 		Ask:function(str){return confirm(str) ? true : false;}, 		showtcpopup : function(){ 			this.url = "http://www.indiaproperty.com/index.php?option=site&page=termsandcondition&notemplate=yes"; 			this.OpenPopUp(this.url,0,0,615,600,"TermsAndCondition","yes"); 		}, 		showiconpopup : function(){ 			url="/index.php?option=site&page=icondetails&notemplate=yes"; 			this.startLB(null,null,null,"aJax",null,url,null); 		}, 		closeWindow:function(){ 			/*window.open('','_parent','');*/ 			window.close(); 		}, 		resizeWindow:function(x,y,left,top){ 			window.resizeTo(x,y); 			if(!left) left=100;if(!top) top=100; 			window.moveTo(left,top); 		}, 		IsValidEmail : function(Str, ErrType, DivId){ 			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i ; 			return (filter.test(Str)) ?  ip.throwSuccess(null, "", ErrType, DivId) : false; 			/* 			new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);  			return pattern.test; 			if(!(/^[^a-zA-Z]/.test(str)) && (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(str))) { 				return true 			} else { 				return false 			} 			*/ 		}, 		IsValidURL : function(Obj,ErrType,DivId){ 			var j = new RegExp(); 			/*j.compile("^[A-Za-z]+://[A-Za-z0-9-]+\.[A-Za-z0-9]+");*/ 			j.compile("^[A-Za-z0-9-]+\.[A-Za-z0-9]+"); 			return (j.test(Obj.value)) ?  ip.throwSuccess(Obj, "", ErrType, DivId) : false; 		}, 		IsValidFile : function(Obj,extension, ErrType, DivId){ 			var Arr = extension.split("|"); 			var ext = Obj.value.substr(Obj.value.length-4,Obj.value.length); 			ext = ext.toLowerCase(); 			for(var i=0;i<Arr.length;i++){ 				if(ext==Arr[i] || String(Obj.value.toLowerCase()).indexOf(Arr[i])!=-1) return ip.throwSuccess(Obj, "", ErrType, DivId); 			} 			return false; 		}, 		throwErr :function(Obj,Msg,ErrType,DivId){ 			if(!ErrType) alert(Msg); 			else if(ErrType==1){ 				var DivObj = ($ip(DivId)) ? $ip(DivId) : new Object; 				DivObj.innerHTML = Msg; 				DivObj.style.display=""; 			}else{ 				if(this.lbActive){ 					try{ 						if(this.isObject($ip("divLBGlobalMsg"))){ 							if(this.Trim($ip("divLBGlobalMsg").innerHTML)==Msg) return false; 						} 					}catch(e){this.traceErr(e,"throwErr","ip_common");} 					this.startAlert(Obj,Msg,300,'alert'); 				} else this.startLB(Obj,Msg); 				return false; 			} 			if(!Obj) return false; 			try{Obj.focus();}catch(e){try{Obj[0].focus();}catch(e1){}} 			return false; 		}, 		throwSuccess:function(Obj,Msg,ErrType,DivId){ 			if(!ErrType) return true; 			else if(ErrType==1){ 				var DivObj = ($ip(DivId)) ? $ip(DivId) : new Object; 				DivObj.innerHTML = ""; 				DivObj.style.display="none"; 			}else{ 				/* Exit All LightBox Eff*/ 				return true; 			} 			return true; 		}, 		populate : function(Obj,frm,bflag,isBuyer,addAny){ 			var a=0; 			var bStr=""; 			if(!frm) frm=d.quicksearch; 			if(this.isObject(Obj)){ 				try{a=Obj.options[Obj.selectedIndex].value;}catch(e){a =Obj.value;} 			}else{a=Obj;} 			if(!bflag) bStr="individualhouse"; else bStr="bungalow"; 			if(a=="buy" || a=="sell" || a=="sale" || a=="0"){ 				arr = new Array('0','Property Type','allresidential','All Residential','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa', 'apartment_builderfloor','Builder Floor', 'bungalow_farmhouse','Farm House', 						'allcommercial','All Commercial', 'retail_retailshowroomshop','Retail Showroom/Shop', 'officespace_commercialbuilding','Commercial Building', 'officespace_officecomplex','Office Complex', 'officespace_itsoftwaretechnologypark','IT/ Software Technology Park', 						'specialeconomiczone','All SEZ', 'sez_commercialbuilding','Commercial Building', 'sez_industrialestate','Industrial Estate', 'sez_itsoftwaretechnologypark','IT/ Software Technology Park', 						'allland','All Land / Plots', 'land_residentialuse','Residential Land', 'land_commercialuse','Commercial Land', 'land_industrialuse','Industrial Land', 'land_agriculturaluse','Agricultural Land', 'land_farmhouseplots','Farm House Land' 						); 			}else if(a=="rent"){ 				arr =  new Array('0','Property Type','allresidential','All Residential','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa','apartment_servicedapartment','Serviced Apartment', 'bungalow_farmhouse','Farm House', 						'allcommercial','All Commercial', 'retail_retailshowroomshop','Retail Showroom/Shop', 'officespace_commercialbuilding','Commercial Building', 'officespace_officecomplex','Office Complex', 'officespace_itsoftwaretechnologypark','IT/ Software Technology Park', 						'specialeconomiczone','All SEZ', 'sez_commercialbuilding','Commercial Building', 'sez_industrialestate','Industrial Estate', 'sez_itsoftwaretechnologypark','IT/ Software Technology Park', 						'allland','All Land / Plots', 'land_residentialuse','Residential Land', 'land_commercialuse','Commercial Land', 'land_industrialuse','Industrial Land', 'land_agriculturaluse','Agricultural Land', 'land_farmhouseplots','Farm House Land'); 			}else if(a=="rentzone"){ 				arr =  new Array('0','Property Type','allresidential','All Residential','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa','apartment_servicedapartment','Serviced Apartment', 'bungalow_farmhouse','Farm House', 						'allcommercial','All Commercial', 'retail_retailshowroomshop','Retail Showroom/Shop', 'officespace_commercialbuilding','Commercial Building', 'officespace_officecomplex','Office Complex', 'officespace_itsoftwaretechnologypark','IT/ Software Technology Park'); 			}else if(a=="accommodation"){ 				arr =  new Array('0','Property Type','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa');/*,'any','Any'*/ 			}else{ 				arr = new Array('0','Property Type','allresidential','Residential','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa', 'apartment_builderfloor','Builder Floor', 'bungalow_farmhouse','Farm House'); 			} 			if(isBuyer){arr = new Array('0','Property Type','apartment','Apartment',bStr,'Independent house','retail','Retail space','officespace','Office space','land','Land','specialeconomiczone','SEZ (Special Economic Zone)');} 			if(addAny){arr.push('any'); arr.push('Any');} 			var ObjPropertyCat = frm.property; 			for(i=0;i<ObjPropertyCat.length;i++) ObjPropertyCat.options[i]=null; 			ObjPropertyCat.options.length = 0; 			for(i=0;i<arr.length;i+=2){ 				ObjPropertyCat.options[i/2] = new Option(arr[i+1],arr[i]); 				if(arr[i].toLowerCase().indexOf("all")==0 || arr[i].toLowerCase().indexOf("any")==0 || arr[i].toLowerCase().indexOf("specialeconomiczone")==0){ObjPropertyCat.options[i/2].className = "optionbg";} 			} 		}, 		getPropertyTypeArr:function(trans,propertyArr,Obj,addOptionsPrefix,addOptionsSuffix){ 			var arr=new Array(); 			var tempArr=new Array(); 			switch(trans){ 				case "affordable": 					tempArr = propertyArr.sell; 					break; 				case "rent": 					tempArr = propertyArr.rent; 					break; 				case "accommodation": 				case "pg": 					try{tempArr = [["allresidential|All Residential","apartment_individualapartment|Apartment","bungalow_individualhouse|Independent House\/Villa"]];}catch(e){ip.traceErr(e,"getPropertyTypeArr");tempArr=propertyArr.sell;} 					break; 				default: 					tempArr = propertyArr.sell; 					break; 			} 			if(addOptionsPrefix && addOptionsPrefix!="") arr.push(addOptionsPrefix); 			for (var i=0; i<tempArr.length; i++) for (var j=0; j<tempArr[i].length; j++) arr.push(tempArr[i][j]); 			if(addOptionsSuffix && addOptionsSuffix!="") arr.push(addOptionsSuffix); 			for(i=0;i<Obj.length;i++) Obj.options[i]=null; 			Obj.options.length = 0; 			for(i=0;i<arr.length;i++){ 				optArr = arr[i].split("|"); 				Obj.options[i] = new Option(optArr[1],optArr[0]); 				if(optArr[0].toLowerCase().indexOf("all")==0 || optArr[0].toLowerCase().indexOf("any")==0 || optArr[0].toLowerCase().indexOf("specialeconomiczone")==0){Obj.options[i].className = "optionbg";} 			} 		}, 		genProperty: function(trans,frm,bflag,isBuyer){ 			this.populate(trans,frm,bflag,isBuyer); 		}, 		populateCatType: function(trans,frm,ObjCat,ObjType,isCat,byCatType,showBoth,needPrefix,fromPage,addAnyinPropType){ 			/*trans = transaction 			frm=Form Obj, 			ObjCat=>Property Obj 			ObjType=>Category Obj 			isCat=>Boolean, Category only 			byCatType=> Boolean, Property Based on Cat 			showBoth=>Boolean 			needPrefix,fromPage,addAnyinPropType*/ 			var t=null; 			if(trans==Object || typeof(trans)=="object"){ 				try{ 					if(trans.type=="hidden"){ 						t= trans.value; 					}else{ 						for (var i=0; i<trans.length; i++){ 							if(trans[i].checked){ 								t = trans[i].value; 							} 						} 					} 				} 				catch(e){t="sale";ip.traceErr(e,"populateCatType");} 			}else{t=trans;} 			if(t=="undefined" || t==null || t=="") t="sale"; 			t= t.toLowerCase(); 			if(!frm) frm=d.quicksearch; 			if(t=="rent"){ 				var arr = [ 				'0','Select Property Category',['0','Select Property type'], 				'allresidential',"Residential", ['0','Select Property type','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa', 'apartment_servicedapartment','Serviced Apartment', 'bungalow_farmhouse','Farm House'], 				'allcommercial','Commercial', ['0','Select Property type','retail_retailshowroomshop','Retail Showroom/Shop', 'officespace_commercialbuilding','Commercial Building', 'officespace_officecomplex','Office Complex', 'officespace_itsoftwaretechnologypark','IT/ Software Technology Park'], 				'specialeconomiczone','SEZ', ['0','Select Property type','sez_commercialbuilding','Commercial Building', 'sez_industrialestate','Industrial Estate', 'sez_itsoftwaretechnologypark','IT/ Software Technology Park'], 				'allland','Land / Plots', ['0','Select Property type','land_residentialuse','Residential Land', 'land_commercialuse','Commercial Land', 'land_industrialuse','Industrial Land', 'land_agriculturaluse','Agricultural Land', 'land_farmhouseplots','Farm House Land'] 				]; 			}else if(t=="rentzone"){ 				var arr = [ 				'0','Select Property Category',['0','Select Property type'], 				'allresidential',"Residential", ['0','Select Property type','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa', 'apartment_servicedapartment','Serviced Apartment', 'bungalow_farmhouse','Farm House'], 				'allcommercial','Commercial', ['0','Select Property type','retail_retailshowroomshop','Retail Showroom/Shop', 'officespace_commercialbuilding','Commercial Building', 'officespace_officecomplex','Office Complex', 'officespace_itsoftwaretechnologypark','IT/ Software Technology Park'] 				]; 			}else if(t=="accommodation"){ 				var arr = [ 					'0','Select Property Category',['0','Select Property type'], 					'allresidential',"Residential", ['0','Select Property type','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa'] 				]; 			}else{ 				var arr = [ 				'0','Select Property Category',['0','Select Property type'], 				'allresidential',"Residential", ['0','Select Property type','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa', 'apartment_builderfloor','Builder Floor', 'bungalow_farmhouse','Farm House'], 				'allcommercial','Commercial', ['0','Select Property type','retail_retailshowroomshop','Retail Showroom/Shop', 'officespace_commercialbuilding','Commercial Building', 'officespace_officecomplex','Office Complex', 'officespace_itsoftwaretechnologypark','IT/ Software Technology Park'], 				'specialeconomiczone','SEZ', ['0','Select Property type','sez_commercialbuilding','Commercial Building', 'sez_industrialestate','Industrial Estate', 'sez_itsoftwaretechnologypark','IT/ Software Technology Park'], 				'allland','Land / Plots', ['0','Select Property type','land_residentialuse','Residential Land', 'land_commercialuse','Commercial Land', 'land_industrialuse','Industrial Land', 'land_agriculturaluse','Agricultural Land', 'land_farmhouseplots','Farm House Land'] 				]; 			} 			if(fromPage=="listing"){ 				arr = null; 				arr = [ 				'0','Select Property Category',['0','Select Property type'], 				'allresidential',"Residential", ['0','Select Property type','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa'] 				]; 			} 			this.propCatArr=arr; 			var newArr = new Array(); 			if(isCat && !byCatType){/*Show only prop category*/ 				var selectObj = ObjCat; 				for (var i=0; i<arr.length; i++) { 					newArr[newArr.length] = arr[i]; 					newArr[newArr.length] = arr[i+1]; 					i=i+2; 				} 			}else if(byCatType){/*show prop type based on prop cat*/ 				var selectObj = ObjType; 				var catValue = ObjCat.options[ObjCat.selectedIndex].value; 				for (var i=0; i<arr.length; i+=3){ 					if(arr[i]==catValue){ 						newArr = arr[i+2]; 					} 				} 				if(addAnyinPropType==1){ 					newArr[newArr.length] = "any";newArr[newArr.length] = "Any"; 					newArr.remove(0,1); 				} 			} 			for(i=0;i<selectObj.length;i++) selectObj.options[i]=null; 			selectObj.options.length = 0; 			for(i=0;i<newArr.length;i+=2){ 				selectObj.options[i/2] = new Option(newArr[i+1],newArr[i]); 				/*if(newArr[i].toLowerCase().indexOf("all")==0 || (newArr[i].toLowerCase().indexOf("any")==0 && addAnyinPropType!=1) || newArr[i].toLowerCase().indexOf("specialeconomiczone")==0){ 					selectObj.options[i/2].className = "optionbg"; 				}*/ 			} 		}, 		getPropAndCat : function(propOrCatVal){ 			var prop="",cat=""; 			var arr = [ 				'0','Select Property Category',['0','Select Property type'], 				'allresidential',"Residential", ['0','Select Property type','apartment_individualapartment','Apartment', 'bungalow_individualhouse','Independent House/Villa', 'apartment_servicedapartment','Serviced Apartment', 'apartment_builderfloor','Builder Floor', 'bungalow_farmhouse','Farm House'], 				'allcommercial','Commercial', ['0','Select Property type','retail_retailshowroomshop','Retail Showroom/Shop', 'officespace_commercialbuilding','Commercial Building', 'officespace_officecomplex','Office Complex', 'officespace_itsoftwaretechnologypark','IT/ Software Technology Park'], 				'specialeconomiczone','SEZ', ['0','Select Property type','sez_commercialbuilding','Commercial Building', 'sez_industrialestate','Industrial Estate', 'sez_itsoftwaretechnologypark','IT/ Software Technology Park'], 				'allland','Land / Plots', ['0','Select Property type','land_residentialuse','Residential Land', 'land_commercialuse','Commercial Land', 'land_industrialuse','Industrial Land', 'land_agriculturaluse','Agricultural Land', 'land_farmhouseplots','Farm House Land'] 			]; 			for (var i=0; i<arr.length; i+=3) { 				if(arr[i]==propOrCatVal){ 					prop=arr[i]; 					break; 				}else{ 					for (var j=0; j<arr[i+2].length; j+=2) { 						if(arr[i+2][j]==propOrCatVal){ 							prop=arr[i]; 							cat = arr[i+2][j]; 							break; 						} 					} 				} 			} 			return [prop,cat]; 		}, 		host : function(){ 			try{ 				if(location.href==null || location.href=="" || String(location.href).indexOf("indiaproperty")==-1){ 					return "http://www.indiaproperty.com"; 				} 				if(String(location.href).indexOf("base.indiaproperty")!=-1) return "http://base.indiaproperty.com/builderbase";/*This line for Builder Directory*/ 				var startDotCom = location.href.indexOf(".com"); 				startDotCom = startDotCom + 4; 				return (location.href.substring(0,startDotCom).indexOf("indiaproperty.com")) ? location.href.substring(0,startDotCom) : "http://www.indiaproperty.com"; 			}catch(e){return "http://www.indiaproperty.com";} 		}, 		area_calc:function(){ 			url="/index.php?option=calculator&page=plotareaconverter&notemplate=yes"; 			this.startLB(null,null,null,"aJax",null,url,"sqft"); 		}, 		calc:function(page){ 			url="/index.php?option=calculator&page="+page+"&notemplate=yes"; 			var Obj = (page=="emi") ? "emi_amount" : "affordamt"; 			this.startLB(null,null,null,"aJax",null,url,Obj); 		}, 		infiniteCharInString : function(string,Allchar){ 			for(var i=0; i<Allchar.length; i++) { 				arr = string.split(Allchar.charAt(i)); 				if( (parseInt(arr.length) - 1)>1) return false; 			} 			return true; 		}, 		strLen:function(Str){return new String(Str).length;}, 		LTrim : function(Str){ 			var i = 0; 			var j = Str.length - 1; 			if (Str== null){return (false);} 			for (i = 0; i < Str.length; i++){ 				if (Str.substr(i, 1) != ' ' && Str.substr(i, 1) != '\t') break; 			} 			if (i <= j) return (Str.substr(i, (j+1)-i)); 			else return (''); 		}, 		RTrim : function(Str){ 			var i = 0; 			var j = Str.length - 1; 			if(Str == null)return (false); 			for(j = Str.length - 1; j >= 0; j--){ 				if (Str.substr(j, 1) != ' ' && Str.substr(j, 1) != '\t') break; 			} 			if (i <= j) return (Str.substr(i, (j+1)-i)); 			else return (''); 		}, 		Trim : function(Str){ 			if (Str == null) return (false); 			return this.RTrim(this.LTrim(Str)); 		}, 		changeCount : function(obj,maxLimit,ElementID){ 			try{ 				if(ip.strLen(obj.value)>maxLimit){ 					obj.value = obj.value.substr(0,maxLimit); 				}else{ 					$ip(ElementID).innerHTML = "[" + parseInt(maxLimit - ip.strLen(obj.value)) + " characters left]"; 				} 			}catch(e){this.traceErr(e,'changeCount','common');} 		}, 		print : function(Str){ 			try{ 				if($ip("divDebug")){ 					with($ip("divDebug")){ 						style.padding = "10px"; 						style.display = "none"; 						innerHTML+='<br /><span style="color:#'+Math.floor(Math.random() * 999999)+'">' + Str+'</span>'; 					} 				}else{window.setTimeout(function(){ip.print(Str)},3000);} 			}catch(e){this.traceErr(e,'ip.print','common');} 		}, 		Show : function(e){try{e.style.display ="";}catch(e){this.traceErr(e,'ip.Show','common');}}, 		Hide : function(e){try{e.style.display ="none";}catch(e){this.traceErr(e,'ip.Hide','common');}}, 		createLoadingDiv : function(ID,Msg,position,Page){ 			var xy = this.getCenterXY(250,50); 			var loadingLeft = xy[0] + "px"; 			var loadingTop = xy[1] + "px"; 			if(!Page){ 				if(!Msg) Msg="Loading..."; 				if(!position) position = "center"; 				e=$ip(ID); 				e.style.position = "absolute"; 				/*//e.style.display="none";*/ 				e.style.opacity = "0.9"; 				e.style.filter ="alpha(opacity:80)"; 				e.style.left = loadingLeft; 				e.style.top = loadingTop; 				e.style.border = "0px"; 				e.style.background = "#E0F1F9 url('http://imgs.indiaproperty.com/bg/bg.gif')"; 				e.style.fontFamily ="verdana"; 				e.style.fontSize = "12px"; 				e.style.fontWeight="normal"; 				e.style.color = "#000"; 				e.style.padding = "10px"; 				e.style.zIndex = "1001"; 				e.innerHTML = ip.loading(Msg); 				this.floatdiv(ID,loadingLeft,loadingTop); 				$ip(ID).floatIt(); 			}else{ 					this.floatdiv(ID,loadingLeft - 100,loadingTop - 300); 					$ip(ID).floatIt(); 			} 			/*var b = d.getElementsByTagName("body")[0]; 			var e = d.createElement("div"); 			e.id = ID; 			try{b.appendChild(e);}catch(e){e=$ip(ID);} 			*/ 		}, 		floatdiv:function(id, sx, sy){ 			var el=$ip?$ip(id):d.all?d.all[id]:d.layers[id]; 			var px = d.layers ? "" : "px"; 			window[id] = el; 			if(d.layers)el.style=el; 			el.cx = el.sx = sx; 			el.cy = el.sy = sy; 			el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;}; 			el.floatIt=function(){ 				/*var pX, pY; 				try{pX = (this.sx >= 0) ? 0 : (ns ? innerWidth : d.documentElement && d.documentElement.clientWidth) ? d.documentElement.clientWidth : d.body.clientWidth;}catch(e){} 				try{pY = ns ? pageYOffset : d.documentElement && d.documentElement.scrollTop ? d.documentElement.scrollTop : d.body.scrollTop;}catch(e){} 				try{if(this.sy<0) pY += ns ? innerHeight : d.documentElement && d.documentElement.clientHeight ? d.documentElement.clientHeight : d.body.clientHeight;}catch(e){} 				this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8; 				this.sP(this.cx, this.cy); 				*/ 				var xy = ip.getCenterXY(250,50); 				this.cy = xy[1] + "px"; 				setTimeout(this.id + ".floatIt()", 1); 			}; 			return el; 		}, 		getPageScroll : function(){ 			var scrOfX = 0, scrOfY = 0; 			if( typeof( window.pageYOffset ) == 'number' ) { 				/*Netscape compliant*/ 				scrOfY = window.pageYOffset; 				scrOfX = window.pageXOffset; 			} else if( d.body && ( d.body.scrollLeft || d.body.scrollTop ) ) { 				/*DOM compliant*/ 				scrOfY = d.body.scrollTop; 				scrOfX = d.body.scrollLeft; 			} else if( d.documentElement && ( d.documentElement.scrollLeft || d.documentElement.scrollTop ) ) { 				/*IE6 standards compliant mode*/ 				scrOfY = d.documentElement.scrollTop; 				scrOfX = d.documentElement.scrollLeft; 			} 			return [ scrOfX, scrOfY ]; 		}, 		getCenterXY : function(w,h){ 			var x=0,y=0; 			x = (this.getPageSize()[2] - w) / 2; 			y = (this.getPageScroll()[1] + ((this.getPageSize()[3] - h) / 2)); 			return [x,y]; 		}, 		makeCenter : function(Obj,w,h){ 			if(!w){w=Obj.offsetWidth;} 			if(!h){h=Obj.offsetHeight;} 			var xy = this.getCenterXY(w,h); 			with(Obj.style){ 				left = xy[0] + "px"; 				top= xy[1] + "px"; 			} 		}, 		getScrollWidth : function(){ 			var w = window.pageXOffset || d.body.scrollLeft || d.documentElement.scrollLeft; 			return w ? w : 0; 		}, 		getScrollHeight : function (){ 			var h = window.pageYOffset || d.body.scrollTop || d.documentElement.scrollTop; 			return h ? h : 0; 		}, 		getPageSize : function(){ 			var xScroll, yScroll; 			if (window.innerHeight && window.scrollMaxY) { 				xScroll = d.body.scrollWidth; 				yScroll = window.innerHeight + window.scrollMaxY; 			} else if (d.body.scrollHeight > d.body.offsetHeight){ /* all but Explorer Mac*/ 				xScroll = d.body.scrollWidth; 				yScroll = d.body.scrollHeight; 			} else { /* Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari*/ 				xScroll = d.body.offsetWidth; 				yScroll = d.body.offsetHeight; 			} 			var windowWidth, windowHeight; 			if (self.innerHeight) {	/* all except Explorer*/ 				windowWidth = self.innerWidth; 				windowHeight = self.innerHeight; 			} else if (d.documentElement && d.documentElement.clientHeight) { /* Explorer 6 Strict Mode*/ 				windowWidth = d.documentElement.clientWidth; 				windowHeight = d.documentElement.clientHeight; 			} else if (d.body) { /* other Explorers */ 				windowWidth = d.body.clientWidth; 				windowHeight = d.body.clientHeight; 			} 			/* for small pages with total height less then height of the viewport*/ 			if(yScroll < windowHeight){ 				pageHeight = windowHeight; 			} else { 				pageHeight = yScroll; 			} 			/* for small pages with total width less then width of the viewport*/ 			if(xScroll < windowWidth){pageWidth = windowWidth;} else {pageWidth = xScroll;} 			arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight); 			return arrayPageSize; 		}, 		getPos: function(inputElement) { 			var coords =  new Object(); 			coords.x = 0; 			coords.y = 0; 			try { 				targetElement = inputElement; 				if(targetElement.x && targetElement.y) { 					coords.x = targetElement.x; 					coords.y = targetElement.y; 				} else { 					if(targetElement.offsetParent) { 						coords.x += targetElement.offsetLeft; 						coords.y += targetElement.offsetTop; 						while(targetElement = targetElement.offsetParent) { 							coords.x += targetElement.offsetLeft; 							coords.y += targetElement.offsetTop; 						} 					} else { 						/*/alert("Could not find any reference for coordinate positioning.");*/ 					} 				} 				return coords; 			} catch(e){ 				ip.traceErr(e,"getPos","ipCommon"); 				return coords; 			} 		}, 		getStyle : function (obj, styleProp){ 			if (obj.currentStyle) return obj.currentStyle[styleProp]; else if (window.getComputedStyle) return d.defaultView.getComputedStyle(obj,null).getPropertyValue(styleProp); 		}, 		traceErr : function(e,from,jsFile,NoPrintStatus){ 			if(!NoPrintStatus) ip.print("<b><i>Func : " + from + "</i></b>, "+ e.name +" : " + e.message + ", Desc = "+ e.description + ", JS : " + jsFile + ", LineNumber : " + e.lineNumber); 		}, 		sleep : function(func,time){ 			window.setTimeout(func,time); 		}, 		setTimer : function(func,time){ 			window.setInterval(func,time); 		}, 		startKeyDetect : function(f){ 			/* Netscape 4 Need this IF Condition */ 			if(d.captureEvents && Event.KEYUP ) d.captureEvents( Event.KEYUP ); 			if(!f) return; else d.onkeyup = f; 		}, 		startMouseDetect : function(){ 			if(!ie){ if(d.captureEvents && Event.MOUSEMOVE) d.captureEvents(Event.MOUSEMOVE);} 			d.onmousemove = this.getMouseXY; 		}, 		stopEvent : function(e){ 			try{ 				e.returnValue = false; 				e.cancelBubble = true; 				if(e.stopPropagation) e.stopPropagation(); 				/*Event.stop(e);*/ 			}catch(e){ip.traceErr(e,"stop event","comon")} 		}, 		getMouseXY : function(e){ 			if( !e ) { e = window.event; } 			if( !e ) { return; } 			if( typeof( e.pageX ) == 'number' ) { 				ip.mouseX = e.pageX; 				ip.mouseY = e.pageY; 			} else if( typeof( e.clientX ) == 'number' ) { 				ip.mouseX = e.clientX; 				ip.mouseY = e.clientY; 				if( d.body && ( d.body.scrollLeft || d.body.scrollTop ) ) { 					ip.mouseX += d.body.scrollLeft; 					ip.mouseY += d.body.scrollTop; 				} else if( d.documentElement && ( d.documentElement.scrollLeft || d.documentElement.scrollTop ) ) { 					ip.mouseX += d.documentElement.scrollLeft; 					ip.mouseY += d.documentElement.scrollTop; 				} 			}else { return; } 			return; 		}, 		getKey : function(e){ 			if( !e ) { 				if( window.event ) { 					e = window.event; 				} else { 					return 0; 				} 			} 			if( typeof( e.keyCode ) == 'number'  ) { 				e = e.keyCode; 			} else if( typeof( e.which ) == 'number' ) { 				e = e.which; 			} else if( typeof( e.charCode ) == 'number'  ) { 				e = e.charCode; 			} else { 				return 0; 			} 			var rKey = parseInt(e); 			if(ip.confirmActive){ 				if(rKey==27 || rKey==32){/*esc || enter (is problem) || space */ 					ip.exitConfirm($ip('divLBAlert'),0); 					return false; 				} 			} 			if(ip.simpleAlertActive){ 				if(rKey==27 || rKey==32){/*esc || enter (is problem) || space */ 					ip.exitSimpleAlert($ip('divLBAlert'),ip.simpleAlertObject); 					return false; 				} 			} 			if(ip.lbActive){ 				if(rKey==27 || (rKey==32 && ip.lbType!="aJax") ){/*esc || enter (is problem) || space */ 					ip.exitLB($ip('divLBcontent'),ip.lbObject); 					return false; 				} 			} 			return [e,String.fromCharCode( e )]; 		}, 		onRightClick : function(e, evElement, f){ 			if( !e ) { 				if( window.event ) { 					e = window.event; 				} else { 					return; 				} 			} 			if( typeof( e.which ) == 'number' ) { 				e = e.which; 			} else if( typeof( e.button ) == 'number' ) { 				e = e.button; 			}else{ 				return; 			} 			if( !evElement ) { evElement = this; } 			if(e==3) f; 		}, 		formQueryString : function(frm,Arr){ 			var Qry=""; 			if(!Arr){ 				for (var i=0; i<frm.elements.length; i++) { 					Qry+=frm.elements[i].name + "=" + frm.elements[i].value; 					if(frm.elements.length!=i) Qry+="&"; 				} 			}else{ 				for (var i=0; i<Arr.length; i++) { 					Qry+=frm.elements[Arr[i]].name + "=" + frm.elements[Arr[i]].value; 					if(Arr.length!=i) Qry+="&"; 				} 			} 			return Qry; 		}, 		isObject : function(Obj){return (!Obj || Obj==null || Obj=="undefined" || typeof(Obj)=="string") ? false : true;}, 		isValidSTD : function(e){}, 		isValidLandline: function(e){}, 		isValidMobile: function(e){}, 		isValidName: function(e){} 	}; 	var Preloader = { 		callbacks: [], 		images: [], 		loadedImages: [], 		imagesLoaded: 0, 		add: function(image){ 			if (typeof image == 'string') this.images.push(image); 			if (typeof image == 'array' || typeof image == 'object'){for (var i=0; i< image.length; i++){this.images.push(image[i]);}} 		}, 		onFinish: function(func){ 			if (typeof func == 'function') this.callbacks.push(func); 			if (typeof func == 'array' || typeof func == 'object'){for (var i=0; i< func.length; i++){this.callbacks.push(func[i]);}} 		}, 		load: function(){ 			for(var i=0; i<this.images.length; i++){ 				this.loadedImages[i]= new Image(); 				this.loadedImages[i].onload = function(){Preloader.checkFinished.apply(Preloader);}; 				this.loadedImages[i].src = this.images[i]; 			} 		}, 		checkFinished: function(){ 			this.imagesLoaded++; 			if(this.imagesLoaded == this.images.length){this.fireFinish();} 		}, 		fireFinish: function(){ 			for (var i=0; i<this.callbacks.length; i++){this.callbacks[i]();} 			this.images = []; 			this.loadedImages = []; 			this.imagesLoaded = 0; 			this.callbacks = []; 		} 	}; 	function StartPreLoader(ImageSrc,ImageId,LoadingDivId){ 		Preloader.add(ImageSrc); 		var finishFunc = function(){ 			if($ip(LoadingDivId)){$ip(LoadingDivId).style.display = 'none';} 			if($ip(ImageId)){$ip(ImageId).src =ImageSrc;} 		}; 		Preloader.onFinish(finishFunc); 		Preloader.load(); 	} 	function onSaleRent(Obj,frm){ 		if(!frm) frm=d.quicksearch; 		var SR = [$ip("tranS"), $ip("tranR"), ($ip("tranPG") || new Object())]; 		try{ 			if(Obj.className == "radioN"){ 				Obj.className == "radioY"; 				frm.transaction.value=Obj.title; 				SR[0].className = (Obj.title=="sale") ? "radioY" : "radioN"; 				SR[1].className = (Obj.title=="rent") ? "radioY" : "radioN"; 				SR[2].className = (Obj.title=="accommodation") ? "radioY" : "radioN"; 			} 		}catch(e){ip.traceErr(e,"onSaleRent","ip_common");} 		if(ipPropertyTypeArr!=null) ip.getPropertyTypeArr(frm.transaction.value,ipPropertyTypeArr,frm.property,"0|Property Type"); else ip.populate(frm.transaction,frm); 	} 	function searchPropertiesBy(frm,CurrentObj){ 		/*	0 - All ,	1-Ind,	2-Builder,	3-Agents */ 		/* 0 - ind, 1-Agents, 2- builder, 3- All */ 		var Status = CurrentObj.checked; 		var objArr = frm.elements["strusertype[]"]; 		if(CurrentObj==objArr[3] && Status){ 			for (var i=0; i<objArr.length; i++) {objArr[i].checked=false;} 			CurrentObj.checked = true; 		}else if(objArr[0].checked && objArr[1].checked && objArr[2].checked){ 			for (var i=0; i<objArr.length; i++) {objArr[i].checked=false;} 			objArr[3].checked =true; 		}else{ 			objArr[3].checked =false; 		} 	} 	var ArrText = new Array("Delhi / NCR (All)","Delhi NCR (All)","Mumbai (All)","Bangalore (All)","Chennai (All)","Hyderabad (All)","Ahmedabad (All)","International Cities","Any City","Other Cities","Kolkata (All)","Kochi (All)","Pune (All)"); 	var ArrNew = new Array("Delhi","Delhi","Mumbai","Bangalore","Chennai","Hyderabad","Ahmedabad","AbuDhabi","Any","Others","Kolkata","Kochi","Pune"); 	function propertiesByArray(e){ 		var propByArr=""; 		for (var i=0; i<e.length; i++){ 			propByArr = propByArr + ( (e[i].checked) ? ((propByArr=="") ? "" : "|") + e[i].value  : ""); 		} 		return propByArr; 	} 	function checkquicksearchbox(frm){ 		if(!frm) frm = d.quicksearch; 		try{if(!IsMandatory(frm.transaction,"select","Please Select Transaction Type",2)) return false;}catch(e){} 		if(!IsMandatory(frm.property,"select","Please Select Property type",2)) return false; 		if(!IsMandatory(frm.city,"select","Please Select City",2))  return false; 		tempcity = frm.city.options[frm.city.selectedIndex].text; 		for(var i=0; i<ArrText.length; i++) {if(tempcity==ArrText[i]) tempcity=ArrNew[i];} 		tempcity=tempcity.replace(" ","+"); 		var qry = (( String(ip.host()).indexOf("yahoo.indiaproperty")==-1) ? "http://www.indiaproperty.com" : ip.host() ) + "/search/" +  frm.transaction.value + "/" + frm.property.options[frm.property.selectedIndex].value + "-in/"; 		try{ 			var usertypeArr = frm.elements["strusertype[]"]; 			var newpath = "/"; 			var propByArr=propertiesByArray(usertypeArr); 			var ipCookie = new ip_cookie(); 			ipCookie.setCookie("fltrprice",propByArr,1990,1,1,newpath); 			ipCookie.setCookie("constraint",propByArr,1990,1,1,newpath); 			ipCookie.setCookie("propertyBy",propByArr,"","","",newpath); 		}catch(e){ 			ip.traceErr(e); 		} 		window.location.href = qry + tempcity + ".html"; 		return false; 	} 	var hidenObjs= new Array(); 	function ipLightBox(divID, method, msg, width, height, url){ 		this.mainDivObj = (typeof($ip(divID))=="object") ? $ip(divID) : ( $ip("divLightBox") ) ? $ip("divLightBox") : null; 		this.method = method || "message"; 		this.msg = msg; 		this.failureMessage = "Sorry! Initialization failed."; 		this.url = url; 		this.width = width; 		this.height = height; 		switch(method){ 			case "ajax": 				break; 			default: 				break; 		} 	}; 	ipLightBox.prototype.init = function(){ 		this.mainDivObj = (this.mainDivObj==null || this.mainDivObj=="undefined") ? $ip("divLightBox") : this.mainDivObj; 		if(ie && ip.simpleAlertActive==false) hideLayerObjects(); 		with(this.mainDivObj.style){ 			display = ""; 			position = "absolute"; 			left = "0px"; 			top = "0px"; 			width = ((ip.getPageSize()[0]>1020) ? ip.getPageSize()[0] - 25 : ip.getPageSize()[0]) + "px"; 			height = ip.getPageSize()[1] + "px"; 		}; 	}; 	ipLightBox.prototype.exit= function(){ 		try{ 			this.mainDivObj.style.display="none"; 			if(ie && ip.simpleAlertActive==false) showHiddenLayerObjects(); 		}catch(e){} 	}; 	ipLightBox.prototype.startEffect= function(){ 	}; 	ipLightBox.prototype.setCenterPos= function(Obj){ip.makeCenter(Obj);}; 	function ip_cookie(){ 		this.cookieString = ""; 	} 	ip_cookie.prototype.setCookie = function(cName,val, exp_y, exp_m, exp_d, path, domain, secure){ 		this.cookieString = cName + "=" + val; 		if(exp_y){ 			var expires = new Date ( exp_y, exp_m, exp_d ); 			this.cookieString += "; expires=" + expires.toGMTString(); 		} 		if(path)this.cookieString += "; path=" + path; 		if (domain) this.cookieString += "; domain=" + domain; else this.cookieString += "; domain=.indiaproperty.com"; 		if(secure) this.cookieString += "; secure"; 		document.cookie = this.cookieString; 	}; 	ip_cookie.prototype.getCookie = function(name){ 		if(document.cookie.length>0){ 			c_start=document.cookie.indexOf(name + "="); 			if (c_start!=-1){ 				c_start=c_start + name.length+1; 				c_end=document.cookie.indexOf(";",c_start); 				if (c_end==-1) c_end=document.cookie.length; 				return unescape(document.cookie.substring(c_start,c_end)); 			} 		} 		return ""; 	}; 	function hideLayerObjects(conditionObjs){ 		var overlayObjs = ["select","embed","iframe"]; 		for (var i=0; i<overlayObjs.length; i++) { 			var objArr = d.getElementsByTagName(overlayObjs[i]); 			for (var j=0; j<objArr.length; j++) { 				if(objArr[j].style.display=="none") hidenObjs[hidenObjs.length] = objArr[j]; 				objArr[j].style.display = "none"; 			} 		} 	} 	function showHiddenLayerObjects(){ 		var overlayObjs = ["select","embed","iframe"]; 		for (var i=0; i<overlayObjs.length; i++) { 			var objArr = d.getElementsByTagName(overlayObjs[i]); 			for (var j=0; j<objArr.length; j++){ 				objArr[j].style.display = ""; 			} 		} 		for (var i=0; i<hidenObjs.length; i++) {hidenObjs[i].style.display="none";} 	} 	function getverticalcss(city,isVertical){ 		try{ 			if(!isVertical && city){ 				var current_dom=window.location.href; 				var city_arr=["delhi","mumbai","bangalore","chennai","hyderabad","kochi","pune","kolkata","upcomingprojects","residential","commercial","landplots","builders","agents","tamilnadu","affordablehousing","chandigarh","ahmedabad","rent"]; 				for(i=0;i<city_arr.length;i++){ 					if(current_dom.indexOf(city_arr[i])!=-1){ 						$ip("link"+ip.toTitleCase(city_arr[i])).className="active"; 					} 				} 			}else if(city!=0 && isVertical){ 				$ip("link"+ip.toTitleCase(cityName)).className="active"; 				$ip("link"+ip.toTitleCase(isVertical)).className="active"; 			}else{ 				$ip("link"+ip.toTitleCase(isVertical)).className="active"; 			} 			setPropertyBytes(); 		}catch(e){ip.traceErr(e,"headNav","common.js");} 	} 	function setPropertyBytes(){ 		ip.sleep(function(){ 			if(typeof ($ip("div_propertybytes"))!="object") return false; 			try{$ip("div_propertybytes").style.display="";}catch(e){return false;} 			var date = new Date(); 			var sReq = new getHTTPObject(); 			var url = ip.host() + "/probyarticles.php?city=1&rndm="+date.getTime(); 			$ip("div_propertybytes").innerHTML = "<br /><br />"+ ip.loading("Loading Property News...<br /><br /><br />"); 			sReq.open("get",url,true); 			sReq.onreadystatechange = function(){ 				if(sReq.readyState==4){ 					var res = sReq.responseText; 					$ip("div_propertybytes").innerHTML ='<div style="padding:10px 0px;">' + res + '</div>'; 				} 			}; 			sReq.send(null); 		},3000); 	} 	function ip_tracker(){ 		var thisObj = this; 		this.ipMail = { 			openURL : "", 			sentURL : "http://l4.zedo.com/log/p.gif?a=458766;g=0;c=570001889;x=3840;n=570;i=0;e=i;s=111;z=[timestamp]", 			trackOpen : function(){thisObj.intializeTrack(this.openURL);}, 			trackSent : function(){thisObj.intializeTrack(this.sentURL);} 		}; 		this.ipSMS = { 			openURL : "", 			sentURL : "http://l4.zedo.com/log/p.gif?a=458764;g=0;c=570001888;x=3840;n=570;i=0;e=i;s=111;z=[timestamp]", 			trackOpen : function(){thisObj.intializeTrack(this.openURL);}, 			trackSent : function(){thisObj.intializeTrack(this.sentURL);} 		}; 		this.ipC2C = { 			openURL : "http://l4.zedo.com/log/p.gif?a=458758;g=0;c=570001887;x=3840;n=570;i=0;e=i;s=111;z=[timestamp]", 			sentURL : "", 			trackOpen : function(){thisObj.intializeTrack(this.openURL);}, 			trackSent : function(){thisObj.intializeTrack(this.sentURL);} 		}; 		this.ipQuickSearch={ 			openURL : "http://l4.zedo.com/log/p.gif?a=458767;g=0;c=570001890;x=3840;n=570;i=0;e=i;s=111;z=[timestamp]", 			sentURL : "", 			trackOpen : function(){ /* thisObj.intializeTrack(this.openURL); */ }, 			trackSent : function(){/* thisObj.intializeTrack(this.sentURL); */} 		}; 		this.ipAdvanceSearch={ 			openURL : "http://l4.zedo.com/log/p.gif?a=458770;g=0;c=570001891;x=3840;n=570;i=0;e=i;s=111;z=[timestamp]", 			sentURL : "", 			trackOpen : function(){/*thisObj.intializeTrack(this.openURL);*/}, 			trackSent : function(){/* thisObj.intializeTrack(this.sentURL); */ } 		}; 		this.ipSearchListingID={ 			openURL : "", 			sentURL : "", 			trackOpen : function(){thisObj.intializeTrack(this.openURL);}, 			trackSent : function(){thisObj.intializeTrack(this.sentURL);} 		}; 	}; 	ip_tracker.prototype.intializeTrack = function(url){ 		var bodyObj = d.getElementsByTagName("body")[0]; 		try{ 			var iframeObj = d.createElement("iframe"); 			iframeObj.id = "ipTrackIFrame"+ip.randomN(); 			iframeObj.src = url; 			iframeObj.height="1"; 			iframeObj.width="1"; 			iframeObj.style.display= "none"; 			iframeObj.style.visibility= "hidden"; 			iframeObj.style.height="1px"; 			try{bodyObj.appendChild(iframeObj);}catch(e){ip.traceErr(e,"intializeTrack","ip_track");} 		}catch(e){ip.traceErr(e,"tracker");} 	}; 	function validateID(frm){ 		var first2letter = frm.listingid.value.substr(0,2); 		var next6letter = frm.listingid.value.substr(2,6); 		if(!IsMandatory(frm.listingid,"text","Please enter a Property ID",2,"Div_listingid")) return false; 		if(IsMin(frm.listingid.value,8)) return ip.throwErr(frm.listingid,"Please enter a valid IndiaProperty ID eg:IP123456",2,"Div_listingid"); 		if( (first2letter.toLowerCase() == "ip" || first2letter.toLowerCase() == "ib" || first2letter.toLowerCase() == "ia" || first2letter.toLowerCase() == "bl")){ 			if(!IsFoundCharacters(next6letter,"1234567890")) return ip.throwErr(frm.listingid,"Please enter a valid IndiaProperty ID eg:IP123456",2,"Div_listingid"); 		}else return ip.throwErr(frm.listingid,"Please enter a valid IndiaProperty ID eg:IP123456",2,"Div_listingid"); 		ip.OpenPage(ip.host() + "/index.php?option=search&page=searchbyidresult&listingid="+frm.listingid.value); 		ip.exitLB(); 		return false; 	} 	function ip_radioGroup(frm,radioName,styles){ 		this.frm = frm; 		this.radioName=radioName; 		this.styles=(!styles) ? {active:"radioY_13",deactive:"radioN_13"} : styles; 		this.currentRadioTitle=null; 		this.currentRadio=null; 	}; 	ip_radioGroup.prototype.onChangeRadio = function(e){ 		if(!ip.isObject(e)){ip.print("e is not an Object");return;} 		if(this.currentRadioTitle==e.title) return; 		var hiddenObj = this.frm.elements[e.rel]; 		if(!ip.isObject(hiddenObj)) return; 		if(this.currentRadio!=null)this.currentRadio.className=this.styles.deactive; 		this.currentRadioTitle=e.title; 		this.currentRadio=e; 		hiddenObj.value = e.title; 		e.className = this.styles.active; 	}; 	Array.prototype.remove = function(from, to){ 		var rest = this.slice((to || from) + 1 || this.length); 		this.length = from < 0 ? this.length + from : from; 		return this.push.apply(this, rest); 	}; 	window.onload = function(){ 		lb = new ipLightBox('divLightBox','',"",250); 		lbA = new ipLightBox('divLBAlertWindow','',"",250); 		StartPreLoader(preImgs); 	}; 	window.onresize = function(){ip.makeCenterLB();}; 	window.onscroll = function(){ip.makeCenterLB();}; 	d.onresize = function(){ip.makeCenterLB();}; 	d.onscroll = function(){ip.makeCenterLB();}; 	var preImgs = ["http://imgs.indiaproperty.com/bg/ipheadbg.gif","http://imgs.indiaproperty.com/curves/lbox_b_rc.gif","http://imgs.indiaproperty.com/curves/lbox_lc.gif", 							"http://imgs.indiaproperty.com/curves/lbox_rc.gif","http://imgs.indiaproperty.com/dots/lbox_dot_l.gif","http://imgs.indiaproperty.com/dots/lbox_dot_b.gif", 							"http://imgs.indiaproperty.com/curves/h_blc.gif","http://imgs.indiaproperty.com/curves/h_brc.gif","http://imgs.indiaproperty.com/curves/h_lc.gif", 							"http://imgs.indiaproperty.com/curves/h_rc.gif","http://imgs.indiaproperty.com/bg/h_n_bg.gif","http://imgs.indiaproperty.com/curves/h_n_lc.gif", 							"http://imgs.indiaproperty.com/curves/h_n_rc.gif","http://imgs.indiaproperty.com/bg/h_n_a_bg.gif","http://imgs.indiaproperty.com/dots/h_n_dot.gif", 							"http://imgs.indiaproperty.com/dots/dot2_79A4CE.gif","http://imgs.indiaproperty.com/curves/box_bg.gif","http://imgs.indiaproperty.com/curves/box_rc.gif", 							"http://imgs.indiaproperty.com/curves/box_lc.gif","http://imgs.indiaproperty.com/bg/buttonbg.gif","http://imgs.indiaproperty.com/buttons/closex.gif","http://imgs.indiaproperty.com/buttons/closex_hover.gif"];