i have a problem with that code , this code takes the first name and validate that the name is more than 3 chars , the problem that the form
Code:
	html += "<INPUT  id='" + EMAIL_NEWUSER_PREFIX + this.id + "' name='" + EMAIL_NEWUSER_PREFIX + this.id + "' TYPE='TEXT' ONKEYUP='EmailChecker_checkStatus("+this.id+")'  STYLE='border:1px solid #CCCCCC; width:150'>";
that takes the t name after the validation i need to send the value of that form but the name of that form is a java script fucntion i need to know how to post the value of that form

Code:
// JavaScript Document
//Copyright Kerberos Internet Services, CC; All rights reserved.
//info@kerberosb2b.com
//helpdesk@kerberosb2b.com
//http://www.kerberosb2b.com
isIE4 = document.all? true : false;
isIE6 = document.getElementById && document.all ? true : false;
isNS4 = document.layers? true : false;
isNS6 = document.getElementById && !document.all ? true : false;
function getDOMObject (documentID){
	if (isIE4)return document.all[documentID];
	else if(isIE6)return document.getElementById(documentID);
	else if (isNS4)return document.layers[documentID];
	else if (isNS6)return document.getElementById(documentID);
}

var EMAIL_CONTAINER_PREFIX = "EMAIL_CONTAINER";
var EMAIL_DISPLAY_PREFIX = "EMAIL_DISPLAY";
var EMAIL_STATUS_PREFIX = "EMAIL_STATUS";
var EMAIL_NEWUSER_PREFIX = "EMAIL_NEWUSER";
var EMAIL_CONFUSER_PREFIX = "EMAIL_CONFUSER";
var EmailChecker_idGenerator = new IDGenerator(0);
var EmailCheckerMap = new Object();
var EmailCheckerIDGenerator = null;

//Utility Functions
function IDGenerator(nextID){
	this.nextID = nextID;
	this.GenerateID = IDGeneratorGenerateID;
}
function IDGeneratorGenerateID(){
	return this.nextID++;
}

//Object Constructor Functions
function EmailChecker (boundControl, boundForm, width){
//Object Variables
	
	Generator = EmailChecker_idGenerator;
	this.boundControl = boundControl;
	this.boundForm = boundForm;
	this.instantiated = false;
	this.width = '100%';
	if (width) this.width = width;
//Runtime Variables
	this.currentEmail = "";
	this.newEmail = "";
	this.confEmail = "";
	this.status = false;
//Functions
	this.Instantiate = EmailChecker_Instantiate;
	this.submitEmail = EmailChecker_submitEmail;
}

function  EmailChecker_Instantiate(){
	if (this.instantiated) {
		return;
	}
	this.id = this.idGenerator.GenerateID();
	EmailCheckerMap[this.id] = this;
	EmailCheckerIDGenerator = this.idGenerator;
	var html = "";
	html += "<DIV id='" + EMAIL_CONTAINER_PREFIX + this.id + "' name='" + EMAIL_CONTAINER_PREFIX + this.id + "' style='position:relative; width:" + this.width + "; overflow:visible'>"
	html += "<TABLE width=100% cellpadding=5 cellspacing=0><TR><TD>";
	html += "<TABLE width=100% cellpadding=5 cellspacing=0><TR><TD id='" + EMAIL_DISPLAY_PREFIX + this.id + "' name='" + EMAIL_DISPLAY_PREFIX + this.id + "' STYLE='border:1px solid #CCCCCC; width:20px; height:20px'>&nbsp;&nbsp;</TD><TD id='" + EMAIL_STATUS_PREFIX + this.id + "' name='" + EMAIL_STATUS_PREFIX + this.id + "' STYLE='width:100%; font: 10px Verdana'>222</TD></TR></TABLE>";
	html += "</TD></TR><TR><TD>";
	//html += "<DIV STYLE='font: 11px Verdana;color:black'><b>First Name</B></DIV>";
	html += "<INPUT  id='" + EMAIL_NEWUSER_PREFIX + this.id + "' name='" + EMAIL_NEWUSER_PREFIX + this.id + "' TYPE='TEXT' ONKEYUP='EmailChecker_checkStatus("+this.id+")'  STYLE='border:1px solid #CCCCCC; width:150'>";
	html += "</TD></TR><TR><TD>";
		html += "<INPUT  id='" + EMAIL_CONFUSER_PREFIX + this.id + "' name='" + EMAIL_CONFUSER_PREFIX + this.id + "' TYPE='hidden' ONKEYUP='EmailChecker_checkStatus("+this.id+")'  STYLE='border:1px solid #CCCCCC; width:100%'>";
	html += "</TD></TR><TR><TD STYLE='0; font: 8px Verdana;color:black' ALIGN='right'></TABLE></DIV>";
	document.write (html);
	EmailChecker_checkStatus(this.id);
	this.instantiated = true;
}

function EmailChecker_submitEmail(){
	if (this.status){
		document.forms[this.boundForm].submit();
	}else{
		alert ("Please check your Email Address before you continue.");
	}
}
function EmailChecker_checkStatus(id){
	var errorMessage = "";
	var errorColour = "";
	EmailCheckerMap[id].newEmail = String (getDOMObject(EMAIL_NEWUSER_PREFIX + id).value).toLowerCase();
	EmailCheckerMap[id].confEmail = String (getDOMObject(EMAIL_CONFUSER_PREFIX + id).value).toLowerCase();
	//check for length
	if (EmailCheckerMap[id].newEmail.length < 3){
		errorMessage += (errorMessage.length>0?"<BR>":"") +  "<DIV STYLE='font: 10px Verdana;color:black'>Your First Name needs to be 3 characters or more in length.</DIV>";
	}
	//check for email format - new box
	//check fdr email format - conf box
		if (errorMessage == ""){
		errorColour = "#00FF00";
		errorMessage = "First Name Status OK";
		EmailCheckerMap[id].status = true;
	}else{
		errorColour = "#FF0000";
		EmailCheckerMap[id].status = false;
	}
	getDOMObject(EMAIL_DISPLAY_PREFIX + id).style.backgroundColor = errorColour;
	getDOMObject(EMAIL_STATUS_PREFIX + id).innerHTML = errorMessage;
	getDOMObject(EmailCheckerMap[id].boundControl).value = EmailCheckerMap[id].newEmail;
}