function checkAll($class,$this){
	var $this = jQuery($this);
	if($this.hasClass('uncheck')){
		jQuery('.'+$class).attr("checked","");
		$this.removeClass('uncheck');
	}else{
		$this.addClass('uncheck');
		jQuery('.'+$class).attr("checked","checked");
	}
}

function checkDateAbility($checkbox, $date){
	if(jQuery($checkbox).attr('checked')==true){
		jQuery('#'+$date).removeClass('display_none');
	}else{
		jQuery('#'+$date).addClass('display_none');
	}
}
function checkDateAbilityNew($checkbox, $date){
    if($checkbox.attr('checked')==true){
        $checkbox.attr('checked',false);
    }else
    {
        $checkbox.attr('checked',true);
    }


	if($checkbox.attr('checked')==true){
		jQuery('#'+$date).removeClass('display_none');
	}else{
		jQuery('#'+$date).addClass('display_none');
	}
}
function selectContract($select){
	$this = jQuery($select);
	jQuery('.contract_details', '#contractsform').addClass('display_none');
	jQuery('#details_'+$this.val(), '#contractsform').removeClass('display_none');
}

function showContract($select, $rid){	
	$this = jQuery($select);
	if($this.val()==$rid){
		//jQuery('#flat_contract_container').removeClass('display_none');
	}else{
		//jQuery('#flat_contract_container').addClass('display_none');
	}
}

function showInnerTab(ObjId)
{
	$(ObjId).slideToggle('fast', function() {

	});
}
function printdiv(divName){
    $("#" + divName).printElement();
}


