main.php

<li id="Update">
	<a role="button" tabindex="0"  class="step_box"><i class="fa fa-envelope"></i> <span>Compliance Update </span></a>
	<ul>
		<li><a href="javascript:void(0)" onClick="process('new-compliance-add.php')"  class="step_cv step_box"><i class="fa fa-caret-right"></i>New Compliance/s</a></li>
		<li><a href="javascript:void(0)" onClick="process('new-compliance-add-due-date.php')"  class="step_cv step_box"><i class="fa fa-caret-right"></i>Due Date Extension</a></li>
		<li><a href="javascript:void(0)" onClick="process('new-archive-add.php')"  class="step_cv step_box"><i class="fa fa-caret-right"></i>Compliance Revisions</a>
		</li>
		<li><a href="javascript:void(0)" onClick="process('omitted-compliance-add.php')"  class="step_cv step_box"><i class="fa fa-caret-right"></i>Omitted Compliances</a>
		</li>
	</ul>
</li>


script.js

function freehand_newcompliance(){
    var realtxt = document.getElementById('realtxt').value; 
    var month = document.getElementById('month').value;
    var year = document.getElementById('year').value;
    var country = document.getElementById('country').value;
    var act = document.getElementById('vvalueq').value;
    $('#cnt24').html('<a style="text-align:center; width:100%;"><img src="../hr.gif" sytle="margin:0 auto;" id="loader-img" align="center"/></a>');
        $.post("new-compliance-add-filter.php",{
        realtxt: ""+realtxt+"",			
        month: ""+month+"",			
        year: ""+year+"",			
        country: ""+country+"",			
        act: ""+act+"",			
        },
        function(result){
        $("#cnt24").html(result);
		
	});
} 

function freehand_newcompliance_due_date(){
    var realtxt = document.getElementById('realtxt').value;
    var month = document.getElementById('month').value;
    var year = document.getElementById('year').value;
    var country = document.getElementById('country').value;
    var act = document.getElementById('vvalueq').value;
    $('#cnt24').html('<a style="text-align:center; width:100%;"><img src="../hr.gif" sytle="margin:0 auto;" id="loader-img" align="center"/></a>');
        $.post("new-compliance-add-filter-due-date.php",{
        realtxt: ""+realtxt+"",			
        month: ""+month+"",			
        year: ""+year+"",			
        country: ""+country+"",			
        act: ""+act+"",			
        },
        function(result){
        $("#cnt24").html(result);
		
	});
}  

function freehandComplianceRevesions(){
	var realtxt = document.getElementById('realtxt').value; 
	// var month = document.getElementById('month').value;
	// var year = document.getElementById('year').value;
	var country = document.getElementById('country').value;
	var act = document.getElementById('vvalueq').value;
	$('#cnt24').html('<a style="text-align:center; width:100%;"><img src="../hr.gif" sytle="margin:0 auto;" id="loader-img" align="center"/></a>');
    $.post("new-archive-add-filter.php",{
        realtxt: ""+realtxt+"",			
        // month: ""+month+"",			
        // year: ""+year+"",			
        country: ""+country+"",			
        act: ""+act+"",			
        },
        function(result){
        $("#cntRevisions").html(result);
		
	});
}


function freehandOmittedCompliance(){
    var realtxt = document.getElementById('realtxt').value; 
    var month = document.getElementById('month').value;
    var year = document.getElementById('year').value;
    var country = document.getElementById('country').value;
    var act = document.getElementById('vvalueq').value;
    $('#cnt24').html('<a style="text-align:center; width:100%;"><img src="../hr.gif" sytle="margin:0 auto;" id="loader-img" align="center"/></a>');
        $.post("omitted-compliance-filter.php",{
            realtxt: ""+realtxt+"",			
            month: ""+month+"",			
            year: ""+year+"",			
            country: ""+country+"",			
            act: ""+act+"",			
            },
            function(result){
            $("#cnt24").html(result);
    	}
    );
}





