	var iRightMostPixcel;
	var ie4 = document.all; 
	var nn6 = document.getElementById && !document.all;
	var iXCoordinate,iYCoordinate ;
	var iXCoordinateFix = 0,iYCoordinateFix = 0;
	document.onmousedown=setXY;
	
	if(screen.width < 1024)
	{
		iRightMostPixcel = 980;
	}
	else
	{
		var scrw = screen.width;
		iRightMostPixcel = 980 + (scrw-1024)/2;
	}
	
	
	function setXY(e)
	{		
		if (nn6) 
		{
			  iXCoordinate = e.pageX ;
			  iYCoordinate = e.pageY ;
		}
		else
		{
			iXCoordinate = event.x+document.body.scrollLeft;
			iYCoordinate = event.y+document.body.scrollTop;
		}
	}
	
	function fixXYPosition(X,Y)
	{
		if(X && Y)
		{
			iXCoordinate = X;
			iYCoordinate = Y;
		}
		else
		{
			if(iXCoordinateFix == 0)
			{
				iXCoordinateFix = iXCoordinate;
				iYCoordinateFix = iYCoordinate;
			}
			else
			{
				iXCoordinate = iXCoordinateFix;
				iYCoordinate = iYCoordinateFix;
			}		
		}
	}
			
//  open Frame where mouse click
//	Example :
//	var frmData = new objKeyword.setParams("frameName",url,height,width);

	var objKeyword = new Object();

	objKeyword.setParams = function(strFrmName, strAction, iHeight, iWidth)
	{ 
		if(!iHeight || iHeight == 0)
		{
			iHeight = 75;
		}
		if(!iWidth || iWidth == 0)
		{
			iWidth = 550;
		}
		this.strFrmName = strFrmName;
		this.iHeight = iHeight;
		this.iWidth = iWidth;
		this.strAction = strAction;
				
		this.loadFrame(strFrmName, strAction, iHeight, iWidth);
	}
	objKeyword.setParams.prototype = {
		loadFrame:function(strFrmName, strAction, iHeight, iWidth)
		{
			var iBottomMostPixcel = document.body.scrollHeight;
			var obj = document.getElementById(strFrmName);
			var objP = parent.parent.document.getElementById(strFrmName);
			var blnFlag = false;
			var iOffSetHeight;
			var iTemp = 0;
			if (document.all)
		    {
		   		 iOffSetHeight=document.body.offsetHeight;
		    } 
		    else 
		    { 
		   		 iOffSetHeight=window.innerHeight
		   		 iTemp = 18;
		    }
			
			if(objP)
			{
				var strCurrentAction = document.forms[0].action;
				var strParentAction = parent.parent.document.forms[0].action;
				if(strCurrentAction != strParentAction)					// When page has not parent
				{
					var strPixcel = objP.style.width;
					var iPixelValue = eval(strPixcel.substring(0,strPixcel.length-2));
					strPixcel = objP.style.height;
					iBottomMostPixcel = eval(strPixcel.substring(0,strPixcel.length-2));
					if(iPixelValue && iPixelValue > 0)
					{
						iRightMostPixcel = iPixelValue - 30;
					}
					iYCoordinate = iYCoordinate - document.body.scrollTop;
					blnFlag = true;
				}
			}
			obj.style.height = iHeight;
			obj.style.width = iWidth;
			obj.style.visibility = "visible";
			obj.scrolling = "no";
			if(iXCoordinate+iWidth > iRightMostPixcel)
			{
				iXCoordinate = iRightMostPixcel-iWidth ;
			}
			
			
			if(blnFlag)
			{
				if(iYCoordinate+iHeight > (iOffSetHeight))// iFrame is downside of screen
				{
					iYCoordinate = iOffSetHeight - iHeight - iTemp;
				}
			}
			else
			{
				if(iYCoordinate+iHeight > (document.body.scrollTop+iOffSetHeight))// iFrame is downside of screen
				{
					iYCoordinate = (document.body.scrollTop+iOffSetHeight) - iHeight;
				}
				else if(iYCoordinate <= document.body.scrollTop)// iFrame is above of screen
				{
				
					iYCoordinate = document.body.scrollTop +6;
				}
			}
			
			if(blnFlag)
			{
				iYCoordinate = iYCoordinate + document.body.scrollTop;
			}
			if(iYCoordinate < 0)
			{
				iYCoordinate = 10;
			}
			if(!iXCoordinate || !iYCoordinate)
			{
				iXCoordinate=(screen.width)/2-(iWidth/2);
				iYCoordinate=(screen.height)/2-(iHeight/2);;
			}
			obj.style.left = iXCoordinate + 3;
			obj.style.top = iYCoordinate - 3;
		
			frames[strFrmName].location.href = strAction;
		}
	}
	
	var mousePos =0;	
	function getScrollHeight()
	{
	   var h = window.pageYOffset ||
	           document.body.scrollTop ||
	           document.documentElement.scrollTop;
	           
	   return h ? h : 0;
	}	
	function get_mouse_pointer_coordinates(e) 
	{
		var posy = 0;
		var x=getScrollHeight();
		if (!e) var e = window.event;
		if (e.pageY)  
		{
			posy = e.pageY;
		}
		else if (e.clientY)  
		{
			posy = e.clientY + x;
		}
		
				
		mousePos = (window.screen.availHeight+x) -posy-163;
		return 	mousePos;	
	}