//---------------------------------------------------------------------
function IsNumber(Number)
{
	var nums= "0123456789"
	strNum = String(Number)
	if(strNum.length==0)return false;	
	for(var i=0;i<strNum.length;i++)
		if(nums.indexOf(strNum.charAt(i))==-1)return false;
	return true;
}
//---------------------------------------------------------------------
function CheckField(objField,Check)
{
	if(objField.length!=null)
		for(i=0;i<objField.length;i++)
			objField[i].checked=Check
	else
		objField.checked=Check
}
//---------------------------------------------------------------------
function CheckAll(Caption,objField)
{
	if(Caption=="Check All")
		{
		CheckField(objField,true)
		return "Uncheck All"
		}
	else
		{
		CheckField(objField,false)
		return "Check All"
		}
}
//---------------------------------------------------------------------
function ListChange(ndx,lstSecond,TheList)
{
if(ndx > 0)
	{
	ndx--;
	temp=lstSecond
	for (m=temp.options.length-1;m>0;m--)
		temp.options[m]=null
	for (i=0;i<TheList[ndx].length;i++){
		temp.options[i]=new Option(TheList[ndx][i].text,TheList[ndx][i].value)
		}
	//temp.options[0].selected=true
	}
else
	{
	temp=lstSecond
	for (m=temp.options.length-1;m>=0;m--)
		temp.options[m]=null

	ii=0
	for (j=0;j<TheList.length;j++){
		for (i=0;i<TheList[j].length;i++)
			{
			if(!CheckList(temp,TheList[j][i].value)){
				temp.options[ii]=new Option(TheList[j][i].text,TheList[j][i].value)
				ii = ii + 1;
				}
			}
		}
	//temp.options[0].selected=true
	}
}
//---------------------------------------------------------------------
function CheckList(lstList1,strValue)
{
	for(var i1=0;i1<lstList1.options.length;i1++){
		if(lstList1.options[i1].value==strValue)return true;
	}
	return false;
}
//---------------------------------------------------------------------
function CheckChr(keyCode, Chrs)
{
	var strKeyCode=String.fromCharCode(keyCode);
	if(keyCode==13)return true;
	if(Chrs.indexOf(strKeyCode)!=-1)return true;
	return false;
}
//---------------------------------------------------------------------
MsgLen = 160
function CheckLen(fldTextArea, spanCounterID, iMaxLen)
	{
	if (fldTextArea.value.length > iMaxLen)
		fldTextArea.value = fldTextArea.value.substring(0, iMaxLen);
	else
		spanCounterID.innerHTML = iMaxLen - fldTextArea.value.length
	}
//---------------------------------------------------------------------
/*    var message='Function Disabled!';
    function clickIE()
        {if (document.all) {alert(message);return false;}}
    function clickNS(e)
        {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {alert(message);return false;}}}if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}document.oncontextmenu=new Function('return false')
*/		
//---------------------------------------------------------------------

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


try {
var pageTracker = _gat._getTracker("UA-10710546-3");
pageTracker._trackPageview();
} catch(err) {}
