 $(document).ready(function() {

	var currentLocation = document.location.toString();

	$("#linkperm").attr("value",currentLocation);

 } );
