function stopError() 
{
  return true;
}

//window.onerror = stopError;
var expiry = new Date().getTime(); //new Date(rmToday.getTime() + (1000 * 60 * 60 * 24 * 365));

var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
if (document.getElementById && !document.all) {	var NS6 = true; }

if (NS6)
{
	layerRef = "document.getElementById";
	styleSwitch = ".style";
}
else if (NS4) 
{
	layerRef = "document.layers";
	styleSwitch = "";
}
else
{
	layerRef = "document.all";
	styleSwitch = ".style";
}

// MMM Table Definitions
var mmmtab_font = "Arial ";
var mmmtab_color = "#000000";
var mmmtab_color_selected = "#FF0000";
var mmmtab_font_color = "#FFFFFF";
var mmmtab_font_color_selected = "#FFFFFF";
var mmmtabs_fontsize = "9pt";
var mmmtabs_fontsize2 = "8pt";

/*
	***************************************************************************************************
	BEGIN: APPLET SCRIPTING CHECK AND BROWSER RECOGNITION CODE
	***************************************************************************************************
*/
var jssBites = document.cookie.split("; ");
function getMCICookie(name)
{
	for (var i=0; i < jssBites.length; i++) 
	{
		nextbite = jssBites[i].split("=");
		if (nextbite[0] == name)
		return unescape(nextbite[1]);
	}
	return null;
}

function setCookie(name, value)
{
	//document.cookie=name + "=" + escape (value) + "; path=/"; 
	//bites = document.cookie.split("; ");
	setMCICookie(name, value);
}

function setMCICookie(name, value)
{
	//document.cookie=name + "=" + escape (value) + "; path=/";
	document.cookie=name + "=" + escape (value) + "; path=/; domain=e-meetings.verizonbusiness.com; secure";
	bites = document.cookie.split("; ");
}

function setPersistentMCICookie(name, value)
{
	//document.cookie=name + "=" + escape (value) + "; path=/"; 
	document.cookie=name + "=" + escape (value) + "; expires=" + rmExpiry.toGMTString() + "; path=/; domain=e-meetings.verizonbusiness.com; secure"; 
	bites = document.cookie.split("; ");
}

function checkJSScripting()
{
	setMCICookie("isAppletScriptingEnabled", "false");
	
	return ;
}

function checkJSScriptingAppletEnabled() // deprecated
{
	this.dom = document.getElementById?1:0;
	this.ie4 = (document.all && !this.dom)?1:0;
	this.ns4 = (document.layers && !this.dom)?1:0;
	this.ns6 = (this.dom && !document.all)?1:0;
	this.ie5 = (this.dom && document.all)?1:0;
	this.ok = this.dom || this.ie4 || this.ns4;
	this.platform = navigator.platform;

	var check = true;
	setMCICookie("isAppletScriptingEnabled", "false");
	if ( (!document.applets[0].mayScript()) && (getMCICookie("isAppletScriptingEnabled") != "true") ) { check = false; }
	if ( ! check ) { setMCICookie("isAppletScriptingEnabled", "false"); }
	else { setMCICookie("isAppletScriptingEnabled", "true"); }

	return;
}

function displaySecurityBanner()
{
    var msg_use_terms = "This system is provided solely for the use and convenience of Verizon's customers, to inquire about and manage their Verizon accounts. Any other use is prohibited. Verizon reserves the right to monitor use of this system, and to act as it deems appropriate to prevent, investigate, and prosecute misuse or fraud.";
    
	// set languages for messages
	if (getMCICookie("globalLangFlag") == "/de")
	{
        msg_use_terms = "Dieses System ist lediglich f\u00FCr die Kunden von Verizon zur Verwaltung ihrer Verizon-Konton vorgesehen. Jegliche anderweitige Verwendung ist untersagt. Verizon beh\u00E4lt sich das Recht vor, die Nutzung dieses Systems zu \u00FCberwachen und entsprechend zu handeln, um eine missbr\u00E4uchliche oder betr\u00FCgerische Nutzung des Systems zu verhindern, zu untersuchen und zu verfolgen.";
	}
	if (getMCICookie("globalLangFlag") == "/fr")
	{
        msg_use_terms = "Ce syst\u00E8me est fourni exclusivement \u00E0 l\u2019intention des clients de Verizon, afin de leur permettre de se renseigner sur leurs comptes Verizon et de les g\u00E9rer. Toute autre utilisation est interdite. Verizon se r\u00E9serve le droit de surveiller l\u2019utilisation de ce syst\u00E8me et de prendre les mesures requises pour emp\u00EAcher, examiner et poursuivre toute utilisation inappropri\u00E9e ou frauduleuse de celui-ci.";
	}
	if (getMCICookie("globalLangFlag") == "/ja")
	{
        msg_use_terms = "\u672C\u30B7\u30B9\u30C6\u30E0\u306F\u3001Verizon\u306E\u9867\u5BA2\u304C\u4FBF\u5B9C\u3092\u5F97\u308B\u76EE\u7684\u3067\u9867\u5BA2\u672C\u4EBA\u304C\u4F7F\u7528\u3057\u3001\u9867\u5BA2\u672C\u4EBA\u306E\u5951\u7D04\u5185\u5BB9\u3092\u78BA\u8A8D\u304A\u3088\u3073\u7BA1\u7406\u3059\u308B\u305F\u3081\u306B\u306E\u307F\u63D0\u4F9B\u3055\u308C\u308B\u3082\u306E\u3067\u3042\u308A\u3001\u4ED6\u306E\u7528\u9014\u306E\u305F\u3081\u306B\u3053\u308C\u3092\u4F7F\u7528\u3059\u308B\u3053\u3068\u3092\u7981\u305A\u308B\u3002Verizon\u306F\u672C\u30B7\u30B9\u30C6\u30E0\u306E\u4F7F\u7528\u3092\u76E3\u8996\u3057\u3001\u307E\u305F\u3001\u9069\u5207\u3068\u5224\u65AD\u3057\u305F\u5834\u5408\u306B\u306F\u3001\u8AA4\u7528\u304A\u3088\u3073\u4E0D\u6B63\u4F7F\u7528\u306E\u9632\u6B62\u3001\u8ABF\u67FB\u3001\u8D77\u8A34\u7B49\u306E\u884C\u52D5\u3092\u3068\u308B\u6A29\u5229\u3092\u6709\u3059\u308B\u3082\u306E\u3068\u3059\u308B\u3002";
	}
	
	return confirm(msg_use_terms);
}

function processConferencingLogin(theForm)
{
    // setup locals
    var isValid = true;
    var msgAccepted = true;
	var lName = theForm.username.value;
	var lPass = theForm.userpass.value;
	var msg_login_err = "Please enter your username and password.";
	var msg_use_terms = "This system is provided solely for the use and convenience of Verizon's customers, to inquire about and manage their Verizon accounts. Any other use is prohibited. Verizon reserves the right to monitor use of this system, and to act as it deems appropriate to prevent, investigate, and prosecute misuse or fraud.";
	
	// set languages for messages
	if (getMCICookie("globalLangFlag") == "/de")
	{
        msg_login_err = "Tragen Sie bitte Ihr username und Kennwort ein.";
        msg_use_terms = "Dieses System ist lediglich f\u00FCr die Kunden von Verizon zur Verwaltung ihrer Verizon-Konton vorgesehen. Jegliche anderweitige Verwendung ist untersagt. Verizon beh\u00E4lt sich das Recht vor, die Nutzung dieses Systems zu \u00FCberwachen und entsprechend zu handeln, um eine missbr\u00E4uchliche oder betr\u00FCgerische Nutzung des Systems zu verhindern, zu untersuchen und zu verfolgen.";
	}
	if (getMCICookie("globalLangFlag") == "/fr")
	{
        msg_login_err = "Veuillez entrer votre username et mot de passe.";
        msg_use_terms = "Ce syst\u00E8me est fourni exclusivement \u00E0 l\u2019intention des clients de Verizon, afin de leur permettre de se renseigner sur leurs comptes Verizon et de les g\u00E9rer. Toute autre utilisation est interdite. Verizon se r\u00E9serve le droit de surveiller l\u2019utilisation de ce syst\u00E8me et de prendre les mesures requises pour emp\u00EAcher, examiner et poursuivre toute utilisation inappropri\u00E9e ou frauduleuse de celui-ci.";
	}
	if (getMCICookie("globalLangFlag") == "/ja")
	{
        msg_login_err = "\u3042\u306A\u305F\u306E\u30E6\u30FC\u30B6\u30FC\u540D\u304A\u3088\u3073\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u308C\u306A\u3055\u3044\u3002";
        msg_use_terms = "\u672C\u30B7\u30B9\u30C6\u30E0\u306F\u3001Verizon\u306E\u9867\u5BA2\u304C\u4FBF\u5B9C\u3092\u5F97\u308B\u76EE\u7684\u3067\u9867\u5BA2\u672C\u4EBA\u304C\u4F7F\u7528\u3057\u3001\u9867\u5BA2\u672C\u4EBA\u306E\u5951\u7D04\u5185\u5BB9\u3092\u78BA\u8A8D\u304A\u3088\u3073\u7BA1\u7406\u3059\u308B\u305F\u3081\u306B\u306E\u307F\u63D0\u4F9B\u3055\u308C\u308B\u3082\u306E\u3067\u3042\u308A\u3001\u4ED6\u306E\u7528\u9014\u306E\u305F\u3081\u306B\u3053\u308C\u3092\u4F7F\u7528\u3059\u308B\u3053\u3068\u3092\u7981\u305A\u308B\u3002Verizon\u306F\u672C\u30B7\u30B9\u30C6\u30E0\u306E\u4F7F\u7528\u3092\u76E3\u8996\u3057\u3001\u307E\u305F\u3001\u9069\u5207\u3068\u5224\u65AD\u3057\u305F\u5834\u5408\u306B\u306F\u3001\u8AA4\u7528\u304A\u3088\u3073\u4E0D\u6B63\u4F7F\u7528\u306E\u9632\u6B62\u3001\u8ABF\u67FB\u3001\u8D77\u8A34\u7B49\u306E\u884C\u52D5\u3092\u3068\u308B\u6A29\u5229\u3092\u6709\u3059\u308B\u3082\u306E\u3068\u3059\u308B\u3002";
	}

    // check for non-empty login name and pass
    if ( lName == "" || lPass == "" )
    {
        alert(msg_login_err);
        return false;
    }

    // transform & to %26 - for operators
	theForm.username.value = lName.split('&').join('%26');
	theForm.userpass.value = lPass.split('&').join('%26');

    // display CPI banner and update isValid flag
	msgAccepted = confirm(msg_use_terms);
	isValid = msgAccepted && isValid;

    // check for good things and return back to caller
	if ( isValid )
	{
	   return true;
    }
    else
    {
        return false;
    }
}

/*
	***************************************************************************************************
	END: APPLET SCRIPTING CHECK AND BROWSER RECOGNITION CODE
	***************************************************************************************************

	***************************************************************************************************
	BEGIN: FETCH DATE INPIUT FOR FORMS
	***************************************************************************************************
*/
function getHtmlDateMenus(dayName, monthName, yearName)
{
	var months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
	var thedate = new Date();
	var themonth = thedate.getMonth();
	var theday = thedate.getDate();
	var theyear = thedate.getFullYear();
	var dateStr = new String("");
	var selected = new String("");
	
	// create month menu
	dateStr += "<select name='" + monthName + "'>"; 
	for (var j=0; j<12; j++)
	{
		if (themonth == j) { selected = " selected"; } else { selected = ""; }
		dateStr += "<option value='" + j + "'" + selected + ">" + months[j];
	}
	dateStr += "</select>";
	
	// create day of month menu
	dateStr += "<select name='" + dayName + "'>";
	for (var i=1; i<=31; i++) 
	{
		if (theday == i) { selected = " selected"; } else { selected = ""; }
		dateStr += "<option" + selected + ">" + i; 
	}
	dateStr += "</select>";
	
	// create year menu
	dateStr += "<select name='" + yearName + "'><option>" + (theyear - 1) + "</option><option selected>" + theyear + "</option><option>" + (theyear + 1) + "</option></select>";

	return dateStr;
}

function getMCIDateInput(dayName, monthName, yearName, appletName, code, codebase, archive, appletWidth, appletHeight, allowPrior)
{
	if (getMCICookie("isAppletScriptingEnabled") == "true")
	{
		var mon = getMCICookie('" + monthName + "');
		var day = getMCICookie('" + dayName + "');
		var year = getMCICookie('" + yearName + "');
		var dateInputStr = new String("");
		
		dateInputStr += "<APPLET NAME=" + appletName + " CODE=\"" + code + "\" CODEBASE=\"" + codebase + "\" ARCHIVE=\"" + archive + "\" WIDTH=" + appletWidth + " HEIGHT=" + appletHeight + ">";
		dateInputStr += "<param name=ALLOW_BEFORE_TODAY value=\"" + allowPrior + "\">";
		dateInputStr += "<param name=MONTH value=\"" + mon + "\">";
		dateInputStr += "<param name=DAY value=\"" + day + "\">";
		dateInputStr += "<param name=YEAR value=\"" + year + "\">";
		dateInputStr += "</APPLET>";
		dateInputStr += "<input type=hidden name='" + dayName + "'>";
		dateInputStr += "<input type=hidden name='" + monthName + "'>";
		dateInputStr += "<input type=hidden name='" + yearName + "'>";
		
		return dateInputStr;
	}
	else
	{
		return getHtmlDateMenus(dayName, monthName, yearName);
	}
}
/*
	***************************************************************************************************
	END: FETCH DATE INPIUT FOR FORMS
	***************************************************************************************************

	***************************************************************************************************
	BEGIN: REMEMBER ME FUNCTIONALITY
	***************************************************************************************************
*/
var rmFieldNames = new Array("firstName", "lastName", "email", "company", "title", "phone", "fax", "dept");
var rmFieldValues = new Array(rmFieldNames.length);
var rmBites = document.cookie.split("; ");
var rmToday = new Date();
var rmExpiry = new Date(rmToday.getTime() + (1000 * 60 * 60 * 24 * 365));

function getRememberMeCookie(name)
{
	for (var i=0; i < rmBites.length; i++) 
	{
		nextbite = rmBites[i].split("=");
		if (nextbite[0] == "RememberMe")
		{
			var rm = unescape(nextbite[1]);
			var rmBits = rm.split("|");
			for (var j=0; j<rmFieldNames.length; j++) { if (name == rmFieldNames[j]) { return rmBits[j]; break; } }
		}
	}
	return null;
}

function setRememberMeCookie(name, value)
{ 
	document.cookie=name + "=" + escape (value) + "; expires=" + rmExpiry.toGMTString() + "; path=/"; 
	bites = document.cookie.split("; ");
}

function isRemembered() { if ( (getMCICookie("RememberMe") != null) && (getMCICookie("RememberMe") != "undefined") && (getMCICookie("RememberMe") != "") ) { return true; } else { return false; } }

function doRememberMe(theForm)
{
	if (theForm.rememberme.checked == true)
	{
		for (var i=0; i<rmFieldValues.length; i++) { rmFieldValues[i] = ""; }
		for (var j=0; j<theForm.elements.length; j++)
		{
			for (var k=0; k<rmFieldNames.length; k++)
			{
				if (theForm.elements[j].name == rmFieldNames[k])
				{
					rmFieldValues[k] = theForm.elements[j].value;
					break ;
				}
			}
		}
		var cookieStr = new String("");
		for (i=0; i<rmFieldValues.length; i++) { cookieStr += rmFieldValues[i] + "|"; }
		setRememberMeCookie("RememberMe", cookieStr);
	}
	else { setRememberMeCookie("RememberMe", ""); }
	
	return true;
}

function getInfoFormField(name, isReq, text)
{
	var retVal = new String("");
	var bTagStart = new String("");
	var bTagEnd = new String("");
	
	if ( isReq )
	{
		bTagStart = "<b>";
		bTagEnd = "*</b>";
	}
	
	if ( getMCICookie("RememberMe") != null && getMCICookie("RememberMe") != "undefined" && getMCICookie("RememberMe") != "" )
	{
		retVal += '<tr><td align="left" valign="top"><label for="' + name + 'Input">' + bTagStart + text + bTagEnd + '</label></td><td align="left" valign="top"><input type="text" id="' + name + 'Input" name="' + name + '" value="' + getRememberMeCookie(name) + '"></td></tr>';
	}
	else
	{
		retVal += '<tr><td align="left" valign="top"><label for="' + name + 'Input">' + bTagStart + text + bTagEnd + '</label></td><td align="left" valign="top"><input type="text" id="' + name + 'Input" name="' + name + '" value=""></td></tr>';
	}
	
	return retVal;
}

function getInfoFormFieldWithDefault(name, isReq, text, def)
{
	var retVal = new String("");
	var bTagStart = new String("");
	var bTagEnd = new String("");
	
	if ( isReq )
	{
		bTagStart = "<b>";
		bTagEnd = "*</b>";
	}
	
	if ( getMCICookie("RememberMe") != null && getMCICookie("RememberMe") != "undefined" && getMCICookie("RememberMe") != "" )
	{
		retVal += '<tr><td align="left" valign="top"><label for="' + name + 'Input">' + bTagStart + text + bTagEnd + '</label></td><td align="left" valign="top"><input type="text" id="' + name + 'Input" name="' + name + '" value="' + getRememberMeCookie(name) + '"></td></tr>';
	}
	else
	{
		retVal += '<tr><td align="left" valign="top"><label for="' + name + 'Input">' + bTagStart + text + bTagEnd + '</label></td><td align="left" valign="top"><input type="text" id="' + name + 'Input" name="' + name + '" value="' + def + '"></td></tr>';
	}
	
	return retVal;
}

function printRememberMeCheckBoxRow()
{
	if ( (getMCICookie("RememberMe") != null) && (getMCICookie("RememberMe") != "undefined") && (getMCICookie("RememberMe") != "") ) 
	{
		document.write('<tr><td align="left" valign="top" colspan="2"><input id="remembermeInput" type="checkbox" name="rememberme" checked>');
	}
	else
	{
		document.write('<tr><td align="left" valign="top" colspan="2"><input id="remembermeInput" type="checkbox" name="rememberme">'); 
	}
	
	if (getMCICookie("globalLangFlag") == "/de")
	{
		document.write(' <label for="remembermeInput">Erinnern Sie sich an mich auf diesem Computer.</label></td></tr>');
	}
	else if (getMCICookie("globalLangFlag") == "/fr")
	{
		document.write(' <label for="remembermeInput">Je souhaite que mes informations soient sauvegard\u00e9es.</label></td></tr>');
	}
	else if (getMCICookie("globalLangFlag") == "/ja")
	{
		document.write(' <label for="remembermeInput">\ufeff\u4e0a\u8a18\u306e\u60c5\u5831\u3092\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306b\u8a18\u61b6\u3055\u305b\u308b\u3002</label></td></tr>');
	}
	else
	{
		document.write(' <label for="remembermeInput">Remember me on this computer.</label></td></tr>');
	}
}
/*
	***************************************************************************************************
	END: REMEMBER ME FUNCTIONALITY
	***************************************************************************************************
*/

function layerSwap(layerName, vis, layerName2, vis2)
{
	if (NS6)
	{
		eval(layerRef + '("' + layerName + '")' + styleSwitch + '.visibility = "' + vis + '"\;');
		eval(layerRef + '("' + layerName2 + '")' + styleSwitch + '.visibility = "' + vis2 + '"\;');
	}
	else
	{
		eval(layerRef + '.' + layerName + styleSwitch + '.visibility = "' + vis + '"\;');
		eval(layerRef + '.' + layerName2 + styleSwitch + '.visibility = "' + vis2 + '"\;');
	}
}

function CheckFormData(formName,list) 
{	
	var errorMessage = '';
	var radioErrorMessage = '';
	var isValid = 0;
	checked = 0;
	
	List = list.split("||");
	
	i = 0;
	j = 0;
	k = 0;
	l = 0;
	
	while (i < List.length) {
		TypeList = List[i].split('|');
		j = 0;
		while (j < TypeList.length) {
			
			if (TypeList[0] == 'email') {
				j++;
				k = j;
				isValid = CheckEmailSyntax(formName,TypeList[j],isValid);
				if (isValid == 0) { 
					return false; 
				}
				var thisItem = 'document.'+ formName + '.' + TypeList[j];
				thisItem = eval(thisItem);
				k++;
				if (thisItem.value == "") { 
					errorMessage = errorMessage + "\t" + TypeList[k] + "\n";
				}
				if (k == ((TypeList.length)-1)) {
					break;
				}
			}
			
			if (TypeList[0] == 'text') {
				j++;
				k = j;
				var thisItem = 'document.'+ formName + '.' + TypeList[j];
				thisItem = eval(thisItem);
				k++;
				if (thisItem.value == "") { 
					errorMessage = errorMessage + "\t" + TypeList[k] + "\n";
				}
				if (k == ((TypeList.length)-1)) {
					break;
				}
			}
				
			if (TypeList[0] == 'textarea') {
				j++;
				k = j;
				var thisItem = 'document.'+ formName + '.' + TypeList[j];
				thisItem = eval(thisItem);
				k++;
				if (thisItem.value == "") { 
					errorMessage = errorMessage + "\t" + TypeList[k] + "\n";
				}
				if (k == ((TypeList.length)-1)) {
					break;
				}
			}
				
			if (TypeList[j] == 'checkbox') {
				j++;
				k = j;
				var thisItem = 'document.'+ formName + '.' + TypeList[j];
				thisItem = eval(thisItem);
				k++;
				if (thisItem.value == "") { 
					errorMessage = errorMessage + "\t" + TypeList[k] + "\n";
				}
				if (k == ((TypeList.length)-1)) {
					break;
				}
			}
				
			if (TypeList[0] == 'radio') {
				j++;
				k = j;
				var thisItem = 'document.'+ formName + '.' + TypeList[j] + '[' + l + ']';
				thisItem = eval(thisItem);
				k++;
				l++;
				if (thisItem.checked == true && checked == 0) {
					checked = 1;
				}
				if (checked == 0) { 
					if (radioErrorMessage == '') {
					radioErrorMessage = radioErrorMessage + "\t" + thisItem.value;
					} else {
						radioErrorMessage = radioErrorMessage + " or " + thisItem.value;
					}
				}
				if (k == ((TypeList.length)-1)) {
					if (checked == 0) {
						errorMessage = errorMessage + radioErrorMessage + "\n";
					}
					break;
				}
			}
			j++;
		}
		
		i++;
	}
	
	var isAccept = 'document.' + formName + '.accept_terms';
	isAccept = eval(isAccept);
	//alert(isAccept);
	if (isAccept)
	{
		var acceptItem = 'document.' + formName + '.accept_terms.checked';
		acceptItem = eval(acceptItem);
		if (acceptItem == false)
		{
			errorMessage = errorMessage + "\tYou Must Accept the Terms and Conditions Before Continuing.\n";
		}
	}
	
	if (errorMessage == "") {
		return true;
	} else {
		alert ("The following fields have not been filled out:\n\n" + errorMessage + "\nPlease fill out these fields and then resubmit the form.\n\n");
		return false;
	}
}

function CheckEmailSyntax(formName,fieldName,isValid)
{
	var thisEmail = 'document.'+ formName + '.' + fieldName;
	thisEmail = eval(thisEmail);
	
	if (thisEmail.value != "") {
		var emailPat=/^(.+)@(.+)\.(\w+)$/;
		var specialChars="\\(\\)<>@,;:\\\\\\\'\\.\\[\\]";
		var validChars="\[^\\s" + specialChars + "\]";
		var quotedUser="(\'[^\']*\')";
		var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
		var atom=validChars + "+";
		var word="(" + atom + "|" + quotedUser + ")";
		var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
		var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
		
		var emailStr = thisEmail.value;
		var matchArray=emailStr.match(emailPat);
		if (matchArray==null) {
			alert("The email address '"+thisEmail.value+"' seems incorrect (check @ and .'s)");
			return isValid;
		}
		var user=matchArray[1];
		var domain=matchArray[2];

		if (user.match(userPat)==null) {
       		alert("The username for the email address '"+thisEmail.value+"' doesn't seem to be valid.");
    		return isValid;
		}

		var IPArray=domain.match(ipDomainPat)
		if (IPArray!=null) {
	  		for (var i=1;i<=4;i++) {
	    		if (IPArray[i]>255) {
	        		alert("Destination IP address in the email address '"+thisEmail.value+"' is invalid!");
				return isValid;
	   			}
    		}
		}
	}
	isValid = 1;
	return isValid;	
}

function popupon(text, eventObj) 
{ 
	ieLayer = 'document.all[\'popup\']';
	nnLayer = 'document.layers[\'popup\']';
	nn6Layer = 'document.getElementById(\'popup\')';
	
	//-- Start Editable Area --
	xOffset = 9;
	yOffset = 3;
	//-- End Editable Area --

  	if (!(document.all || document.layers || (document.getElementById&&!document.all))) return;
	  
	if (null != document.all) {
	 	document.popup = eval(ieLayer); 
		
	} else if (null != document.layers) {
		document.popup = eval(nnLayer); 
		
	} else if (document.getElementById&&!document.all) {
		document.popup = eval(nn6Layer);
	}

  	var table = "";
	var bigTable = ""; // Workaround for Netscape
	
	if (null != document.all) {
		table += "<table width=200 bgcolor=000000 border=0 cellpadding=1 cellspacing=0 style=\"border-width:1pt 1pt 1pt 1pt; border-color: #c0c0c0; border-style: inset\">";
		table += "<tr><td align=left bgcolor=d0d0d0>";
		table += "<table cellspacing=0 cellpadding=5>";
		table += "<tr><td bgcolor=fffff0 background=/images/popupBackground.gif align=left><font class=popupText>" + text + "</font></td></tr>";
		table += "</table>";
		table += "</td></tr></table>";
	
	} else if (null != document.layers) {
		table += "<table width=200 cellpadding=6 border=1 cellspacing=0 bordercolor=c0c0c0 bordercolordark=000000 bordercolorlight=c0c0c0>";
		bigTable += "<table width="+(document.width - xOffset - eventObj.layerX - 30)+"cellpadding=6 border=0 cellspacing=0 bgcolor=fffff0>";
		table += "<tr><td bgcolor=fffff0  background=/images/popupBackground.gif align=left><font class=popupText color=0000bf>" + text + "</font></td></tr></table>";
		bigTable += "<tr><td bgcolor=fffff0  background=/images/popupBackground.gif align=left><font class=popupText color=0000bf>" + text + "</font></td></tr></table>";
		
	} else if (document.getElementById&&!document.all) {
		table += "<table width=200 bgcolor=000000 border=0 cellpadding=1 cellspacing=0 style=\"border-width:1pt 1pt 1pt 1pt; border-color: #c0c0c0; border-style: inset\">";
		table += "<tr><td align=left bgcolor=d0d0d0>";
		table += "<table cellspacing=0 cellpadding=5 bgcolor=fffff0 background=/images/popupBackground.gif>";
		table += "<tr><td bgcolor=fffff0  background=/images/popupBackground.gif align=left><font class=popupText>" + text + "</font></td></tr>";
		table += "</table>";
		table += "</td></tr></table>";
	} 
	
	if (null != document.all) {
		document.popup.innerHTML = table;
		document.popup.style.left = "76px"; //eventObj.x + xOffset;
		document.popup.style.top  = "237px"; //eventObj.y + yOffset;
		document.popup.style.visibility = "visible";
	
	} else if (null != document.layers) {
		document.popup.document.open();
		document.popup.document.write(table);
		document.popup.document.close();
			if ((document.popup.document.width + xOffset + eventObj.layerX) > document.width) {
			document.popup.document.open();
			document.popup.document.write(bigTable);
			document.popup.document.close();
			}
		document.popup.left = "36"; //eventObj.layerX + xOffset;
		document.popup.top  = "237"; //eventObj.layerY + yOffset;
		document.popup.visibility = "visible";
	
	} else if (document.getElementById&&!document.all) {
		document.popup.innerHTML = table;
		document.popup.style.left = "76px"; //eventObj.layerX + xOffset;
		document.popup.style.top  = "237px"; //eventObj.layerY + yOffset;
		document.popup.style.visibility = "visible";
	}
}

function popUpOnXY(text, eventObj, ieXval, ieYval, nnXval, nnYval) 
{ 
	ieLayer = 'document.all[\'popup\']';
	nnLayer = 'document.layers[\'popup\']';
	nn6Layer = 'document.getElementById(\'popup\')';
	
	//-- Start Editable Area --
	xOffset = 9;
	yOffset = 3;
	//-- End Editable Area --

  	if (!(document.all || document.layers || (document.getElementById&&!document.all))) return;
	  
	if (null != document.all) {
	 	document.popup = eval(ieLayer); 
		
	} else if (null != document.layers) {
		document.popup = eval(nnLayer); 
		
	} else if (document.getElementById&&!document.all) {
		document.popup = eval(nn6Layer);
	}

  	var table = "";
	var bigTable = ""; // Workaround for Netscape
	
	if (null != document.all) {
		table += "<table width=200 bgcolor=000000 border=0 cellpadding=1 cellspacing=0 style=\"border-width:1pt 1pt 1pt 1pt; border-color: #c0c0c0; border-style: inset\">";
		table += "<tr><td align=left bgcolor=d0d0d0>";
		table += "<table cellspacing=0 cellpadding=5>";
		table += "<tr><td bgcolor=fffff0 background=/images/popupBackground.gif align=left><font class=popupText>" + text + "</font></td></tr>";
		table += "</table>";
		table += "</td></tr></table>";
	
	} else if (null != document.layers) {
		table += "<table width=200 cellpadding=6 border=1 cellspacing=0 bordercolor=c0c0c0 bordercolordark=000000 bordercolorlight=c0c0c0>";
		bigTable += "<table width="+(document.width - xOffset - eventObj.layerX - 30)+"cellpadding=6 border=0 cellspacing=0 bgcolor=fffff0>";
		table += "<tr><td bgcolor=fffff0  background=/images/popupBackground.gif align=left><font class=popupText face=arial size=1 color=0000bf>" + text + "</font></td></tr></table>";
		bigTable += "<tr><td bgcolor=fffff0  background=/images/popupBackground.gif align=left><font class=popupText face=arial size=1 color=0000bf>" + text + "</font></td></tr></table>";
		
	} else if (document.getElementById&&!document.all) {
		table += "<table width=200 bgcolor=000000 border=0 cellpadding=1 cellspacing=0 style=\"border-width:1pt 1pt 1pt 1pt; border-color: #c0c0c0; border-style: inset\">";
		table += "<tr><td align=left bgcolor=d0d0d0>";
		table += "<table cellspacing=0 cellpadding=5 bgcolor=fffff0 background=/images/popupBackground.gif>";
		table += "<tr><td bgcolor=fffff0  background=/images/popupBackground.gif align=left><font class=popupText>" + text + "</font></td></tr>";
		table += "</table>";
		table += "</td></tr></table>";
	} 
	
	if (null != document.all) {
		document.popup.innerHTML = table;
		document.popup.style.left = ieXval; //eventObj.x + xOffset;
		document.popup.style.top  = ieYval; //eventObj.y + yOffset;
		document.popup.style.visibility = "visible";
	
	} else if (null != document.layers) {
		document.popup.document.open();
		document.popup.document.write(table);
		document.popup.document.close();
			if ((document.popup.document.width + xOffset + eventObj.layerX) > document.width) {
			document.popup.document.open();
			document.popup.document.write(bigTable);
			document.popup.document.close();
			}
		document.popup.left = nnXval; //eventObj.layerX + xOffset;
		document.popup.top  = nnYval; //eventObj.layerY + yOffset;
		document.popup.visibility = "visible";
	
	} else if (document.getElementById&&!document.all) {
		document.popup.innerHTML = table;
		document.popup.style.left = ieXval; //eventObj.layerX + xOffset;
		document.popup.style.top  = ieYval; //eventObj.layerY + yOffset;
		document.popup.style.visibility = "visible";
	}
}

function popupoff() 
{ 
	if (!(document.all || document.layers || (document.getElementById&&!document.all))) return;
	
	if (null == document.popup) {
	} else if (null != document.all) {
		document.popup.style.visibility = "hidden";
	} else if (null != document.layers) {
		document.popup.visibility = "hidden";
		document.popup = null;
	} else if (document.getElementById&&!document.all) {
		document.popup.style.visibility = "hidden";
	}
}

function createRequestObject() 
{
  FORM_DATA = new Object();
  separator = ',';
  query = '' + this.location;
  query = query.substring((query.indexOf('?')) + 1);
  if (query.length < 1) { return false; }
  keypairs = new Object();
  numKP = 1;    
  while (query.indexOf('&') > -1) 
	{
    keypairs[numKP] = query.substring(0,query.indexOf('&'));
    query = query.substring((query.indexOf('&')) + 1);
    numKP++;
  }
  keypairs[numKP] = query;
  for (i in keypairs) 
	{
    keyName = keypairs[i].substring(0,keypairs[i].indexOf('='));
    keyValue = keypairs[i].substring((keypairs[i].indexOf('=')) + 1);
    while (keyValue.indexOf('+') > -1) 
		{
      keyValue = keyValue.substring(0,keyValue.indexOf('+')) + ' ' + keyValue.substring(keyValue.indexOf('+') + 1);
    }
    keyValue = unescape(keyValue);
    if (FORM_DATA[keyName]) { FORM_DATA[keyName] = FORM_DATA[keyName] + separator + keyValue; } 
		else { FORM_DATA[keyName] = keyValue; }
  }
  return FORM_DATA;
}

