function PageQuery(q) {
                if(q.length > 1) this.q = q.substring(1, q.length);
                else this.q = null;
                this.keyValuePairs = new Array();
                if(q) {
                for(var i=0; i < this.q.split("&").length; i++) {
                this.keyValuePairs[i] = this.q.split("&")[i];
                }
                }
                this.getKeyValuePairs = function() { return this.keyValuePairs; }
                this.getValue = function(s) {
                for(var j=0; j < this.keyValuePairs.length; j++) {
                if(this.keyValuePairs[j].split("=")[0] == s)
                return this.keyValuePairs[j].split("=")[1];
                }
                return false;
                }
                this.getParameters = function() {
                var a = new Array(this.getLength());
                for(var j=0; j < this.keyValuePairs.length; j++) {
                a[j] = this.keyValuePairs[j].split("=")[0];
                }
                return a;
                }
                this.getLength = function() { return this.keyValuePairs.length; } 
                }
                
                function queryString(key){
                var page = new PageQuery(window.location.search); 
                return unescape(page.getValue(key)); 
                }
                
                function displayItem(key){
                if(queryString(key)=='false') 
                {
                document.write("you didn't enter a ?name=value querystring item.");
                }else{
                document.write(queryString(key));
                }
                }
                
                if (queryString('source') != 'false')
                {              
                	if (queryString('source') == 'trader')
                	{
                			document.write('<h1>Trader of the Day Contest</h1><br><span class="subSubHead">Register below for unlimited access to the FOREXTrader platform<br>and a chance to win a $250 mini account.');                			
                      document.write('<br>');
                      document.write('<strong><b class="subSubHead"><img src="images/pix.gif" width="155" height="7"></b></strong></b></strong><br>');
                      document.write('</span><span class="greyBody">Real-time executable quotes in 37 currency pairs and spot gold <b>&middot;</b> Powerful charting<br>');
                      document.write('package for technical analysis <b>&middot;</b> 24-hour news headlines, research and more</span><br><br>');
                      document.write('Experience the exciting world of currency trading with no risk.<br>');
                  }
                  else if (queryString('source') == 'mini')               	
                  	{
                			document.write('<h1>Forex Practice Account</h1><br><span class="subSubHead">Experience the exciting world of currency trading with a <u>free</u> <br>practice account.');
                			document.write(' Register below for unlimited access to the <br>FOREXTrader ');
                      document.write('platform for the next 30 days, along with:<strong><b class="subSubHead"><br>');
                      document.write('<strong><b class="subSubHead"><img src="images/pix.gif" width="155" height="7"></b></strong></b></strong><br>');
                      document.write('</span><span class="greyBody">Real-time executable quotes in 37 currency pairs and spot gold <b>&middot;</b> Powerful charting<br>');
                      document.write('package for technical analysis <b>&middot;</b> 24-hour news headlines, research and more</span><br><br>');
                      document.write('Test your strategies under real market conditions, with no risk and no obligation.<br>');
                    }
                  else if (queryString('source') == 'windows')               	
                  	{
                			document.write('<h1>Test Drive FOREXTrader for Windows</h1><br><span class="subSubHead">Experience the exciting world of currency trading with a <u>free</u> <br>practice account.');
                			document.write(' Register below for unlimited access to the <br>FOREXTrader ');
                      document.write('for Windows platform for the next 30 days, along with:<strong><b class="subSubHead"><br>');
                      document.write('<strong><b class="subSubHead"><img src="images/pix.gif" width="155" height="7"></b></strong></b></strong><br>');
                      document.write('</span><span class="greyBody">Real-time executable quotes in 37 currency pairs and spot gold <b>&middot;</b> Powerful charting<br>');
                      document.write('package for technical analysis <b>&middot;</b> 24-hour news headlines, research and more</span><br><br>');
                      document.write('Test your strategies under real market conditions, with no risk and no obligation.<br>');
                    }
                  else if (queryString('source') == 'pro')               	
                  	{
                			document.write('<h1>$50,000 FOREXPro Trading Account</h1><br><span class="subSubHead">Trade on the tightest spreads offered by FOREX.com.<br>');
                			document.write(' Sign up for a FOREXPro practice account and trade on<br>');
                      document.write('spreads as low as 1 pip.<strong><b class="subSubHead"><br>');
                      document.write('<strong><b class="subSubHead"><img src="images/pix.gif" width="155" height="7"></b></strong></b></strong><br>');
                      document.write('</span><span class="greyBody">Real-time executable quotes in 37 currency pairs and spot gold <b>&middot;</b> Powerful charting<br>');
                      document.write('package for technical analysis <b>&middot;</b> 24-hour news headlines, research and more</span><br><br>');
                      document.write('Test your strategies under real market conditions, with no risk and no obligation.<br>');
                    }  
                    else if (queryString('source') == 'pro2')               	
                  	{
                			document.write('<h1>Test Drive FOREXTrader PRO</h1><br><span class="subSubHead">FOREXTrader PRO delivers a sleek new design with enhanced charting<br> functionality and technical analysisfeatures in a highly customizable<br> trading environment.');
                      document.write('<br><br></span>');
                      document.write('<span class="greyBody">Real-time executable quotes in 37 currency pairs and spot gold <b>&middot;</b> Professional <br>level charting package for technical analysis <b>&middot;</b> Dow Jones news headlines, <br>research and more</span><br><br>');
                      document.write('Test your strategies under real market conditions, with no risk and no obligation.<br>');
                    }  
                  else
                		{
                			document.write('<h1>$50,000 Forex Practice Trading Account</h1><br><span class="subSubHead">Experience the exciting world of currency trading with a <u>free</u> <br>practice account.');
                			document.write(' Register below for unlimited access to the <br>FOREXTrader ');
                      document.write('platform for the next 30 days, along with:<strong><b class="subSubHead"><br>');
                      document.write('<strong><b class="subSubHead"><img src="images/pix.gif" width="155" height="7"></b></strong></b></strong><br>');
                      document.write('</span><span class="greyBody">Real-time executable quotes in 37 currency pairs and spot gold <b>&middot;</b> Powerful charting<br>');
                      document.write('package for technical analysis <b>&middot;</b> 24-hour news headlines, research and more</span><br><br>');
                      document.write('Test your strategies under real market conditions, with no risk and no obligation.<br>');
                    }  
                }
                else
                		{
                			document.write('<h1>$50,000 Forex Practice Trading Account</h1><br><span class="subSubHead">Experience the exciting world of currency trading with a <u>free</u> <br>practice account.');
                			document.write(' Register below for unlimited access to the <br>FOREXTrader ');
                      document.write('platform for the next 30 days, along with:<strong><b class="subSubHead"><br>');
                      document.write('<strong><b class="subSubHead"><img src="images/pix.gif" width="155" height="7"></b></strong></b></strong><br>');
                      document.write('</span><span class="greyBody">Real-time executable quotes in 37 currency pairs and spot gold <b>&middot;</b> Powerful charting<br>');
                      document.write('package for technical analysis <b>&middot;</b> 24-hour news headlines, research and more</span><br><br>');
                      document.write('Test your strategies under real market conditions, with no risk and no obligation.<br>');
                    }                                 