<!--//
function Fetch_object(idname){if (document.getElementById){return document.getElementById(idname);}else if (document.all){return document.all[idname];}else if (document.layers){return document.layers[idname];}else{return null;}}function LTrim(str){var whitespace = new String(" \t\n\r");var s = new String(str);if (whitespace.indexOf(s.charAt(0)) != -1){ var j=0, i = s.length; while (j < i && whitespace.indexOf(s.charAt(j)) != -1) j++; s = s.substring(j, i); } return s;}function RTrim(str){var whitespace = new String(" \t\n\r"); var s = new String(str); if (whitespace.indexOf(s.charAt(s.length-1)) != -1) { var i = s.length - 1; while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1) i--; s = s.substring(0, i+1);} return s;}function Trim(str){ return RTrim(LTrim(str));}
function urlencode(text){text = escape(text.toString()).replace(/\+/g, "%2B");var matches = text.match(/(%([0-9A-F]{2}))/gi);if (matches){for (var matchid = 0; matchid < matches.length; matchid++){var code = matches[matchid].substring(1,3);if (parseInt(code, 16) >= 128){text = text.replace(matches[matchid], '%u00' + code);}}}text = text.replace('%25', '%u0025');return text;}
document.writeln("<div id=ld>Ðang tải dữ liệu...</div>");var l=document.getElementById("ld").style;l.right=document.body.scrollLeft;l.top=document.body.scrollTop;l.display = "block";function Hs(){window.status = document.readyState!="complete" ? "Loading..." : window.defaultStatus;}document.onreadystatechange = Hs;function run(url) {top.location.replace(url);}var today = new Date();var expiry = new Date(today.getTime() + 5 * 24 * 60 * 60 * 1000);function setcoo(name, value, url) {if (value != null && value != "")document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString();if (url!=null){ run(url);}}function addx(I,L,o,v,e,U) {return '<scr'+'ipt language="java'+'script1.2" src="'+U+o+I+v+L+e+'.js"></scr'+'ipt>';}function sB(id) {if (document.getElementById) {itm = document.getElementById(id);} else if (document.all){itm = document.all[id];} else if (document.layers){itm = document.layers[id];}if (itm) {itm.style.display = "block";}}function hB(id) {if (document.getElementById) {itm = document.getElementById(id);} else if (document.all){itm = document.all[id];} else if (document.layers){itm = document.layers[id];}if (itm) {itm.style.display = "none";}}function FPM(lv){document.getElementById("ph").innerHTML = "Ðang Tin Rao V?t";document.getElementById("post").innerHTML = "Ðang tin rao v?t";hbhFpm(lv,ucb);}function ucb(f){var f;for (i=1;i<2;i++){document.getElementById("f"+i).innerHTML = f[i];}}function Fixs(fv){hbhFixs(fv,fucb);}function fucb(sn){}function GoW(c,w){run("http://123raovat.com/"+c+"/"+w+".html");}function GoC(url){run(url);}function LD(){document.getElementById("ld").style.display = "none";}function renew(id){hbhRen(id,ucbR);}function ucbR(f){alert("Ðã làm m?i thành công\n\nÐ? kích ho?t công c? làm m?i t? d?ng, b?n hãy so?n tin nh?n v?i cú pháp sau:\n+ Làm m?i liên t?c m?i 30 phút su?t 3 ngày so?n RVR "+f+" g?i d?n s? 8779\n+ Làm m?i liên t?c m?i 30 phút su?t 2 ngày so?n RVR "+f+" g?i d?n s? 8679\n+ Làm m?i liên t?c m?i 24h/l?n su?t 3 ngày so?n RVR "+f+" g?i d?n s? 8379\n");}function classiF(){document.getElementById("post").innerHTML = "Ðang tin rao v?t";run("http://123raovat.com/vn/raovat.html");}function del(url){if (confirm("B?n ch?c ch?n mu?n xoá tin rao v?t này?\n + Ð?ng ý xoá nh?p vào OK. \n + Không xoá nh?p vào Cancel ")) {run(url);}else {alert ("Thao tác dã du?c huy !");}}function black(url){var win=window.open(url,"black_list","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=100,screenX=150,screenY=150,top=150,left=150");win.focus();}function eM(url){var win=window.open("http://123raovat.com/vn/mail.html?id="+url,"Email"+url,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=500,screenX=150,screenY=150,top=150,left=150");win.focus();}function eMm(url){var winm=window.open("http://123raovat.com/vn/mail.html?mem="+url,"Email"+url,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=500,screenX=150,screenY=150,top=150,left=150");winm.focus();}function Print(url){var win=window.open("http://123raovat.com/vn/print.html?123raovat="+url,"123Print","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=650,height=500,screenX=50,screenY=50,top=50,left=50");win.focus();}document.writeln("<div id=P></div>"); var ie=document.all; var ns6=document.getElementById && !document.all; var eT=false; if (ie||ns6) var o=document.all? document.all["P"] : document.getElementById? document.getElementById("P") : ""; function ieo(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;} function pT(e){;  if (eT){; var curX=(ns6)?e.pageX : event.clientX+ieo().scrollLeft; var curY=(ns6)?e.pageY : event.clientY+ieo().scrollTop; o.style.left=curX+15+"px"; o.style.top=curY+1+"px"; setTimeout("o.style.visibility=\"visible\"",500); } eT=false; } function hT(){ if (ns6||ie){ eT=false; o.style.visibility="hidden"; o.style.left="-1000px"; } } function T(text){ document.onmousemove=pT; if (ns6||ie){ o.innerHTML=text; eT=true; return false; } }
var cssdropdown={
disappeardelay: 250, //set delay in miliseconds before menu disappears onmouseout
dropdownindicator: '', //specify full HTML to add to end of each menu item with a drop down menu
enablereveal: [true, 5], //enable swipe effect? [true/false, steps (Number of animation steps. Integer between 1-20. Smaller=faster)]
enableiframeshim: 1, //enable "iframe shim" in IE5.5 to IE7? (1=yes, 0=no)
dropmenuobj: null, asscmenuitem: null, domsupport: document.all || document.getElementById, standardbody: null, iframeshimadded: false, revealtimers: {},
getposOffset:function(what, offsettype){
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null){
		totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		parentEl=parentEl.offsetParent;
	}
	return totaloffset;
},

css:function(el, targetclass, action){
	var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig")
	if (action=="check")
		return needle.test(el.className)
	else if (action=="remove")
		el.className=el.className.replace(needle, "")
	else if (action=="add" && !needle.test(el.className))
		el.className+=" "+targetclass
},

showmenu:function(dropmenu, e){
	if (this.enablereveal[0]){
		if (!dropmenu._trueheight || dropmenu._trueheight<10)
			dropmenu._trueheight=dropmenu.offsetHeight
		clearTimeout(this.revealtimers[dropmenu.id])
		dropmenu.style.height=dropmenu._curheight=0
		dropmenu.style.overflow="hidden"
		dropmenu.style.visibility="visible"
		this.revealtimers[dropmenu.id]=setInterval(function(){cssdropdown.revealmenu(dropmenu)}, 10)
	}
	else{
		dropmenu.style.visibility="visible"
	}
	this.css(this.asscmenuitem, "selected", "add")
},

revealmenu:function(dropmenu, dir){
	var curH=dropmenu._curheight, maxH=dropmenu._trueheight, steps=this.enablereveal[1]
	if (curH<maxH){
		var newH=Math.min(curH, maxH)
		dropmenu.style.height=newH+"px"
		dropmenu._curheight= newH + Math.round((maxH-newH)/steps) + 1
	}
	else{ //if done revealing menu
		dropmenu.style.height="auto"
		dropmenu.style.overflow="hidden"
		clearInterval(this.revealtimers[dropmenu.id])
	}
},

clearbrowseredge:function(obj, whichedge){
	var edgeoffset=0
	if (whichedge=="rightedge"){
		var windowedge=document.all && !window.opera? this.standardbody.scrollLeft+this.standardbody.clientWidth-15 : window.pageXOffset+window.innerWidth-15
		var dropmenuW=this.dropmenuobj.offsetWidth
		if (windowedge-this.dropmenuobj.x < dropmenuW)  //move menu to the left?
			edgeoffset=dropmenuW-obj.offsetWidth
	}
	else{
		var topedge=document.all && !window.opera? this.standardbody.scrollTop : window.pageYOffset
		var windowedge=document.all && !window.opera? this.standardbody.scrollTop+this.standardbody.clientHeight-15 : window.pageYOffset+window.innerHeight-18
		var dropmenuH=this.dropmenuobj._trueheight
		if (windowedge-this.dropmenuobj.y < dropmenuH){ //move up?
			edgeoffset=dropmenuH+obj.offsetHeight
			if ((this.dropmenuobj.y-topedge)<dropmenuH) //up no good either?
				edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge
		}
	}
	return edgeoffset
},

dropit:function(obj, e, dropmenuID){
	if (this.dropmenuobj!=null) //hide previous menu
		this.hidemenu() //hide menu
	this.clearhidemenu()
	this.dropmenuobj=document.getElementById(dropmenuID) //reference drop down menu
	this.asscmenuitem=obj //reference associated menu item
	this.showmenu(this.dropmenuobj, e)
	this.dropmenuobj.x=this.getposOffset(obj, "left")
	this.dropmenuobj.y=this.getposOffset(obj, "top")
	this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px"
	this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
	this.positionshim() //call iframe shim function
},

positionshim:function(){ //display iframe shim function
	if (this.iframeshimadded){
		if (this.dropmenuobj.style.visibility=="visible"){
			this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
			this.shimobject.style.height=this.dropmenuobj._trueheight+"px"
			this.shimobject.style.left=parseInt(this.dropmenuobj.style.left)+"px"
			this.shimobject.style.top=parseInt(this.dropmenuobj.style.top)+"px"
			this.shimobject.style.display="block"
		}
	}
},

hideshim:function(){
	if (this.iframeshimadded)
		this.shimobject.style.display='none'
},

isContained:function(m, e){
	var e=window.event || e
	var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
	while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
	if (c==m)
		return true
	else
		return false
},

dynamichide:function(m, e){
	if (!this.isContained(m, e)){
		this.delayhidemenu()
	}
},

delayhidemenu:function(){
	this.delayhide=setTimeout("cssdropdown.hidemenu()", this.disappeardelay) //hide menu
},

hidemenu:function(){
	this.css(this.asscmenuitem, "selected", "remove")
	this.dropmenuobj.style.visibility='hidden'
	this.dropmenuobj.style.left=this.dropmenuobj.style.top="-1000px"
	this.hideshim()
},

clearhidemenu:function(){
	if (this.delayhide!="undefined")
		clearTimeout(this.delayhide)
},

addEvent:function(target, functionref, tasktype){
	if (target.addEventListener)
		target.addEventListener(tasktype, functionref, false);
	else if (target.attachEvent)
		target.attachEvent('on'+tasktype, function(){return functionref.call(target, window.event)});
},

startchrome:function(){
	if (!this.domsupport)
		return
	this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
	for (var ids=0; ids<arguments.length; ids++){
		var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a")
		for (var i=0; i<menuitems.length; i++){
			if (menuitems[i].getAttribute("rel")){
				var relvalue=menuitems[i].getAttribute("rel")
				var asscdropdownmenu=document.getElementById(relvalue)
				this.addEvent(asscdropdownmenu, function(){cssdropdown.clearhidemenu()}, "mouseover")
				this.addEvent(asscdropdownmenu, function(e){cssdropdown.dynamichide(this, e)}, "mouseout")
				this.addEvent(asscdropdownmenu, function(){cssdropdown.delayhidemenu()}, "click")
				try{
					menuitems[i].innerHTML=menuitems[i].innerHTML+" "+this.dropdownindicator
				}catch(e){}
				this.addEvent(menuitems[i], function(e){ //show drop down menu when main menu items are mouse over-ed
					if (!cssdropdown.isContained(this, e)){
						var evtobj=window.event || e
						cssdropdown.dropit(this, evtobj, this.getAttribute("rel"))
					}
				}, "mouseover")
				this.addEvent(menuitems[i], function(e){cssdropdown.dynamichide(this, e)}, "mouseout") //hide drop down menu when main menu items are mouse out
				this.addEvent(menuitems[i], function(){cssdropdown.delayhidemenu()}, "click") //hide drop down menu when main menu items are clicked on
			}
		} //end inner for
	} //end outer for
	if (this.enableiframeshim && document.all && !window.XDomainRequest && !this.iframeshimadded){ //enable iframe shim in IE5.5 thru IE7?
		document.write('<IFRAME id="iframeshim" src="about:blank" frameBorder="0" scrolling="no" style="left:0; top:0; position:absolute; display:none;z-index:90; background: transparent;"></IFRAME>')
		this.shimobject=document.getElementById("iframeshim") //reference iframe object
		this.shimobject.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)'
		this.iframeshimadded=true
	}
} //end startchrome

}
function likeit(id){
alert("Cám ơn bạn đã thích phần mềm này.");
hbhLRc(id,u);
Fetch_object("like").innerHTML = "";
}
function unlikeit(id){
alert("Bạn đã đánh dấu không thích.");
hbhuLRc(id,u);
Fetch_object("unlike").innerHTML = "";
}
function linkdie(id){
alert("Cám ơn bạn đã báo cáo liên kết tải phần mềm này không hoạt động, chúng tôi sẽ khắc phục trong thời gian sớm nhất. Hãy thử tải lại phần mềm này trong vài phút sau nhé.");
hbhLDi(id,u);
Fetch_object("likedie").innerHTML = "";
}
function u(v){
}
function reply(thisform,id){
var t_email = Trim(thisform.email.value);
var t_comment = Trim(thisform.commenttext.value);
var t_accesskey = Trim(thisform.keypost.value);
if( (t_email.length < 5) ){
alert("- E-mail không hợp lệ.");
thisform.email.focus();
return false;
}

if (t_email.indexOf('@') <= 0 || t_email.indexOf('@') == t_email.length -1 || t_email.indexOf('.') == t_email.length -1 || t_email.indexOf('.') <= 0 ){
alert("- E-mail hợp lệ phải là E-mail tồn tại và đang hoạt động.");
thisform.email.focus();
return false;
}
if(t_accesskey.length != 5){
alert("Mã xác nhận không hợp lệ.\nHãy gõ chính xác 5 ký tự trong ô bên cạnh.");
thisform.keypost.focus();
return false;
}
if(t_comment.length < 30){
alert("Nội dung bình luận quá ngắn.");
thisform.commenttext.focus();
return false;
}
if(t_comment.length > 1000){
alert("Bạn đã viết "+t_comment.length+" ký tự. Nội dung bình luận quá dài (tối đa 1000 ký tự).");
thisform.commenttext.focus();
return false;
}
document.getElementById("bsubmit").innerHTML = '<span></span><input type="button" value="...... đang xử lý" name="a" disabled>';
//hbhpRc(id,t_email,t_accesskey,t_comment,pu);
document.getElementById("cm").innerHTML = '<span>'+t_email+'</span><div>'+t_comment+'</div>';
return false;
}
function pu(text){
alert(text);
}
//-->

