<!--
	function getParam(key){
		var hash=location.hash;
		if(!hash) return null;
		var _hash = hash.replace("#", "").toLowerCase();
		var qParts = _hash.split("+");
		if (qParts.length > 0) {
			for (var i = 0; i < qParts.length; i++) {
				if (qParts[i].split(':')[0] == key) {
					return qParts[i].split(':')[1];
				}
			}
		}
		return null;
	}
	function setMake(frm,sM){
		var c=frm.Make1;
		var aM = eval("MK.split(',')");
		var j = 0;
		c.options[0]= new Option('----  ·Ø¡ÂÕèËéÍ  ----','0');
		if(sM=='0' || sM=='') c.options[0].selected=true;
		for (i=0; i < (aM.length/2); i++) {
			c.options[i+1]= new Option(aM[j+1],aM[j]);
			if(aM[j]==sM&&sM!="0") c.options[i+1].selected=true;
			j += 2;
		}	
	}
	
	function setModel(frm,MkID,sM){
		var c=frm.Model1;
		while (c.options.length > 0) {
			 c.options[(c.options.length - 1)] = null;	
		}
		c.options[0]=new Option('----  ·Ø¡ÃØè¹   ----','0');
		if(sM=='0') c.options[0].selected=true;
		if((MkID != "0") && (MkID.substring(0,1)!="z") && (MkID!="")) {
		var aM = eval("MD['"+ MkID +"'].split(',')");
		var j = 0;
			if(aM != null){
			for (var i=0; i < aM.length/2; i++) {
					c.options[i+1]= new Option(aM[j+1],aM[j]);
					if(aM[j]==sM&&sM!="0") c.options[i+1].selected=true;
					j += 2;				
				}
			}
			c.disabled=false;
		}
		else
		{
			c.options[0].selected=true;
			c.disabled=true;
		}
		setBody(frm,sM,'0');
	}
	
	function setBody(frm,MdID,sBd) {
		var c=frm.Body1;
		c.style.backgroundColor="";
		if(!c || !c.options) return;
		while (c.options.length > 0){
			c.options[(c.options.length - 1)] = null;	
		}
		c.options[0]= new Option('---- ·Ø¡â©Á ---- ','0');
		if(sBd=='0' || sBd=='') c.options[0].selected=true;
		var mk=frm.Make1.value;
		if(mk!='29' && mk!='37' && mk!='33' && mk!='6' && mk!='5') {
			c.disabled = true;
			setTrim(frm,'0');
			return;
		}
		if(MdID != "0" && MdID != "") {
			try{
				var aB = eval("BD['"+ MdID +"'].split(',')");
				if(aB.length<=2){
					c.disabled = true;
					setTrim(frm,'0');
					return;
				}
				var j = 0;
				if(aB !=null){
					for(var i=0; i < aB.length/2; i++) {
						var val=aB[j].split('.');
						c.options[i+1]= new Option(aB[j+1],val[0]);
						if(val[0]==sBd) c.options[i+1].selected=true;
						j += 2;
					}
				}
				c.disabled = false;	
				c.style.backgroundColor="#ffffaa";
			}catch(ex){}
		}
		else 
		{
			c.options[0].selected = true;
			c.disabled = true;
		}
		setTrim(frm,'0');
	}
	function setTrim(frm,sTrim) {
		var MdID=frm.Model1.value;
		var BdID=frm.Body1.value;
		var c=frm.Trim1;
		if(!c) return;
		while (c.options.length > 0){
			c.options[(c.options.length - 1)] = null;	
		}
		c.options[0]= new Option('---- ·Ø¡ÃØè¹ÂèÍÂ ----','0');
		if(sTrim=='0' || sTrim=='') c.options[0].selected=true;
		
		if(MdID != "0" && MdID != "") {
			var aT = eval("TM['"+ MdID +"'].split(',')");
			var i = 0;
			var _val='';
			if(aT !=null){
				try{
					var aB = eval("BD['"+ MdID +"'].split(',')");
					//var t='';
					for(var k=0; k < aB.length; k+=2) {
						var val=aB[k].split('.');
						//t+=aB[k]+' '+aB[k+1]+"\n";
						if(val[0]==BdID){
							_val=aB[k]+".";
						}
					}
					//alert(t);
				}catch(ex){}
							
		
				for(var j=0; j < aT.length; j+=2) {
					if(BdID=='0' || BdID=='' || (_val&&_val.indexOf('.'+aT[j]+'.')>-1)) {
						c.options[i+1]= new Option(aT[j+1],aT[j]);
						if(aT[j]==sTrim) c.options[i+1].selected=true;
						i += 1;
					}
				}
			}
			c.disabled = false;	
		}
		else 
		{
			c.options[0].selected = true;
			c.disabled = true;
		}
	};
function setProv2(frm,sP) {
	var c=frm.Prov1;
	var aP = eval("PV.split(',')");
	var j = 0;
	if(sP=='0' || sP=='') c.options[0].selected=true;
	for (i=0; i < (aP.length/2); i++) {
		c.options[i]= new Option(aP[j+1],aP[j]);
		if(aP[j]==sP) c.options[i].selected=true;
		j += 2;
	}	
}
function setOpt(c,s){
	for(i=0;i<c.length;i++){
		if(c.options[i].value==s){
			c.options[i].selected=true;
			return;
		}
	}
	c.options[0].selected=true;
}
function setYear(c,fY,tY,sY,t){
	var dt=new Date();
	var opt;
	c.options[0]= new Option('--- '+t+' ---','0');
	if(sY == '0' || sY == '') c.options[0].selected = true;
	for (var i=0; i <= (tY-fY); i++) {
		if((tY-i)==dt.getFullYear())
			opt="»ÕáÃ¡,"+(tY-i);
		else
			opt=(dt.getFullYear()-(tY-i))+" »Õ,"+(tY-i);
			
		c.options[i+1]= new Option(opt,(tY-i));
		if((tY-i)==sY) c.options[i+1].selected=true;
	}
}
	
function setPrice(c,sP,tP,t){
	aP = new Array("100,000","100000","150,000","150000","200,000","200000","250,000","250000","300,000","300000","350,000","350000","400,000","400000","450,000","450000","500,000","500000","600,000","600000","700,000","700000","800,000","800000","900,000","900000","1,000,000","1000000","1,500,000","1500000","2,000,000","2000000");
	var ins=0;
	for(var i=0;i<aP.length;i++)	if(aP[i]==sP) ins=1;
	if(sP && ins==0 && sP!=0)
	aP = new Array(tP,sP,"100,000","100000","150,000","150000","200,000","200000","250,000","250000","300,000","300000","350,000","350000","400,000","400000","450,000","450000","500,000","500000","600,000","600000","700,000","700000","800,000","800000","900,000","900000","1,000,000","1000000","1,500,000","1500000","2,000,000","2000000");	
	var j = 0;
	c.options[0]= new Option('--- '+t+' ---','0');
	if(sP=='0' || sP=='') c.options[0].selected = true;
	for (var i=0; i < aP.length / 2; i++) {
		c.options[i+1]= new Option(aP[j], aP[j+1]);
		if(aP[j+1]==sP) c.options[i+1].selected=true;
		j+=2;
	}
}
function setColor(c,sC){
	var CX='0,-,5,¢ÒÇ,2,à¢ÕÂÇ,12,¤ÃÕÁ,14,ªÁ¾Ù,7,´Ó,1,á´§,8,à·Ò,16,à·Ò-à¢ÕÂÇ,9,à·Ò-´Ó,17,à·Ò-¹éÓà§Ô¹,3,¹éÓà§Ô¹,13,¹éÓµÒÅ,11,ºÃÍ¹«ìà§Ô¹,10,ºÃÍ¹«ì·Í§,4,¿éÒ,15,ÁèÇ§,18,ÊéÁ,6,àËÅ×Í§ ';
	var aC = eval("CX.split(',')");
	var j = 2;
	c.options[0]=new Option('--- ·Ø¡ÊÕ ---','0');
	if(sC=='' || sC=='0') c.options[0].selected=true;
	for (var i=0; i < (aC.length/2-1); i++) {
		c.options[i+1]= new Option("ÊÕ"+aC[j+1],aC[j]);
		if((aC[j+1]==sC) ||(aC[j]==sC))  c.options[i+1].selected=true;
		j += 2;
	}
}
//-->
