﻿<!-- 
					var oDragElement;		
				
			function srcMouseOver(oObject)
			{
				if(!oObject.contains(event.fromElement)) 
				{
					window.document.all.item('ctrlID').value=oObject.id;
				}

			}
			
			function srcMouseDown(obj)
			{
				
				oDragElement =obj;// event.srcElement;
				
				dvInfo.style.display ='';
				dvInfo.style.posLeft = event.clientX;
				dvInfo.style.posTop = event.clientY;
				dvInfo.style.cursor = 'hand';
				dvInfo.innerHTML =oDragElement.PartName;
				window.document.all.item('txtPartSrc').value=oDragElement.PartSrc;
				window.document.all.item('txtSettingSrc').value=oDragElement.SettingSrc;
				window.document.all.item('txtPartClassName').value=oDragElement.ClassName;
		
			}
			
			function srcMouseUp()
			{
				dvInfo.style.display = 'none';
				
			}
			
			
			function dragSrc()
			{
				var x,y;
				
				x = event.clientX + document.body.scrollLeft;
				y = event.clientY + document.body.scrollTop;
				
				dvInfo.style.display='';
				dvInfo.style.posLeft = x;
				dvInfo.style.posTop = y;
				dvInfo.style.cursor = 'hand';
				
				dvInfo.style.backgroundColor = '99ff99';
				dvInfo.innerText = oDragElement.PartName;
			}
			
			
			function drgSrcEnd()
			{
				dvInfo.style.display = 'none';
				
				
			}
			
			
			function dropOnTarget()
			{
				dvInfo.style.display = 'none';
				var oTargetEle = event.srcElement;
			if (oTargetEle.IsTarget == 'True')
				{
						//var str=window.document.all.item('txtElement').value;
						
						window.document.all.item('panelID').value=oTargetEle.id;
						//window.document.all.divInnerHtml.value =window.document.all.plModel.innerHTML; 
						__doPostBack('Page1$btnAdd','');
						
				
				}
			}
			function decMouseDown()
			{
				if (event.button==2)
				{
					
					return;
				}
			}
			
		
		
		var oldObj;
		function showEditMenu(pmenun)
		{
			  // popmenu=document.all(pmenun);
				
				var x,y;
				
				x = event.clientX + document.body.scrollLeft-102;
				y = event.clientY + document.body.scrollTop-2;
				
				pmenun.style.display='block';
				pmenun.style.posLeft = x;
				pmenun.style.posTop = y;
	
			
				
		}
		
		function GetPanelID()
		{
			
				var urlObj;
				var urlParm;
				var index;
		
				urlObj= event.srcElement.id;
							
				index=urlObj.indexOf('_');
				//alert(urlObj);
				urlParm=urlObj.substring(0,index);
		
				//window.parent.document.all.item('txtReturn').value=urlParm;
				//document.all.item('txtReturn').value=urlParm;
				//alert(urlParm)
		}
		function hideEditMenu(pmenun)
		{
			var str=event.srcElement.id;
			if (str.substring(0,2) == 'pl')
				return;	
			if(pmenun==null)
			{
				var coll = document.all.tags('div');
				if (coll!=null)
				{
					for (i=0; i<coll.length; i++) 
					{
						if(coll[i].id.indexOf('_Menu')!=-1)
							coll[i].style.display='none';
						
					}
				}		
			}
			else
			{			 	
				pmenun.style.display='none';				
			}
			try{  QMHideRightMenu();}catch(e){}
		}
		
		function selectObj(obj)
		{
			
			if (oldObj==null)
			{
				
				oldObj=obj;
			}
			else
			{
				oldObj=obj;
			}
		}
		
		function DelPart(clientID)
		{
		if(confirm('Delete The WebPart?'))
		{
			button=clientID+'$delButton';
			__doPostBack(button,'');
		
		}
		}
		
		function openSetting(url,filename,ctrlID)
		{		
			
			dialogStr=url+'?fileName='+filename+'&ctrlID='+ctrlID;
			//window.open(dialogStr);
			var featuresstring='resizable:no;help:No;status:No;center:Yes;dialogWidth:560px;dialogHeight:400px';
			var strReturn=window.showModalDialog(dialogStr,'',featuresstring);
					
			if (strReturn=='dirty')
			{
			window.location =window.location.href;
			}
					
			return;
			
		}
		
		
		function openDialog(url)
		{
			var varg='resizable:no;help:No;status:No;center:Yes;dialogWidth:380px;dialogHeight:380px'
			var str=window.showModalDialog(url,'',varg);
			if (str=='dirty')
					{
						window.location =window.location.href;
					}
			
			return true;
		}
		
	function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=='Netscape')&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf('?'))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

	//-->