function i()
{
//	this.title=""
//	this.status=""
//	this.state=""
}
inf=new i()
function setInfo(o,t,s)
{
	inf.title=t
	o.title=t
	if(s=='*')s=t
	inf.status=s
	inf.state=1
	setTimeout("refreshInfo()",10)
	window.status=s
}
function refreshInfo()
{
	if(inf.state)
	{
		setTimeout("refreshInfo()",100)		
		window.status=inf.status
	}
}
function clearInfo()
{
	window.status=""
	inf.state=""
}
var message="";
function clickIE()
{
	if(document.all)
	{
		(message)
		return false
	}
}
function clickNS(e)
{
	if(document.layers||(document.getElementById&&!document.all))
	{
		if(e.which==2||e.which==3)
		{
			(message)
			return false
		}
	}
}
function DisableContextMenu()
{
	if(document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN)
		document.onmousedown=clickNS
	}
	else
	{
		document.onmouseup=clickNS
		document.oncontextmenu=clickIE
	}
	document.oncontextmenu=new Function("return false")
}
function CheckEmail(str)
{
  var supported=0
  if (window.RegExp)
  {
	var tempStr = "a"
	var tempReg = new RegExp(tempStr)
	if (tempReg.test(tempStr)) supported=1
  }
  if (!supported) return(str.indexOf(".") > 2) && (str.indexOf("@") > 0)
  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)")
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$")
  return (!r1.test(str) && r2.test(str))
}
function GetCookie(n)
{
	var search=n+"="
	var returnvalue=""
	if(document.cookie.length>0)
	{
		offset=document.cookie.indexOf(search)
		if(offset!=-1)
		{
			offset+=search.length
			end=document.cookie.indexOf(";",offset)
			if(end==-1)end=document.cookie.length
			returnvalue=unescape(document.cookie.substring(offset,end))
		}
	}
	return returnvalue
}
function SaveCookie(n,v)
{
	document.cookie=n+"="+v
}
function trim(s) 
{ 
	s=s.replace( /^\s*/, "" )
	s=s.replace( /\s*$/, "" ) 
	return s
} 
//RollOverImage
function InitRollOverImages()
{
	if(!document.getElementById) return
	var imgOriginSrc
	var imgTemp=new Array()
	var imgarr=document.getElementsByTagName('img')
	for(var i=0;i<imgarr.length;i++)
	{
		if(imgarr[i].getAttribute('hsrc'))
		{
			imgTemp[i]=new Image()
			imgTemp[i].src=imgarr[i].getAttribute('hsrc')
			imgarr[i].onmouseover=function()
			{
				imgOriginSrc = this.getAttribute('src')
				this.setAttribute('src',this.getAttribute('hsrc'))
			}
			imgarr[i].onmouseout=function()
			{
            			this.setAttribute('src',imgOriginSrc)
        		}
    		}
	}
}
