<!--
function checkfield(echoForm) {
var message = "";


if (echoForm.Spectel) {
	if (echoForm.manufacturer.value == "") {message += "\n  - Manufacturer";}
	if (echoForm.ports_to_trade.value == "") {message += "\n  - Number of ports you intend to trade";}	
	if (echoForm.extended_care.value == "") {message += "\n  - Sonexis Extended Care";}
}

if (echoForm.login) {
	if (echoForm.id.value == "") {message += "\n  - Login ID";}
	if (echoForm.password.value == "") {message += "\n  - Password";}	
}

if (echoForm.form1) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
	source_type = echoForm.type.value;
	source_type=source_type.replace(':ps','Email Campaign (01-2008)');
	source_type=source_type.replace(':ns','Email Campaign (01-2008)');
	form.lead_source.value = source_type;
	
}

if (echoForm.form2) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	if (echoForm.how_heard.value == "") {message += "\n  - How did you hear about us?";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
	source_type = echoForm.type.value;
	source_type=source_type.replace(':ps','Paid Search (04-2006)');
	source_type=source_type.replace(':ns','Natural Search (04-2006)');
	form.lead_source.value = source_type;
	
		
}

if (echoForm.form3) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
	source_type = echoForm.type.value;
	source_type=source_type.replace(':ps','Paid Search (04-2006)');
	source_type=source_type.replace(':ns','Natural Search (04-2006)');
	form.lead_source.value = source_type;
		
}


if (echoForm.form4) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	if (echoForm.how_heard.value == "") {message += "\n  - How did you hear about us?";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;	
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
	source_type = echoForm.type.value;
	source_type=source_type.replace(':ps','Paid Search (04-2006)');
	source_type=source_type.replace(':ns','Natural Search (04-2006)');
	form.lead_source.value = source_type;
	
		
}

if (echoForm.form5) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
	source_type = echoForm.type.value;
	source_type=source_type.replace(':ps','Paid Search (04-2006)');
	source_type=source_type.replace(':ns','Natural Search (04-2006)');
	form.lead_source.value = source_type;
	
		
}

if (echoForm.form6) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	
	if (echoForm.street.value == "") {message += "\n  - Address";}
	if (echoForm.city.value == "") {message += "\n  - City";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.zip.value == "") {message += "\n  - Zip";}
	if (echoForm.country.value == "") {message += "\n  - Country";}
	
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
	source_type = echoForm.type.value;
	source_type=source_type.replace(':ps','Paid Search (04-2006)');
	source_type=source_type.replace(':ns','Natural Search (04-2006)');
	form.lead_source.value = source_type;
	
		
}


if (echoForm.form7) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	if (echoForm.how_heard.value == "") {message += "\n  - How did you hear about us?";}
	
	form.retURL.value = echoForm.baseURL.value + "/download/index.asp?wp=active&id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value + "&pdf=" + echoForm.pdf.value + "&info_type=" + echoForm.info_type.value;
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
	//DWW June 18, 2010 removed below, lead source is set in access\index.asp now due to CSP email campaign beginning with Trinet - 'Break the chains'
	//source_type = echoForm.type.value;
	//source_type=source_type.replace(':ps','Paid Search (04-2006)');
	//source_type=source_type.replace(':ns','Natural Search (04-2006)');
	//form.lead_source.value = source_type;
	
		
}


if (echoForm.form8) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.state.value == "") {message += "\n  - State";}
		
	form.retURL.value = echoForm.baseURL.value + "/burn/index.asp?wp=active&id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value + "&pdf=" + echoForm.pdf.value + "&info_type=" + echoForm.info_type.value;
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
	//source_type = echoForm.type.value;
	//source_type=source_type.replace(':ps','Paid Search (04-2006)');
	//source_type=source_type.replace(':ns','Natural Search (04-2006)');
	//form.lead_source.value = source_type;
	
		
}

if (echoForm.form9) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;
	
}


if (echoForm.form10) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;
		
}

if (echoForm.form20) {
	if (!emailCheck(echoForm.rep_email.value)) {message += "\n  - Your Email Address";}
	if (echoForm.rep_name.value == "") {message += "\n  - Your Full Name";}

	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + 
		"&email=" + echoForm.rep_email.value + 
		"&name=" + echoForm.rep_name.value +
		"&remember=" + echoForm.remember_me.checked +
		"&BP=Compunetix" + 
		"&clientname=" + echoForm.first_name.value + "%20" + echoForm.last_name.value +
		"&company=" + echoForm.company.value;
}

if (echoForm.form30) {
	if (!emailCheck(echoForm.rep_email.value)) {message += "\n  - Your Email Address";}
	if (echoForm.rep_name.value == "") {message += "\n  - Your Full Name";}

	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + 
		"&email=" + echoForm.rep_email.value + 
		"&name=" + echoForm.rep_name.value +
		"&remember=" + echoForm.remember_me.checked +
		"&BP=" + echoForm.BPName.value + 
		"&clientname=" + echoForm.first_name.value + "%20" + echoForm.last_name.value +
		"&company=" + echoForm.company.value;
}

if (echoForm.form35 || echoForm.form36 || echoForm.form37 || echoForm.form38) {
	if (!emailCheck(echoForm.rep_email.value)) {message += "\n  - Your Email Address";}
	if (echoForm.rep_name.value == "") {message += "\n  - Your Full Name";}

	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + 
		"&email=" + echoForm.rep_email.value + 
		"&name=" + echoForm.rep_name.value +
		"&remember=" + echoForm.remember_me.checked +
		"&clientname=" + echoForm.first_name.value + "%20" + echoForm.last_name.value +
		"&company=" + echoForm.company.value;
}

if (echoForm.form40) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + 
		echoForm.formid.value + 
		"&sp=" + echoForm.sp.value +
		"&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value;
}

if (echoForm.form70) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.title.value == "") {message += "\n  - Job Title";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	if (echoForm.URL.value == "") {message += "\n  - Company URL";}
	if (echoForm.company_size.value == "") {message += "\n  - Company Size";}
	if (echoForm.how_heard.value == "") {message += "\n  - How did you hear about us?";}
	
	form.retURL.value = echoForm.baseURL.value + "/download/index.asp?wp=active&id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value + "&pdf=" + echoForm.pdf.value + "&info_type=" + echoForm.info_type.value;
	
}

if (echoForm.form71) {
	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.state.value == "") {message += "\n  - State";}
	if (echoForm.company.value == "") {message += "\n  - Company";}
	
	form.retURL.value = echoForm.baseURL.value + "/download/index.asp?wp=active&id=" + echoForm.formid.value + "&email=" + echoForm.email.value + "&name=" + echoForm.first_name.value + "%20" + echoForm.last_name.value + "&pdf=" + echoForm.pdf.value + "&info_type=" + echoForm.info_type.value;
	form.sonexis_paidsource.value = echoForm.paidsource.value;
	form.sonexis_paidsource_keyword.value = echoForm.paidsource_keyword.value;
	form.sonexis_paidsource_url.value = echoForm.paidsource_url.value;
	
}

if (echoForm.form100) {
	if (!emailCheck(echoForm.rep_email.value)) {message += "\n  - Your Email Address";}
	if (echoForm.rep_name.value == "") {message += "\n  - Your Full Name";}

	if (echoForm.first_name.value == "") {message += "\n  - First Name";}
	if (echoForm.last_name.value == "") {message += "\n  - Last Name";}
	if (echoForm.phone.value == "") {message += "\n  - Phone";}	
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	
	form.retURL.value = echoForm.baseURL.value + "/thank_you/index.asp?id=" + echoForm.formid.value + 
		"&email=" + echoForm.rep_email.value + 
		"&name=" + echoForm.rep_name.value +
		"&remember=" + echoForm.remember_me.checked +
		"&clientname=" + echoForm.first_name.value + "%20" + echoForm.last_name.value +
		"&company=" + echoForm.company.value;
}

if (echoForm.ask) {
	if (!emailCheck(echoForm.email.value)) {message += "\n  - Email Address";}
	if (echoForm.question.value == "") {message += "\n  - Question/Comments";}
}


if (message != "") {
		if (message != "") {message = "The following fields require valid entries: " + message;}
		alert(message);
		return false;
		}	
return true;
}

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
var temp = window.location.href.split("/");
var domain = temp[2];
var domainDir = 'http://' + domain + '';
var flashwindow = '';

function openWebinar() { 
	var xwidth=810;
	var xheight=630;
	
	if (flashwindow.location && !flashwindow.closed) { flashwindow.close(); }
	var winTop = (screen.height / 2) -(xheight/2)-40;
	if (winTop < 0) {
		winTop = 0;
		}
			
	var winLeft = (screen.width / 2) -(xwidth/2);
	if (winLeft < 0) {
		winLeft = 0;
		}

	url = domainDir + '/flash/webinar/webinar.html';
	var features = 'width=' + xwidth + ',height=' + xheight + ',left=' + winLeft + ',top=' + winTop + ',scrollbars=no';
	flashwindow=window.open(url,'SonexisDemo',features);
	
	if (window.focus) {flashwindow.focus();}
	//parent.window.location = 'http://www.sonexis.com/glp/enterprise_conferencing_solutions.html';
}

function openWebinar2() { 
	var xwidth=810;
	var xheight=630;
	
	if (flashwindow.location && !flashwindow.closed) { flashwindow.close(); }
	var winTop = (screen.height / 2) -(xheight/2)-40;
	if (winTop < 0) {
		winTop = 0;
		}
			
	var winLeft = (screen.width / 2) -(xwidth/2);
	if (winLeft < 0) {
		winLeft = 0;
		}

	url = domainDir + '/flash/webinar/webinar2.html';
	var features = 'width=' + xwidth + ',height=' + xheight + ',left=' + winLeft + ',top=' + winTop + ',scrollbars=no';
	flashwindow=window.open(url,'SonexisDemo',features);
	
	if (window.focus) {flashwindow.focus();}
	//parent.window.location = 'http://www.sonexis.com/glp/enterprise_conferencing_solutions.html';
}


function openFlash() { 
	var xwidth=810;
	var xheight=630;
	
	if (flashwindow.location && !flashwindow.closed) { flashwindow.close(); }
	var winTop = (screen.height / 2) -(xheight/2)-40;
	if (winTop < 0) {
		winTop = 0;
		}
			
	var winLeft = (screen.width / 2) -(xwidth/2);
	if (winLeft < 0) {
		winLeft = 0;
		}

	url = domainDir + '/flash/demo/SonexisDemo.html';
	var features = 'width=' + xwidth + ',height=' + xheight + ',left=' + winLeft + ',top=' + winTop + ',scrollbars=no';
	flashwindow=window.open(url,'Sonexisdemo2',features);
	
	if (window.focus) {flashwindow.focus();}
	//parent.window.location = 'http://www.sonexis.com/glp/enterprise_conferencing_solutions.html';
}

function openFlash2() { 
	var xwidth=810;
	var xheight=630;
	
	if (flashwindow.location && !flashwindow.closed) { flashwindow.close(); }
	var winTop = (screen.height / 2) -(xheight/2)-40;
	if (winTop < 0) {
		winTop = 0;
		}
			
	var winLeft = (screen.width / 2) -(xwidth/2);
	if (winLeft < 0) {
		winLeft = 0;
		}

	url = domainDir + '/flash/demo/SonexisDemo2.html';
	var features = 'width=' + xwidth + ',height=' + xheight + ',left=' + winLeft + ',top=' + winTop + ',scrollbars=no';
	flashwindow=window.open(url,'Sonexisdemo2',features);
	
	if (window.focus) {flashwindow.focus();}
	//parent.window.location = 'http://www.sonexis.com/glp/enterprise_conferencing_solutions.html';
}




function openDemo() { 
	var xwidth=810;
	var xheight=630;
	
	if (flashwindow.location && !flashwindow.closed) { flashwindow.close(); }
	var winTop = (screen.height / 2) -(xheight/2)-40;
	if (winTop < 0) {
		winTop = 0;
		}
			
	var winLeft = (screen.width / 2) -(xwidth/2);
	if (winLeft < 0) {
		winLeft = 0;
		}

	url = domainDir + '/flash/demo/SWDemo.html';
	var features = 'width=' + xwidth + ',height=' + xheight + ',left=' + winLeft + ',top=' + winTop + ',scrollbars=no';
	flashwindow=window.open(url,'SonexisDemo',features);
	
	if (window.focus) {flashwindow.focus();}
	//parent.window.location = 'http://www.sonexis.com/glp/enterprise_conferencing_solutions.html';
}

function openDemo2() { 
	var xwidth=810;
	var xheight=630;
	
	if (flashwindow.location && !flashwindow.closed) { flashwindow.close(); }
	var winTop = (screen.height / 2) -(xheight/2)-40;
	if (winTop < 0) {
		winTop = 0;
		}
			
	var winLeft = (screen.width / 2) -(xwidth/2);
	if (winLeft < 0) {
		winLeft = 0;
		}

	url = domainDir + '/flash/demo/SWDemo2.html';
	var features = 'width=' + xwidth + ',height=' + xheight + ',left=' + winLeft + ',top=' + winTop + ',scrollbars=no';
	flashwindow=window.open(url,'SonexisDemo',features);
	
	if (window.focus) {flashwindow.focus();}
	//parent.window.location = 'http://www.sonexis.com/glp/enterprise_conferencing_solutions.html';
}

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
function isNumber(argvalue) {

	var g=",.0123456789";
	var s=argvalue
	var good=true;
	var n="";

	  for(var i=0;i< s.length;i++)
	  {
		c = s.charAt(i);
		for(j=0;j< g.length;j++)
			if(c == g.charAt(j))
			break;
				
			if(j == g.length)
			{
			good=false;
			break;
			}
			n += c;
	  }
		  
	  if(!good) {
	  return(false);
	  } else {
	  return(true);
	  }
  
}	
 
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////


//////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
function emailCheck(emailStr) {
/* The following pattern is used to check if the entered e-mail address
   fits the user@domain format.  It also is used to separate the username
   from the domain. */
var emailPat=/^(.+)@(.+)$/
/* The following string represents the pattern for matching all special
   characters.  We don't want to allow special characters in the address. 
   These characters include ( ) < > @ , ; : \ " . [ ]    */
var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
/* The following string represents the range of characters allowed in a 
   username or domainname.  It really states which chars aren't allowed. */
var validChars="\[^\\s" + specialChars + "\]"
/* The following pattern applies if the "user" is a quoted string (in
   which case, there are no rules about which characters are allowed
   and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
   is a legal e-mail address. */
var quotedUser="(\"[^\"]*\")"
/* The following pattern applies for domains that are IP addresses,
   rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
   e-mail address. NOTE: The square brackets are required. */
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
/* The following string represents an atom (basically a series of
   non-special characters.) */
var atom=validChars + '+'
/* The following string represents one word in the typical username.
   For example, in john.doe@somewhere.com, john and doe are words.
   Basically, a word is either an atom or quoted string. */
var word="(" + atom + "|" + quotedUser + ")"
// The following pattern describes the structure of the user
var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
/* The following pattern describes the structure of a normal symbolic
   domain, as opposed to ipDomainPat, shown above. */
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")


/* Finally, let's start trying to figure out if the supplied address is
   valid. */

/* Begin with the coarse pattern to simply break up user@domain into
   different pieces that are easy to analyze. */
var matchArray=emailStr.match(emailPat)
if (matchArray==null) {
  /* Too many/few @'s or something; basically, this address doesn't
     even fit the general mould of a valid e-mail address. */
	/* alert("Email address seems incorrect (check @ and .'s)") */
	return false
}
var user=matchArray[1]
var domain=matchArray[2]

// See if "user" is valid 
if (user.match(userPat)==null) {
    // user is not valid
    /* alert("The username doesn't seem to be valid.") */
    return false
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
   host name) make sure the IP address is valid. */
var IPArray=domain.match(ipDomainPat)
if (IPArray!=null) {
    // this is an IP address
	  for (var i=1;i<=4;i++) {
	    if (IPArray[i]>255) {
	        /* alert("Destination IP address is invalid!") */
		return false
	    }
    }
    return true
}

// Domain is symbolic name
var domainArray=domain.match(domainPat)
if (domainArray==null) {
	/* alert("The domain name doesn't seem to be valid.") */
    return false
}

/* domain name seems valid, but now make sure that it ends in a
   three-letter word (like com, edu, gov) or a two-letter word,
   representing country (uk, nl), and that there's a hostname preceding 
   the domain or country. */

/* Now we need to break up the domain to get a count of how many atoms
   it consists of. */
var atomPat=new RegExp(atom,"g")
var domArr=domain.match(atomPat)
var len=domArr.length
if (domArr[domArr.length-1].length<2 || 
    domArr[domArr.length-1].length>4) {
   // the address must end in a two letter or three letter word.
   /* alert("The address must end in a three-letter domain, or two letter country.") */
   return false
}

// Make sure there's a host name preceding the domain.
if (len<2) {
   var errStr="This address is missing a hostname!"
   /* alert(errStr) */
   return false
}

// If we've gotten this far, everything's valid!
return true;
}

function NotifyCC(){

	alert("Beginning of NotifyCC.");

}

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

//-->
