var Sorted
function markSorted(name) {

	var loc=name.indexOf(" ")

	if(loc<0){
		var clickObj = document.getElementById("th" + name)
		clickObj.lastChild.lastChild.src='images/Inner/Sort.gif';
	}
	else{
		var clickObj = document.getElementById("th" + name.substr(0,name.indexOf(" ")))
		clickObj.lastChild.lastChild.src='images/Inner/SortUp.gif';
	}
}

function HideShowRecords(val){


for (j=0; j<document.forms.length; j++){

	if (document.forms[j].name=='frmaction')
	{
		
	
		if(val)
		{
			document.forms[j].Item.checked=false;
				
			
			document.getElementById('PropertyAreaRow'+document.forms[j].Item.value).style.display=""
		}
		else{
			if(document.forms[j].Item.checked)
                          
			document.getElementById('PropertyAreaRow'+document.forms[j].Item.value).style.display="none"
			
		}	
	
	}
        
   
 
}
}
