<!--
	var iMoz=false;
	var iNs=false;
	var iIe=false;
	
	if (document.getElementById) iMoz=true;
	if (document.layers) iNs=true;
	if (document.all) iIe=true;
	
	function ShowErrorMsg(msg, frmfoc)
	{
		alert(msg);
		if (frmfoc) frmfoc.focus();
	}
	
	function ValidEmail(s)
	{
		if (s == '') return false;
		var i = 0, sLength = s.length, user, dom, ext;
		while ((i < sLength) && (s.charAt(i) != "@")) i++;
		if ((i >= sLength) || (s.charAt(i) != "@")) return false;
		user = s.substring(0, i);
		i += 1;
		sd = i;
		while ((i < sLength) && (s.charAt(i) != ".")) i++;
		if ((i >= sLength) || (s.charAt(i) != ".")) return false;
		dom = s.substring(user.length+1, i);
		i += 1;
		ext = s.substr(user.length+dom.length+2, sLength); 
		if (dom.length < 1 || ext.length < 2) return false;
		else return true;
	}
	
	function ValidSite(s)
	{
		s = s.toLowerCase();
		if (s == '') return false;
		if (s.indexOf('http://') != 0 && s.indexOf('https://') != 0) return false;
		var i = 0, sLen = s.length, http, dom, ext, pt, sd;
		
		while ((i < sLen ) && (s.charAt(i) != ":")) i++;
		if (i >= sLen || s.charAt(i) != ":") return false;
		else
		{
			pt = s.substring(i+1, i+3);
			http = s.substring(0, i);
			if (pt != "//" || (http.toLowerCase() != "http" && http.toLowerCase() != "https")) return false; 
			i += 3;
			sd = i;
		}
		while ((i < sLen )&& (s.charAt(i) != ".")) i++;
		dom = s.substring(sd, i);
		if (dom.length < 1 || i >= sLen || s.charAt(i) != ".") return false;
		ext = s.substring(i+1, sLen);
		if (ext.length < 2) return false;
		return true;
	}
	
	function TrimStr(str)
	{
		return str.replace(/^\s+|\s+$/g, '');
	}
	
	function SelectAll(frm, arr, mark, tot)
	{
  		for (i = 0; i < eval(frm+'.'+tot).value; i++)
		{
    		try {
     			formelem = arr+i;
				eval(frm+'.'+formelem).checked = mark;
    		} catch(er) {}
		}
  	}
	function SelectedCount(frm, arr, tot)
	{
		var selCnt = 0;
		for (i = 0; i < eval(frm+'.'+tot).value; i++) {
    		try {
     			formelem = arr+i;
				if (eval(frm+'.'+formelem).checked) selCnt++;
    		} catch(er) {}
		}
		return selCnt;
	}
	
	function ShowPopup(winloc,winid,wdth,hght,newtop,newleft,sb,loc,dir,stus,menu,tbar,rsze,winpos,pload)
	{
   		if (winpos == 'randpos') {
       		newleft = (screen.width)?Math.floor(Math.random()*(screen.width-wdth)):100;
       		newtop = (screen.height)?Math.floor(Math.random()*((screen.height-hght)-75)):100; 
   		} else if (winpos == 'centerwin') {
      		newleft = (screen.width)?(screen.width-wdth)/2:100;
      		newtop=(screen.height)?(screen.height-hght)/2:100;
   		}
   		if (wdth == 0 && hght == 0) {
      		wdth = screen.width;
      		hght = screen.height;
   		}
   		windowsettings = "width=" + wdth + ",height=" + hght + ",top=" + newtop + ",left=" + newleft + ",scrollbars=" + sb + ",location=" + loc + 
						 ",directories=" + dir + ",status=" + stus + ",menubar=" + menu + ",toolbar=" + tbar + ",resizable=" + rsze + "";
   		if (window.open(winloc,winid,windowsettings))
   		{
    		if (pload == 1) window.focus();
			else window.blur();
   		}
  	}
  
  	function TextOut(divid, txt)
	{
		if (iMoz)
			o = document.getElementById(divid);
		else if (iIe)
			o = document.all[divid];
		else if (iNs)
			o = document.layers[divid];
		o.innerHTML = txt;
	}
//-->