function m2f2(c)
{
	//alert('iiiii');
	//alert(frmProperty.built.value);
if(c==1) {document.frmProperty.builtft.value=roundNumber(document.frmProperty.built.value*10.764,0);}
if(c==2) {document.frmProperty.built.value=roundNumber(document.frmProperty.builtft.value*0.0929,0);}
if(c==3) {document.frmProperty.landft.value=roundNumber(document.frmProperty.land.value*10.764,0);}
if(c==4) {document.frmProperty.land.value=roundNumber(document.frmProperty.landft.value*0.0929,0);}
}

function roundNumber(num, dec) {
	var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
	return result;
}
function cityChange() {
	document.propSelect.selPage.value=0;
}
function changeMainPhoto(pic) {
	document.images['mainPhoto'].src=pic;
//alert(id);
	
}

function resetPageNo() {
	document.propSelect.selPage.value=0;
}


function checkDeletePhoto(propid,phid,phidswap)
{
//alert(propid);	
//alert(phid);
//newurl="/realestate/?go=edit&propId="+propid+"&panel=3&phidd="+phid+"&phidswap="+phidswap;
newurl="/realestate/?go=edit&propId="+propid+"&phidd="+phid+"&phidswap="+phidswap;
//alert(newurl);
	window.location=newurl;
}


function checkDeleteListing(propid)
{

	var r=confirm("Are you sure - this will delete this listing and all its photos permanently?");
if (r==true)
  {
  //document.write("You pressed OK!");
//  newurl="/realestate/?go=edit&propId="+propid+"&act=del&path="+window.location.host+window.location.pathname;
  newurl="/realestate/?go=del&propId="+propid+"&path="+window.location.href;
//alert(newurl);
	window.location=newurl;
	//return true;
  } else   {
//return false;
  }
//alert(propid);	
//alert(phid);
//newurl="/realestate/?go=edit&propId="+propid+"&panel=3&phidd="+phid+"&phidswap="+phidswap;



}






function ManageTabPanelDisplay() {
//
// Between the parenthesis, list the id's of the div's that 
//     will be effected when tabs are clicked. List in any 
//     order. Put the id's in single quotes (apostrophes) 
//     and separate them with a comma -- all one line.
//

var idlist = new Array('tab1focus','tab2focus','tab3focus','tab1ready','tab2ready','tab3ready','content1','content2','content3');

//document.frmProperty.btnSave.disabled=false;

// No other customizations are necessary.
if(arguments.length < 1) { return; }
for(var i = 0; i < idlist.length; i++) {
   var block = false;
   for(var ii = 0; ii < arguments.length; ii++) {
      if(idlist[i] == arguments[ii]) {
			document.frmProperty.panel.value=arguments[ii].substr(7,1);
			if(arguments[ii]=='content3'){
			//document.frmProperty.btnSave.disabled=true;

		 	}
         block = true;
         break;
         }
      }
   if(block) { document.getElementById(idlist[i]).style.display = "block"; }
   else { document.getElementById(idlist[i]).style.display = "none"; }
   }
}

//function m2f2(c)
//{
	//alert('iiiii');
	//alert(frmProperty.built.value);
//if(c==1) {document.frmProperty.builtft.value=roundNumber(document.frmProperty.built.value*10.764,0);}
//if(c==2) {document.frmProperty.built.value=roundNumber(document.frmProperty.builtft.value/10.764,0);}
//if(c==3) {document.frmProperty.landft.value=roundNumber(document.frmProperty.land.value*10.764,0);}
//if(c==4) {document.frmProperty.land.value=roundNumber(document.frmProperty.landft.value/10.764,0);}
//}

//function roundNumber(num, dec) {
	//var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
	//return result;
//}







