<!--
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
    ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.location=theURL;
}

function checkElem(elem, msg)	{
	if ((elem.value == "") || (elem.value.length == 0))	{
		alert("Please fill in the '" + msg + "' field!");
		elem.focus();
		return false;
	}
	return true;
}

function checkBadSmb(elem, msg)	{
var regexp = /(\s{2,})|(\|)|(\*)|(\_)|(\@)|(\!)|(\^)|(\<)|(\>)|(\+)|(\%)|(\;)/g
	if (regexp.test(elem.value))	{
		alert("Bad symbols or too many whitespaces are in the " + msg + " field!"); elem.focus(); return false;
	}
	if (elem.value.indexOf('"') != -1)	{
		for (var i=0; i < elem.value.length; i++)	{
			elem.value = elem.value.replace('"',"'");
		}
	}
	return true;
}


//-->
