

		clicked=false;
		

		function getFile(href)
		{
			window.open(href);
			return false;
		}

		function HideLoading()
		{
			
			Loading1 = document.getElementById("Loading");
									
			Loading1.style.visibility="hidden";
			
		}
		
		function setSelectedArticle(task)
		{
			
			box = document.getElementById("taskID");
			//Loading1 = document.getElementById("Loading");						
			if((box != null) && clicked != true)
			{
				box.value = task;
				box.focus();
				box.blur();
				//Loading1.style.visibility="visible";
				__doPostBack('taskID','')
				
			}
		}
		
		function openPopUp(strHREF)
		{
				window.open(strHREF,"externalwindow","height=450,width=610,resizable =yes,status=yes,toolbar=yes,menubar=yes,location=yes")
		}
     
		//for Netscape
			if (document.layers)
				{//window.onscroll=sizeIframe
			}
			else //for IE 
			if (document.all)
				{//window.onscroll=sizeIframe
			}
				
				
		function adjustIFrameSize (iframeWindow) 
		{
			if (iframeWindow.document.height) 
			{
				var iframeElement = parent.document.getElementById(iframeWindow.name);
				iframeElement.style.height = iframeWindow.document.height + 'px';
				iframeElement.style.width = iframeWindow.document.width + 'px';
			}
			else 
			if (document.all) 
			{
			    var iframeElement = parent.document.all[iframeWindow.name];
			    if (iframeWindow.document.compatMode &&	iframeWindow.document.compatMode != 'BackCompat') 
			    {
				iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 5 + 'px';
				iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 5 + 'px';
			    }
			    else 
			    {
				iframeElement.style.height =iframeWindow.document.body.scrollHeight + 5 + 'px';
				iframeElement.style.width = iframeWindow.document.body.scrollWidth + 5 + 'px';
			    }
		     }
		 }
								
					
		function sizeIframe()
		{
			winHeight = document.body.clientHeight;
			winWidth = document.body.clientWidth;
			winHeight = winHeight - 71;
			//winHeight = winHeight - 40;
			//document.write(winHeight);
			if (winHeight > 0)
			{
			 //document.all.content.style.height = winHeight;
			
			 if(document.layers)
			 {  
                          document.layer1.top = winHeight+document.body.scrollTop ;
			  document.layer2.top = winHeight+document.body.scrollTop+46 ;
			 }

			 
			 if(document.all!=null)
			 {
			  
			  layer1.style.top = winHeight+document.body.scrollTop ;	
			  layer2.style.top = winHeight+document.body.scrollTop+46 ;
			 
			  //layer1.style.width = document.body.scrollWidth;//winWidth;//document.body.scrollWidth ;	
			  if (winWidth<760)
			  {
			   layer1.style.width=760;
			   layer2.style.width=760;
			  }
			  else
			  {
			   layer1.style.width=winWidth;
			   layer2.style.width=winWidth;
			  }
			  // alert(layer1.style.width);
			  //layer2.style.width = document.body.scrollWidth ;
			 }
			 
			
			}// winheight>0
		}