<!--
function Validate () 
				{
					var loginType = document.login.AuthMethod.options[document.login.AuthMethod.options.selectedIndex].value;
					var loginName = document.login.UserName.value;

					if ( loginType == '' ) {
						alert('Please select a login method!');
						return false;
					}
					
					if ( loginName == '' ) {
						alert('The login field cannot be empty!');
						return false;
					}

					/*
					**************** loginType vs. loginName validation start  *********************
					// try to match the login type vs. the entered username
					if ( loginType == 1 ) {
						// reg number
						var re = /^[\w\d]+$/;
						if ( !re.test( loginName ) ) {
							alert('It appears that you have entered an invalid registration number!');
							return false;
						}
					} else if ( loginType == 2 ) {
						// domain registration
						var re = /^([A-Za-z0-9\-]{1,63}\.)+[A-Za-z]{2,63}$/;
						if ( !re.test( loginName ) ) {
							alert('It appears that you have entered an invalid domain name!');
							return false;
						}
					} else if ( loginType == 5 ) {
						// ftp username
						var re = /^[\w\d]+$/;
						if ( !re.test( loginName ) ) {
							alert('It appears that you have entered an invalid ftp username!');
							return false;
						}
					} else if ( loginType == 6 ) {
						// email address
						var re1 = /\@{2}|\-{2}|\.{2}|\_{2}|\.\@|\@\.|\-\@|\@\-|\@\_|\.\-|\-\.|\.\_|\_\.|\-\_|\_\-/;
						var re2 = /^[a-z0-9].*[a-z0-9]$/i;
						var re3 = /^[a-z0-9\-\_\.\@]+$/i;

						var res1 = re1.test( loginName );
						var res2 = re2.test( loginName );
						var res3 = re3.test( loginName );

						if ( ( res1 || ( ! res2 ) || ( ! res3 ) ) ) {
							alert('It appears that you have entered an invalid email address!');
							return false;
						}
					}
					
					**************** loginType vs. loginName validation end  *********************
					*/
					
					return true;
				}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

