	//var currentFrame = "spFrame1";
	ScrollFreeze = /*2843293230303620532E4368616C6D657273*/
	{
		propFlag : true,
		Ydisp : 0,
		Xdisp : 0,
		
		on : function()
		{
			if(this.getProp())
			window.onscroll=function(){ ScrollFreeze.setXY();}
		},
		
		off : function()
		{
			window.onscroll=null;
		},
		
		getProp : function()
		{
			if( typeof window.pageYOffset != 'undefined' )
			{
				this.Ydisp=window.pageYOffset;
				this.Xdisp=window.pageXOffset;
			}
			else
				if(document.documentElement)
				{
					this.Ydisp=document.documentElement.scrollTop;
					this.Xdisp=document.documentElement.scrollLeft;
				}
				else
					if(document.body && typeof document.body.scrollTop != 'undefined')
					{
						this.Ydisp=document.body.scrollTop;
						this.Xdisp=document.body.scrollLeft;
					}
					else
						this.propFlag=false;
		
			return this.propFlag;
		},
		
		setXY : function()
		{
			window.scrollTo( this.Xdisp, this.Ydisp );
		}
	}

	function choosePoint(point)
	{
		document.getElementById('pointID').value = point;
		var divItem = document.getElementById('spFrame');
		var divWidth = parseInt(divItem.style.width);

		if( typeof( window.innerWidth ) == 'number' ) 
		{
			//Non-IE
			winWidth = window.innerWidth;
		} 
		else if(document.documentElement && ( document.documentElement.clientWidth ) ) 
		{
			//IE 6+ in 'standards compliant mode'
			winWidth = document.documentElement.clientWidth;
		} 
		else if( document.body && ( document.body.clientWidth ) )
		{
			//IE 4 compatible
			winWidth = document.body.clientWidth;
		}
		
		//divItem.style.display = 'block';
		//var frameItem = document.getElementById(spFrameItem);
		ScrollFreeze.on();
		var yoffSet = (navigator.appName=="Netscape")? window.pageYOffset : document.documentElement.scrollTop;
		divItem.style.left = (winWidth-divWidth)/2+'px';
		divItem.style.top = (yoffSet + 100)+'px';
		divItem.style.display = 'block';
		var bDiv = document.getElementById("blockingDiv");
		bDiv.className = 'block';
		bDiv.style.top = yoffSet+'px';
	}
	
	function checkForm()
	{
		var nickName = document.getElementById('nickName').value;
		var commentTxt = document.getElementById('commentTxt').value;
		if(commentTxt == "" || commentTxt == null)
		{
			alert("you didn't add any text");
			return false;
		}
		if(nickName == "" || nickName == null)
		{
			var conf = confirm("are you sure you don't want to add a name?");
			if(!conf)
				return false;
		}
		document.getElementById("commForm").submit();
		
	}
	function TAlimit(s) 
	{
		var maxlength = 1024; // Change number to your max length.
		if (s.value.length > maxlength) 
		s.value = s.value.substring(0,maxlength);
	}
	
	function displayDetails(spFrameItem)
	{
		//document.getElementById(currentFrame).style.display = 'none';
		var frameItem = document.getElementById(spFrameItem);
		var divWidth = parseInt(frameItem.style.width);
		
		if( typeof( window.innerWidth ) == 'number' ) 
		{
			//Non-IE
			winWidth = window.innerWidth;
			winHight = window.innerHeight;
		} 
		else if(document.documentElement && ( document.documentElement.clientWidth ) ) 
		{
			//IE 6+ in 'standards compliant mode'
			winWidth = document.documentElement.clientWidth;
		} 
		else if( document.body && ( document.body.clientWidth ) )
		{
			//IE 4 compatible
			winWidth = document.body.clientWidth;
		}

		//alert(winWidth+" "+divWidth);
		
		ScrollFreeze.on();
		var yoffSet = (navigator.appName=="Netscape")? window.pageYOffset : document.documentElement.scrollTop;
		frameItem.style.left = (winWidth-divWidth)/2+'px';
		//alert(frameItem.style.left);
		//winHight
		frameItem.style.top = (yoffSet + 100)+'px';
		frameItem.style.display = 'block';
		var bDiv = document.getElementById("blockingDiv");
		bDiv.className = 'block';
		bDiv.style.top = yoffSet+'px';
		
	//document.getElementById("aaa").style.display = 'inline';
		currentFrame = spFrameItem;
	}
	
	function closeComment()
	{
		ScrollFreeze.off();
		document.getElementById('pointID').value = '';
		document.getElementById('nickName').value = '';
		document.getElementById('commentTxt').value = '';
		document.getElementById('spFrame').style.display = 'none';
		document.getElementById("blockingDiv").className = 'unblock';
	}
	function openClosePt(textId, sp)
	{
		var tId = document.getElementById(textId);
		if(tId.style.display == 'inline')
		{
			tId.style.display='none';
			sp.innerHTML = "&nbsp;+&nbsp;&nbsp;";
		}
		else
		{
			tId.style.display='inline';
			sp.innerHTML = "&nbsp;-&nbsp;&nbsp;";
		}
	}
	
	function closedetails()
	{
		ScrollFreeze.off();
		document.getElementById(currentFrame).style.display = 'none';
		document.getElementById("blockingDiv").className = 'unblock';
	}
