function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		anchor.onfocus		= function() { this.blur(); }
		if (anchor.getAttribute("href") &&
			anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}
}

window.onload = function() { externalLinks(); }

function startList() {
	if (document.all&&document.getElementById) {

		navRoot = document.getElementById("mm");

		for (i=0; i<navRoot.childNodes.length; i++) {

			node = navRoot.childNodes[i];

			if (node.nodeName=="LI") {

				node.onmouseover=function() {
					this.className+=" over";
				}
				
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

window.onload = startList; 



function fncjsCheckInteger(varUnknown) 
	{
	var sValidNum='0123456789'; 
	var temp1; 
	var temp2; 
	temp2 = varUnknown;
	
	for (var i=0;i<temp2.length;i++)
		{
		temp1 =  temp2.substring(i,i+1); 
		if(sValidNum.indexOf(temp1)==-1)
			{ return false; }
		}
	return true;
	}

function fncjsCheckFloat(strValue)
{
	var sValidNum='0123456789';
	var temp1;
	var flDecimalAlready = false;

	for (var i=0;i<strValue.length;i++)
	{
		temp1 =  strValue.substring(i,i+1);
		//alert('checkinteger: ' + temp1 + ' ' + sValidNum.indexOf(temp1));
		if ('.' == temp1)
		{
			if (!flDecimalAlready)
				flDecimalAlready = true;
			else
				return false;
		}
		else if(sValidNum.indexOf(temp1)==-1)
			{ return false; }
	}
	return true;
}

function fncjsCheckEmail(strValue)
{
	return /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(strValue);
}

function fncjsOpenWindow(strURL)
{
	windowStatus = window.open(strURL);
}

