			function fireEvent(obj,evt){
				var fireOnThis = obj;
				if( document.createEvent ) {
				  var evObj = document.createEvent('MouseEvents');
				  evObj.initEvent( evt, true, true );
				  fireOnThis.dispatchEvent(evObj);
				} else if( document.createEventObject ) {
				  fireOnThis.fireEvent('on'+evt);
				}
			}	
			function openSigninLink(){
				if ('true'!='#{kaptest.blogs_forums_login.loggedIn}'){
				fireEvent($('siginLink'),'click');
				}
				return false;
			}
			function openRegisterLoginWindow(blogsForumsReturnURL){
				$('blogsForumsURL').value = blogsForumsReturnURL;
				document.registerForm.submit();
				return false;
			}
			function onSigninReloadIframe(){
			try{
				window.frames[0].window.location.reload();
				} catch(e){ }
				window.location.reload();
			}
		
			function changeHeight(iframe)
			{
				var iframeId = iframe.id;
				var the_height=800;
				try
				{
				  var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
				  if (innerDoc.body.offsetHeight) //ns6 syntax
				  {
					 the_height = innerDoc.body.offsetHeight + 32; //Extra height FireFox
				  }
				  else if (iframe.Document && iframe.Document.body.scrollHeight) //ie5+ syntax
				  {
					 the_height = iframe.Document.body.scrollHeight;
				  }
				  
				  the_height = the_height + 50;
				  
				  if(the_height<800)
				     the_height = 800;
				  document.getElementById(iframeId).height=the_height;
				     
				  $$('.shadow_overlay, #mainContent').invoke('setStyle', {height:the_height+'px'});
				  
				}
				catch(err)
				{
				}
			}
		