﻿// Activate TRIM function for java script
String.prototype.trim = function(){ return this.replace(/^s+|s+$/g,'') }

var ie4 = false; if(document.all) { ie4 = true; }

if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
function noCache(uri){return uri.concat(/\?/.test(uri)?"&":"?","noCache=",(new Date).getTime(),".",Math.random()*1234567)};

//Function to obtain objects by ID
function $(id) { return document.getElementById(id); }