
				var resetHeight = 0;

				

				function resizeIframe(height)
				{
					var test = 'TEST';
					var oIframeList = document.getElementsByTagName("iframe");   
			
					for (var i = 0; i < oIframeList.length; i++) 
					{  
						var iframe =  oIframeList[i];
						   
						if (iframe.getAttribute("id") == "IframeTSE" ) 
						{   
							if(resetHeight==0)
							{
								resetHeight = iframe.getAttribute("height");
							}
			
							if(height>resetHeight)
							{
								iframe.setAttribute("height",Math.floor(height) + 0 );
			
								if(height>1000)
								{
									iframe.setAttribute("height",Math.floor(height) + 0 );
								}
							}
							else
							{
								iframe.setAttribute("height",Math.floor(resetHeight) + 0 );
							}
			
							if(window.console)
							{
								console.log(height);
							}
			  			}  
					}  
				}
			
				function ShowIframe(url, width, height)
				{
					var qstring = "";

					
						if(document.location.search.length)
						{
							if(url.indexOf('?')>0)
								qstring = (url.slice(url.indexOf('?')+1) ? '&' : '')+document.location.search.slice(1);
							else
								qstring = document.location.search;
						}

						qstring = qstring.replace(/;/gi,'');

						var re = new RegExp("<[^>]*>.*<[^>]*>","gi");
						qstring = qstring.replace(re,"");

						re = new RegExp("</.*>","gi");
						qstring = qstring.replace(re,"");

						qstring = qstring.replace(/"/gi,'');
						qstring = qstring.replace(/</gi,'');
						qstring = qstring.replace(/>/gi,'');

						re = new RegExp("%3C[^%3E]*%3E.*%3C[^%3E]*%3E","gi");
						qstring = qstring.replace(re,"");

						re = new RegExp("%3C/.*%3E","gi");
						qstring = qstring.replace(re,"");

						qstring = qstring.replace(/%27/gi,'');
						qstring = qstring.replace(/%22/gi,'');
						qstring = qstring.replace(/%3E/gi,'');
						qstring = qstring.replace(/%3C/gi,'');
						qstring = qstring.replace('DBEMODE','urldbemode');

						url += qstring;
					
					
					
					var st='<iframe name="tmIFrame" src="'+url+'"';
					if(width) st+=' width="'+width+'"';
					if(height) st+=' height="'+height+'"';
					st+=' frameborder="0" marginwidth="0" marginheight="0" scrolling="no" id="IframeTSE" ALLOWTRANSPARENCY="true"></iframe>';
					document.write(st);
				}

				function ChangeIframeSrc(iframeName, newSrc)
		        {
		         	var oIframe = document.getElementsByName(iframeName);                  
		            if (oIframe.length > 0)
		            {
		            	oIframe[0].src = newSrc;
		            }
		                    
		         }


				ShowIframe('http://www.travelmarket.no/partner/reis_no/tse_v2.cfm', 772, 150);
			

