(function($) {
	$.extend({
	    flowUtils:{
	        loadPolicy: function(flowId){
	            now = new Date();
	            $("#examBasicDiv").html("Loading...");
	            $.ajax({url: "xzsp2xzspFlowView.html",  
			    	type: "get",
			    	data: "id=" + flowId + "&loadPolicy=1&encoding=" + now.getTime(),
			        error: function(){
			   		
			        }, 
			        success: function(msg){
			        	$("#examBasicDiv").html(msg);
				    }  
			    });
			},
			loadAttachment: function(flowId){
			    now = new Date();
			    $("#newsTypeSpan").html("Loading...");
	            $.ajax({url: "xzsp2xzspFlowView.html",  
			    	type: "get",
			    	data: "id=" + flowId + "&loadAttachment=1&encoding=" + now.getTime(),
			        error: function(){
			   		
			        }, 
			        success: function(msg){
			        	$("#attachment").html(msg);
				    }  
			    });
			}
		},
		xzspForeUtils:{
	        loadStatBlock: function(){
	            now = new Date();
	            $("#statBlock").html("Loading...");
	            $.ajax({url: "xzsp2xzspLeftStat.html",  
			    	type: "get",
			    	data: "encoding=" + now.getTime(),
			        error: function(){
			   		
			        }, 
			        success: function(msg){
			        	$("#statBlock").html(msg);
				    }  
			    });
			}
		}
	}); 
})(jQuery); 

$(document).ready(function () {
	$("#btn_register").click(function () { 
	    window.location='howToRegister.html';
	});
});


