function cleanHtml(a){if(typeof a=="object")a.html(cleanString(a.html()));else a=cleanString(a);return a}function cleanString(a){return a.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')}function cleanHtmlScript(a){if(typeof a=="object")a.html(cleanStringScript(a.html()));else a=cleanStringScript(a);return a}function cleanStringScript(a){return a.replace(/&#39;/g,"\\&#39;")}function trimHtml(a){if(typeof a=="object")a.html(trimString(a.html()));else a=trimString(a);return a}function trimString(a){return a.replace(/\r/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/&nbsp;/g,"")}(function(a){a.fn.extend({gat_center:function(d,c){var b=null;if(d)b=a(d).height()>0?a(d).height():a(d).css("height");else b=a(this).parent().height()>0?a(this).parent().height():a(this).parent().css("height");b=parseInt(b);return a(this).each(function(){var d=a(this);if(!c)c=a(d).height()>0?a(d).height():a(d).css("height");c=parseInt(c);a(d).css("margin-top",(b-c)/2+"px")})}})})(jQuery);$(document).ready(function(){$("#modalDialog").dialog({autoOpen:false,resizable:false,modal:true,close:function(){$("#modalDialog").html("")}});var a=$("[ID*=hdnError]").val();a>""&&openErrorDialog("Error Processing Request",a)});function openDialog(d,e,a,b){if(!a||a==null)a=450;if(!b||b==null)b=450;var c='<iframe id="dialogFrame" frameborder="0" width="100%" height="100%" src="'+e+'"></iframe>';$("#modalDialog").append(c).dialog("option","title",d).dialog("option","height",a).dialog("option","width",b).dialog("open")}function alignHeights(c,d){var a=$(c),b=$(d);if(a.height()>b.height())b.height(a.height());else a.height(b.height())}function openErrorDialog(b,a){$("#modalDialog").append(a).dialog("option","title",b).dialog("option","buttons",{Ok:function(){$(this).dialog("close")}}).dialog("open")}(function(a){a.getParam=function(f){var e=decodeURI(window.location.search.substring(1));if(e==false|e=="")return null;var a=e.split("&amp;amp;amp;"),c={};for(var b in a){var d=a[b].indexOf("=");if(d==-1)c[a[b]]="";else c[a[b].substring(0,d)]=a[b].substr(d+1)}return c[f]}})(jQuery)

