function getmarkerandsubmit3(){
var obj=document.getElementById('markerENQUIRY');
if(obj){
	if(check_my_formc(obj.form)){
		obj.form.submit();
		}
}
}


function getmarkerandsubmit2(){
var obj=document.getElementById('marker');
if(obj){
	if(check_my_formc(obj.form)){
		obj.form.submit();
		}
}
}
function getmarkerandsubmit(){
var obj=document.getElementById('marker');

obj=obj.form;

if(obj){


	if(obj.sizefrom){
		if(obj.sizefrom.value=="" || obj.sizefrom.value=="0"){
			alert("Please enter Size from");
			return ;
		}		
	}
	
	if(obj.sizeto){		
		if(obj.sizeto.value=="" || obj.sizeto.value=="0"){
			alert("Please enter Size To");
			return ;
		}		
	}
	
	if(obj.cadastral2){		
		if(obj.cadastral2.value=="" || obj.cadastral2.value=="0"){
			alert("Please enter Neighbourhood, Area, Region");
			return ;
		}		
	}	
	
	if(obj.pricefrom){		
		if(obj.pricefrom.value=="" || obj.pricefrom.value=="0"){
			alert("Please enter price from");
			return ;
		}		
	}
	
	if(obj.priceto){		
		if(obj.priceto.value=="" || obj.priceto.value=="0"){
			alert("Please enter Price To");
			return ;
		}		
	}
	
	if(obj.bedroom){		
		if(obj.bedroom.value!=""){
			if(!IsNumeric(obj.bedroom.value)){
			alert("Bedroom Field must be Numeric");
			return ;
			}
		}		
	}		
	
	
	obj.submit();
}
}

function show_search_form(obj2,obj1){
	if(obj1.value!="0" && obj2.value!="0"){
	window.location.href='?operation='+obj2.value+'&propertytype='+obj1.value+'&ocp=search';		
	}
	
	}
	
function show_search_form_val(obj2,obj1){
	if(obj1.value!="0" && obj2.value!="0"){
	window.location.href='?operation='+obj2.value+'&propertytype='+obj1.value+'&ocp=val';	
	}
	
	}	
	
	/**********************************************************************/
	function check_my_formc(objform){
	  
	   
			reto=0;
			if(objform.countchk){
			for(v=0;v<objform.length;v++){
				if(objform[v].type=="checkbox"){
					if(objform[v].checked==true){
						reto=1;
						break;
					}	
				}
			}   
			if(reto==0){
				alert("please select at least one  property ");
				return false;				
				
			}
			
			}
		
	
		if(objform.size){ 
			if(objform.size.value==""){
				alert("please enter the  size ");
				return false;
			}
			else{
				if(IsNumeric(objform.size.value)==false){
						alert("size must be numeric ");
						
						return false;
					}
				
				}
		}
		
		if(objform.landarea){ 
			if(objform.landarea.value==""){
				alert("please enter the  Land Area ");
				return false;
			}
			else{
				if(IsNumeric(objform.landarea.value)==false){
						alert("Land Area must be numeric ");
						
						return false;
					}
				
				}
		}		
		
		
		if(objform.plotnumber){ 
			if(objform.plotnumber.value==""){
				alert("please enter the  Plot Number ");
				return false;
			}
			else{
				if(IsNumeric(objform.plotnumber.value)==false){
						alert("Plot Number must be numeric ");
						
						return false;
					}
				
				}
		}		
		
		
		if(objform.cadastral2){
			if(objform.cadastral2.value==""){
				alert("please enter Neighbourhood ");
				return false;
			}
		}
		if(objform.buildingname){	
			if(objform.buildingname.value==""){
				alert("please enter Building Name ");
				return false;
			}
		}
			
		if(objform.street){
			if(objform.street.value==""){
				alert("please enter Street Name ");
				return false;
			}	
		}
		if(objform.bedroom){
			if(objform.bedroom.value==""){
				alert("please enter Bedrooms Number ");
				return false;
			}			
		
		}

		if(objform.floor!=null){
			if(objform.floor.value==""){
				alert("please enter the Floor Number ");
				return false;
			}	
			else{
				if(IsNumeric(objform.floor.value)==false){
						alert("Floor must be numeric ");
						return false;
					}
				
			}		
		}
		
		if(objform.askingprice!=null){
			if(objform.askingprice.value==""){
			alert("please enter asking price ");
			return false;				
			}
			else{
				if(IsNumeric(objform.askingprice.value)==false){
						alert("asking price must be numeric ");						
						return false;
					}
				
				}			
		}


		if(objform.txtcontactname){
			var checker=check_contact_form(objform);

			return checker;
		}
		
	
	return true;
	
	}
	
	
	/*************************************************************************/
function show_search_form0(obj2,obj1){
	
	if(obj1.value!="0" && obj2.value!="0"){
		hide_all_search_form();
		
		if(obj2.value==1 || obj2.value==2) {
			
			switch(obj1.value){
			
				case "1":
				cngbg('buyrent_apartment','default1');
				document.frmapartement0.operation.value=obj2.value;
				document.frmapartement0.propertytype.value=obj1.value;
				
				
				
				
				
				break;
				
				case "2":
				cngbg('buyrent_villa','default1');
				document.frmvilla.operation.value=obj2.value;
				document.frmvilla.propertytype.value=obj1.value;
				break;
				
				case "3":
				cngbg('buyrent_office','default1');
				document.frmoffice.operation.value=obj2.value;
				document.frmoffice.propertytype.value=obj1.value;				
				break;
				
				case "4":
				cngbg('buyrent_retail','default1');
				document.frmretail.operation.value=obj2.value;
				document.frmretail.propertytype.value=obj1.value;				
				break;
				
				case "5":
				cngbg('buyrent_land','default1');
				document.frmland.operation.value=obj2.value;
				document.frmland.propertytype.value=obj1.value;
				break;				
				
			}
			
		}
		else{
			if(obj2.value==3 || obj2.value==4) {
				
				
				switch(obj1.value){
				
					case "1":
					cngbg('selllet_apartment','default1');
					break;
					
					case "2":
					cngbg('selllet_villa','default1');
					break;
					
					case "3":
					cngbg('selllet_office','default1');
					break;
					
					case "4":
					cngbg('selllet_retail','default1');
					break;
					
					case "5":
					cngbg('selllet_land','default1');
					break;				
					
				}				
				
				
				}
			}
	
	}
	
}

				/*var objc=document.getElementById('search_operation');
				if(objc){objc.value="0";}
				var objc=document.getElementById('property_type');
				if(objd){objd.value="0";}*/
function hide_all_search_form(){
	
					
				cngbg('buyrent_apartment','r_default1');
				cngbg('buyrent_villa','r_default1');
				cngbg('buyrent_office','r_default1');
				cngbg('buyrent_retail','r_default1');				
				cngbg('buyrent_land','r_default1');
				cngbg('selllet_apartment','r_default1');				
				cngbg('selllet_villa','r_default1');				
				cngbg('selllet_office','r_default1');				
				cngbg('selllet_retail','r_default1');				
				cngbg('selllet_land','r_default1');
							
				
				var myprop=new Array(); 
				myprop[0]="apartment";       
				myprop[1]="villa";
				myprop[2]="office";
				myprop[3]="retail";
				myprop[4]="land";				
				
				for(var i=0;i<5;i++){
				cngbg('tr_'+myprop[i]+'1','default1');
				cngbg('tr_'+myprop[i]+'2','r_default1');
				cngbg('tr_'+myprop[i]+'3','r_default1');
				}

	}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function emptythis(obj){
	obj.value="";	
}

function cngbg(obj1,nc1){
	var objv1=document.getElementById(obj1);	
	if(objv1){
		objv1.nc1=objv1.className;
		objv1.className=nc1;		
	}

}

function cngbg0(obj1,nc1){
	var objv1=document.getElementById(obj1);	
	if(objv1){
		objv1.nc1=objv1.className;
		objv1.className=nc1;		
	}
	objv1.onmouseout=function(){ this.className=this.nc1; }
}
var glob_trace;
var glob_hash;
var glob_numb=0;

function back_steps(){
	back_step1(0);


	
}

function do_it(x){

	var str1="imghole"+x;
	var str2="item"+x;
	var str3="xhole"+x;
	var str4="divhole"+x;
	cngbg('df1'+x,'r_default1');

	var obj1=document.getElementById(str1);

	var obj3=document.getElementById(str3);
	obj1.src="images/items/inside/keyhole.gif";
	cngbg(str2,'rr_item1');

	cngbg(str4,'item_cls');
	obj3.innerHTML='<a href="javascript:back_step1(1);" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image25\',\'\',\'images/items/inside/r_x2.gif\',1)"><img src="images/items/inside/x2.gif" name="Image25" width="17" height="33" border="0" id="Image25" /></a>';
	
}

function check_first(id){
	var obj=document.getElementById(id);
	if(obj.className!="rr_item1"){
	cngbg0(id,'r_item1');
	}

}

function do_it_reverse(x){

	var str1="imghole"+x;
	var str2="item"+x;
	var str3="xhole"+x;
	var str4="divhole"+x;
	cngbg('df1'+x,'default1');
	var obj1=document.getElementById(str1);
	var obj3=document.getElementById(str3);
	
	obj1.src="images/items/ls.gif";
	cngbg(str2,'item1');
	document.getElementById(str2).style.cursor='pointer';

	cngbg(str4,'c_item_cls');
	obj3.innerHTML='<img src="images/items/rs.gif" width="17" height="33" />';
	
}

function view_step1(){
	
	var obj=document.getElementById('item1');
	if(glob_numb!=1){
	obj.style.cursor='default';
	back_steps();
	glob_numb=1;
	do_it(1);
	
	//$("#tb110").slideUp("fast");
	$("#tb111").slideDown("fast");/*, function() { var $target = $("#sec1");
	
	var targetOffset = $target.offset().top;
	$('html,body').animate({scrollTop: targetOffset}, 1000); });*/
	
	glob_trace="#tb11";
	glob_hash="#sec1";
	
	}

}



function view_step2(){
	
	var obj=document.getElementById('item2');
	if(glob_numb!=2){	
	obj.style.cursor='default';
	back_steps();
	glob_numb=2;
	do_it(2);
	//$("#tb220").slideUp("fast");
	$("#tb221").slideDown("fast"/*, function() { var target = $("#sec2");
	
	var targetOffset = target.offset().top;
	$('html,body').animate({scrollTop: targetOffset}, 1000); }*/);
	
	glob_trace="#tb22";
	glob_hash="#sec2";
	
	}
}



function view_step3(){
	
	var obj=document.getElementById('item3');
	if(glob_numb!=3){
		obj.style.cursor='default';
	back_steps();	
	glob_numb=3;
	do_it(3);
	//$("#tb330").slideUp("fast");
	$("#tb331").slideDown("fast"/*, function() { var target = $("#sec3");
	
	var targetOffset = target.offset().top;
	$('html,body').animate({scrollTop: targetOffset}, 1000); }*/);
	
	glob_trace="#tb33";
	glob_hash="#sec3";
	
	}
	
}


function view_step4(){
	
	var obj=document.getElementById('item4');
	if(glob_numb!=4){	
	obj.style.cursor='default';
	back_steps();
	glob_numb=4;
	do_it(4);
	//$("#tb440").slideUp("fast");
	$("#tb441").slideDown("fast"/*, function() { var target = $("#sec4");
	
	var targetOffset = target.offset().top;
	$('html,body').animate({scrollTop: targetOffset}, 1000); }*/);

	glob_trace="#tb44";
	glob_hash="#sec4";
	
	}
}


function view_step5(){
	
	var obj=document.getElementById('item5');
	if(glob_numb!=5){	
	obj.style.cursor='default';
	back_steps();
	glob_numb=5;
	do_it(5);
	//$("#tb550").slideUp("fast");
	$("#tb551").slideDown("fast", function() { show_table('cnt'); });	
	
	glob_trace="#tb55";
	glob_hash="#sec5";
	
	}
	
}

function back_step1(numb){
	
	var str1=glob_trace+"0";
	var str2=glob_trace+"1";
	
	/*$(str2).hide();
	$(str1).show();*/
	if(glob_trace=="#tb55"){hideme('cnt');}
	$(str2).slideUp("fast");
	//$(str1).slideDown("fast");
	if(glob_numb!=0){
		do_it_reverse(glob_numb);
	}

	/*, function() { var $target = $("#sec1");
	
	var targetOffset = $target.offset().top;
	$('html,body').animate({scrollTop: targetOffset}, 1000); });*/
													   
	
	if(numb!=0){
		glob_numb=0;
		var $target = $("#sectop");
		var targetOffset = $target.offset().top;
		$('html,body').animate({scrollTop: targetOffset}, 1000);

	
	}
	
}


function go_hash(myhash){
		window.location.hash=myhash;
	}

function showme(id){
	var obj=document.getElementById(id);
	obj.style.display="inline";
}
function hideme(id){
	var obj=document.getElementById(id);
	obj.style.display="none";
}

function obj_positioning(layername,layername2,minustop,minusleft){
		
				
		var obj=document.getElementById(layername);
		var obj2=document.getElementById(layername2);
		var y = getAbsY(obj);
		var x = getAbsX(obj);
		
	

		if(obj){
			//alert("y="+y+"\t and x="+x);
			var pos=y-minustop;
			var posx=x-minusleft;
			
			obj2.style.top=pos+"px";
			obj2.style.left=posx+"px";	
			obj2.style.display="block";	
		}		
	}
	
	
	function getAbsX(elt) { return (elt.x) ? elt.x : getAbsPos(elt,"Left"); }
	function getAbsY(elt) { return (elt.y) ? elt.y : getAbsPos(elt,"Top"); }
	
	function getAbsPos(elt,which) {
	iPos = 0;
	while (elt != null) {
	iPos += elt["offset" + which];
	elt = elt.offsetParent;
	}
	return iPos;
	}
	
	function lets_go_there(mypage){
		window.location.href=mypage;	
	}
	function lets_go(mypage){
		window.location.href=mypage;	
	}	
	function lets_open(myfile){
		window.open(myfile);
		
	}
		
		
	function inner_html(id){
		var obj=document.getElementById(id);
		obj.innerHTML='<img src="images/services/rolo.gif" height="21" width="17">';
	}
	function empty_from_html(id){
		var obj=document.getElementById(id);

		obj.innerHTML=" ";
	}		
	
	function view_amenities(){
		cngbg('advancedsearch1','r_default1');	
		cngbg('advancedsearch11','r_default1');	
		cngbg('amenities','default1');	
		
	}
	
	function show_block(id){
				var obj=document.getElementById(id);
				obj.style.display="block";
		}
	function show_table(id){
				var obj=document.getElementById(id);
				
				obj.style.display="inline";
		}
	function show_row(id){
				var obj=document.getElementById(id);
				
				obj.style.display="table-row";
		}			
	function show_hide(obj,id){
		if(	obj.checked==true){
			show_block(id);	
		}
		else{
			hideme(id);
			}
	}
	function show_hide3(obj,id,id2){
		if(	obj.checked==true){
			show_block(id);	
			hideme(id2);
		}
		else{
			hideme(id);
			show_block(id2);
			}
	}	
	
	function show_hide4(obj,id,id2){
		if(	obj.checked==true){
			show_row(id);	
			hideme(id2);
		}
		else{
			hideme(id);
			show_row(id2);
			}
	}	 	
	function show_hide2(obj,id){
		if(	obj.value!=""){
			show_table(id);	
		}
		else{
			hideme(id);
			}
	}
	
	function change_imgprop(newpath){
		var obj=document.getElementById('imgprop');
		if(obj){			
			obj.src=newpath;
		}
		
	}
	var glob=0;
	function do_over(id){
		if(glob!=id){
		cngbg('thb1'+id,'r_imgthb');show_block('trsp'+id);
		}
	}
	function do_over2(id){		
		cngbg('thb1'+id,'r_imgthb');show_block('trsp'+id);		
	}	
	
	function do_out(id){
		if(glob!=id){
			cngbg('thb1'+id,'imgthb');hideme('trsp'+id);
		}
	}
	function do_out2(id){

			cngbg('thb1'+id,'imgthb');hideme('trsp'+id);
	}	
	function do_click(img,id){
		
		change_imgprop('upload/big/'+img);
		do_out2(glob);
		do_over2(id);
		glob=id;
		index_set(id);
	}
	var current_logo=0;
	function show_next(){

		strs='tdlogo_'+current_logo;
		//alert(strs);
		cngbg(strs,'r_default1');
		
		strs='tdlogo_'+current_logo+3;
		//alert(strs);
		cngbg(strs,'default2');
		current_logo+=1;		
		
	}

	indg=0;
	
function __anim(num) {
	


	clearTimeout(int_id);	
	// we animate on cur_x, and then we set it to the object itself
	cur_x += (target_x - cur_x) * 0.3;	
	if (Math.abs(target_x - cur_x) < 5) {
		cur_x = target_x;		
	}	
	cur_x = Math.floor(cur_x); // divs don't have decimal positions, so we need the integer part only		
	var obj = D("container");
	obj.style.left = cur_x + "px";	
	if (cur_x != target_x) {
		// we're still not quite there yet, so repeat the animation call.
		int_id = setTimeout(__anim, speed);
	} else {		
	
	}	
}
	


function D(n) { return document.getElementById(n); }

try {
	if (menudef) {}
} catch(ex) {
	menudef = 0;
}

function  check_and_submit3(objform){
	
	if(check_my_form3(objform)){
		objform.submit();
		}
	
	}

function  check_and_submit(objform){
	
	if(check_my_form(objform)){
		objform.submit();
		}
	
	}
function  check_and_submit2(objform){
	
	if(check_contact_form(objform)){
		objform.submit();
		}
	
	}	

function check_my_form(objform){
	
	with(objform){
		
		if(txtsize.value==""){
			alert("please enter size ");
			return false;
		}
		else{
			if(IsNumeric(txtsize.value)==false){
					alert("size must be numeric ");
					txtsize.value="";
					return false;
				}
			
			}
		if(cadastral.value==""){
			alert("please enter cadastral area ");
			return false;
		}

		if(objform.askingprice!=null){
			if(askingprice.value==""){
			alert("please enter asking price ");
			return false;				
			}
			else{
				if(IsNumeric(askingprice.value)==false){
						alert("asking price must be numeric ");
						askingprice.value="";
						return false;
					}
				
				}			
		}
		if(objform.pricerangefrom){
			if(pricerangefrom.value==""){
			alert("please enter price range from ");
			return false;				
			}
			else{
				if(IsNumeric(pricerangefrom.value)==false){
						alert("price range from price must be numeric ");
						pricerangefrom.value="";
						return false;
					}
				
				}				
		}
		if(objform.pricerangeto){
			if(pricerangeto.value==""){
			alert("please enter asking price ranget o ");
			return false;				
			}
			else{
				if(IsNumeric(pricerangeto.value)==false){
						alert("price range to price must be numeric ");
						pricerangeto.value="";
						return false;
					}
				
				}			
		}		
		if(objform.txtcontactname){
			var checker=check_contact_form(objform);
			return checker;
		}
		
	}
	return true;
	
	}
	
function check_my_form3(objform){
	
	with(objform){
		
		if(txtsize.value==""){
			alert("please enter size ");
			return false;
		}
		else{
			if(IsNumeric(txtsize.value)==false){
					alert("size must be numeric ");
					txtsize.value="";
					return false;
				}
			
			}
		if(muhafaza.value==""){
			alert("please enter muhafaza area ");
			return false;
		}

		if(objform.askingprice!=null){
			if(askingprice.value==""){
			alert("please enter asking price ");
			return false;				
			}
			else{
				if(IsNumeric(askingprice.value)==false){
						alert("asking price must be numeric ");
						askingprice.value="";
						return false;
					}
				
				}			
		}
		if(objform.pricerangefrom){
			//alert(pricerangefrom.value);
			if(pricerangefrom.value==""){
			alert("please enter price range  ");
			return false;				
			}
			else{
				if(IsNumeric(pricerangefrom.value)==false){
						alert("price range  price must be numeric ");
						pricerangefrom.value="";
						return false;
					}
				
				}				
		}
		if(objform.pricerangeto){
			if(pricerangeto.value==""){
			alert("please enter asking price range ");
			return false;				
			}
			else{
				if(IsNumeric(pricerangeto.value)==false){
						alert("price range  price must be numeric ");
						pricerangeto.value="";
						return false;
					}
				
				}			
		}		
		if(objform.txtcontactname){
			var checker=check_contact_form(objform);
			return checker;
		}
		
	}
	return true;
	
	}	
	
function check_contact_form(obj){
	
	with(obj){
	
	if(txtcontactname.value==""){
		alert("please enter contact name");
		return false;	
	}
	if(txtcontactphone.value==""){
		alert("please enter contact phone");
		return false;		
	}
	if(txtcontactemail.value==""){
		alert("please enter contact email");
		return false;		
	}	
	else{
		
			return validate_email(txtcontactemail);		
		}
	}
	return true;
}

function check_contact_form4(obj){
	
	with(obj){
	
	if(txtcontactname.value==""){
		alert("please enter contact name");
		return false;	
	}
	if(txtcontactphone.value==""){
		alert("please enter contact phone");
		return false;		
	}
	if(txtcontactemail.value==""){
		alert("please enter contact email");
		return false;		
	}	
	else{
		
			return validate_email(txtcontactemail);		
		}
	}
	obj.submit();
}

function check_contact_form5(obj){
	
	with(obj){
	
	if(txtcontactname.value==""){
		alert("please enter contact name");
		return false;	
	}
	if(txtcontactphone.value==""){
		alert("please enter contact phone");
		return false;		
	}
	if(txtcontactcomment.value==""){
		alert("please enter occupation");
		return false;		
	}	
	if(txtcontactemail.value==""){
		alert("please enter contact email");
		return false;		
	}	
	else{
		
			if(! validate_email(txtcontactemail)){return false;}		
		}
	}
	obj.submit();
}
/*************************************************************************************************************/
function validate_email(obj){
		if(obj && obj.value){
			if(check_email(obj.value)==false){
				alert(" please enter a valid  email");
				obj.value="";
				obj.select();
				return false;			
				
			}
		}
		return true;
}

 /*****************************************************************************************************/ 
          function check_email(email_txt){
                emailRegExp = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,4})$/;              
                if(emailRegExp.test(email_txt)){
                    //alert('true');
                    return true;
               }else{

                 //alert('false');
                  return false;
             }
         }
		 
 /*****************************************************************************************************/ 
    /*************************************************************************************************************/
   function check_numeric_field(obj,objname,strvalue){

	if(strvalue!=""){
		if(IsNumeric(strvalue)==false){
			alert(objname+" Must be numeric field");
			obj.value="";
			obj.select();
			
			
		}   
	}
  }
function IsNumeric(strString)

   {
   var strValidChars = "0123456789-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

 
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }
	
	function change_src(id,srv){
		var obj=document.getElementById(id);
		if(obj){
			obj.src=srv;
			}
	}
	
	
	
var randnum = Math.random();
var inum = 12;
var rand1 = Math.round(randnum * (inum-1)) + 1;
images = new Array
images[1] = "p4.jpg"
images[2] = "p5.jpg"
images[3] = "p6.jpg"
images[4] = "p7.jpg"
images[5] = "p8.jpg"
images[6] = "p9.jpg"
images[7] = "p010.jpg"
images[8] = "p011.jpg"
images[9] = "p012.jpg"
images[10] = "p013.jpg"
images[11] = "p014.jpg"
images[12] = "p015.jpg"

var imagexxx = images[rand1];



function call_me_scripti2(varue){
		//alert(varue);
		
		switch(varue){
			
			case "1":
			document.frmfill.pricerangefrom.value="1";
			document.frmfill.pricerangeto.value="20000";			
			break;
			
			case "2":
			document.frmfill.pricerangefrom.value="20000";
			document.frmfill.pricerangeto.value="30000";			
			break;
			
			case "3":
			document.frmfill.pricerangefrom.value="30000";
			document.frmfill.pricerangeto.value="40000";			
			break;
			case "4":
			document.frmfill.pricerangefrom.value="40000";
			document.frmfill.pricerangeto.value="50000";			
			break;
			case "5":
			document.frmfill.pricerangefrom.value="50000";
			document.frmfill.pricerangeto.value="60000";			
			break;
			case "6":
			document.frmfill.pricerangefrom.value="60000";
			document.frmfill.pricerangeto.value="70000";			
			break;
			
			case "7":
			document.frmfill.pricerangefrom.value="70000";
			document.frmfill.pricerangeto.value="80000";			
			break;
			
			case "8":
			document.frmfill.pricerangefrom.value="80000";
			document.frmfill.pricerangeto.value="90000";			
			break;
			case "9":
			document.frmfill.pricerangefrom.value="90000";
			document.frmfill.pricerangeto.value="10000";			
			break;
			case "10":
			document.frmfill.pricerangefrom.value="100000";
			document.frmfill.pricerangeto.value="150000";			
			break;	
			case "11":
			document.frmfill.pricerangefrom.value="150000";
			document.frmfill.pricerangeto.value="200000";			
			break;
			
			case "12":
			document.frmfill.pricerangefrom.value="200000";
			document.frmfill.pricerangeto.value="100000000";			
			break;
			

			case "15":
			document.frmfill.pricerangefrom.value="10000";
			document.frmfill.pricerangeto.value="15000";			
			break;
			case "16":
			document.frmfill.pricerangefrom.value="15000";
			document.frmfill.pricerangeto.value="20000";			
			break;
			
			case "17":
			document.frmfill.pricerangefrom.value="20000";
			document.frmfill.pricerangeto.value="25000";			
			break;
			
			case "18":
			document.frmfill.pricerangefrom.value="25000";
			document.frmfill.pricerangeto.value="30000";			
			break;
			case "19":
			document.frmfill.pricerangefrom.value="30000";
			document.frmfill.pricerangeto.value="35000";			
			break;
			case "20":
			document.frmfill.pricerangefrom.value="35000";
			document.frmfill.pricerangeto.value="40000";			
			break;	
			
			case "21":
			document.frmfill.pricerangefrom.value="40000";
			document.frmfill.pricerangeto.value="45000";			
			break;
			
			case "22":
			document.frmfill.pricerangefrom.value="45000";
			document.frmfill.pricerangeto.value="50000";			
			break;
			
			case "23":
			document.frmfill.pricerangefrom.value="50000";
			document.frmfill.pricerangeto.value="55000";			
			break;
			case "24":
			document.frmfill.pricerangefrom.value="55000";
			document.frmfill.pricerangeto.value="60000";			
			break;
			case "25":
			document.frmfill.pricerangefrom.value="60000";
			document.frmfill.pricerangeto.value="10000000000";			
			break;


			
			case "27":
			document.frmfill.pricerangefrom.value="1";
			document.frmfill.pricerangeto.value="100";			
			break;
			
			case "28":
			document.frmfill.pricerangefrom.value="100";
			document.frmfill.pricerangeto.value="125";			
			break;
			case "29":
			document.frmfill.pricerangefrom.value="125";
			document.frmfill.pricerangeto.value="150";			
			break;
			case "30":
			document.frmfill.pricerangefrom.value="150";
			document.frmfill.pricerangeto.value="175";			
			break;		
			
			case "31":
			document.frmfill.pricerangefrom.value="175";
			document.frmfill.pricerangeto.value="200";			
			break;
			case "32":
			document.frmfill.pricerangefrom.value="200";
			document.frmfill.pricerangeto.value="250";			
			break;
			case "33":
			document.frmfill.pricerangefrom.value="250";
			document.frmfill.pricerangeto.value="300";			
			break;	
			
			case "34":
			document.frmfill.pricerangefrom.value="300";
			document.frmfill.pricerangeto.value="10000000";			
			break;			
			
			
			
			case "35":
			document.frmfill.pricerangefrom.value="1";
			document.frmfill.pricerangeto.value="500000";			
			break;
			case "36":
			document.frmfill.pricerangefrom.value="500000";
			document.frmfill.pricerangeto.value="600000";			
			break;
			case "37":
			document.frmfill.pricerangefrom.value="600000";
			document.frmfill.pricerangeto.value="700000";			
			break;		
			
			case "38":
			document.frmfill.pricerangefrom.value="700000";
			document.frmfill.pricerangeto.value="800000";			
			break;
			case "39":
			document.frmfill.pricerangefrom.value="800000";
			document.frmfill.pricerangeto.value="900000";			
			break;
			case "40":
			document.frmfill.pricerangefrom.value="900000";
			document.frmfill.pricerangeto.value="1000000";			
			break;	
			
			case "41":
			document.frmfill.pricerangefrom.value="1000000";
			document.frmfill.pricerangeto.value="1250000";			
			break;		
			
			case "42":
			document.frmfill.pricerangefrom.value="1250000";
			document.frmfill.pricerangeto.value="1500000";			
			break;	
			
			case "43":
			document.frmfill.pricerangefrom.value="1500000";
			document.frmfill.pricerangeto.value="1750000";			
			break;	
			
			case "44":
			document.frmfill.pricerangefrom.value="1750000";
			document.frmfill.pricerangeto.value="2000000";			
			break;
			
			case "45":
			document.frmfill.pricerangefrom.value="2000000";
			document.frmfill.pricerangeto.value="2500000";			
			break;				

			case "46":
			document.frmfill.pricerangefrom.value="2500000";
			document.frmfill.pricerangeto.value="3000000";			
			break;
			case "47":
			document.frmfill.pricerangefrom.value="3000000";
			document.frmfill.pricerangeto.value="30000000000000";			
			break;
			
			case "0":
			document.frmfill.pricerangefrom.value="0";
			document.frmfill.pricerangeto.value="0";			
			break;			
			
		}
		
	}		

