
function mainNavigation(page){

	var str = '';

	if(page == 'index') {

		str += '<tr>';
		str += '<TD>';
		str += '<TABLE border="0" cellpadding="0" cellspacing="0" width="593">';
		str += '<TR>';
		//-- added new version image -- BY TODD 2-15-2005
		str += '<td bgcolor="#FFFFFF" width="593" valign="top"><img src="/images/spacer.gif" width="13" height="63" alt="" border="0" /><img src="/images/newversion3_small.gif" width="80" height="45" alt="" border="0" /><img src="/images/spacer.gif" width="500" height="63" alt="" border="0" /></td>';
		str += '<TD valign="bottom"><a href="javascript:contact_me_now()"><img src="/images/cmn_1.gif" width="117" height="53" alt="" border="0"></A></TD>';
		str += '<td bgcolor="#FFFFFF" width="100%"><img src="/images/spacer.gif" width="100%" height="63" alt="" /></td>'
		str += '</TR>';
		str += '</TABLE>';
		str += '</TD>';
		str += '</tr>';
		str += '<tr>';
		str += '<td width="100%" height="21" colspan="2" class="nav_bg">';
		str += '<img src="/images/spacer.gif" alt="" width="147" height="1" align="left" />';

		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><img src="/nav_images/arrows.gif" width="16" height="21" alt=""></td>';
		str += '<td><img id="home" src="/nav_images/home_over.gif" width="56" height="21" border="0" alt="Home"></td>';
		str += '<td><a href="http://www.lucid8.com/product/products.asp" onmouseover="changeImages(\'products\', \'/nav_images/products_over.gif\'); return true;"	onmouseout="changeImages(\'products\', \'/nav_images/products.gif\'); return true;"><img id="products" src="nav_images/products.gif" width="72" height="21" border="0" alt="Products and Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/recovery/recovery.asp" onmouseover="changeImages(\'disaster\', \'/nav_images/disaster_over.gif\'); return true;"	onmouseout="changeImages(\'disaster\', \'/nav_images/disaster.gif\'); return true;"><img id="disaster" src="nav_images/disaster.gif" width="176" height="21" border="0" alt="Disaster Recovery Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/download/download.asp" onmouseover="changeImages(\'download\', \'/nav_images/download_over.gif\'); return true;"	onmouseout="changeImages(\'download\', \'/nav_images/download.gif\'); return true;"><img id="download" src="nav_images/download.gif" width="118" height="21" border="0" alt="Download Center"></a></td>';
		str += '<td><a href="https://www.lucid8.com/purchase/" onmouseover="changeImages(\'Purchase\', \'/nav_images/Purchase_over.gif\'); return true;" onmouseout="changeImages(\'Purchase\', \'/nav_images/Purchase.gif\'); return true;"><img id="Purchase" src="nav_images/Purchase.gif"  border="0" alt="Purchase"></a></td>';
		str += '<td><a href="http://www.lucid8.com/pricing/pricelist.asp" onmouseover="changeImages(\'Pricing\', \'/nav_images/pricing_on.gif\'); return true;" onmouseout="changeImages(\'Pricing\', \'/nav_images/pricing_off.gif\'); return true;"><img id="Pricing" src="/nav_images/pricing_off.gif" border="0" alt="Pricing" name="pricing"></a></td>';
		str += '<td><a href="http://www.lucid8.com/support/request_support.asp" onmouseover="changeImages(\'support\', \'/nav_images/support_over.gif\'); return true;" onmouseout="changeImages(\'support\', \'/nav_images/support.gif\'); return true;"><img id="support" src="/nav_images/support.gif" width="66" height="21" border="0" alt="Support"></a></td>';
		str += '<td><img src="/nav_images/nav_07.jpg" width="2" height="21" alt=""></td>';
		str += '<td width="16"><img src="/images/spacer.gif" width="16" height="1" alt="" border="0"></td>';
		str += '<td><a href="javascript:contact_me_now()"><img src="/images/cmn_2.gif" width="117" height="21" alt="" border="0"></a></td>';
		str += '<td width="100%"><img src="/images/spacer.gif" width="100%" height="1" alt="" border="0"></td>';
		str += '</tr>';
		str += '</table>';

		str += '</td>';
		str += '</tr>';
	}
	else if(page == 'products'){
		
		str += '<tr>';
		str += '<TD>';
		str += '<TABLE border="0" cellpadding="0" cellspacing="0">';
		str += '<TR>';
		//str += '<td bgcolor="#FFFFFF" width="593"><img src="/images/spacer.gif" width="593" height="63" alt="" /></td>';
		//-- added new version image -- BY TODD 2-15-2005
		str += '<td bgcolor="#FFFFFF" width="593" valign="top"><img src="/images/spacer.gif" width="13" height="63" alt="" border="0" /><img src="/images/newversion3_small.gif" width="80" height="45" alt="" border="0" /><img src="/images/spacer.gif" width="500" height="63" alt="" border="0" /></td>';
		str += '<TD valign="bottom"><a href="javascript:contact_me_now()"><img src="/images/cmn_1.gif" width="117" height="53" alt="" border="0"></A></TD>';
		str += '<td bgcolor="#FFFFFF" width="100%"><img src="/images/spacer.gif" width="100%" height="63" alt="" /></td>';
		str += '</TR>';
		str += '</TABLE>';
		str += '</TD>';
		str += '</tr>';
		str += '<tr>';
		str += '<td width="100%" height="21" colspan="2" class="nav_bg">';
		str += '<img src="/images/spacer.gif" alt="" width="147" height="1" align="left" />';
		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><img src="/nav_images/arrows.gif" width="16" height="21" alt=""></td>';
		str += '<td><a href="http://www.lucid8.com/index.asp"	onmouseover="changeImages(\'home\', \'/nav_images/home_over.gif\'); return true;" onmouseout="changeImages(\'home\', \'/nav_images/home.gif\'); return true;"><img id="home" src="/nav_images/home.gif" width="56" height="21" border="0" alt="Home"></a></td>';
		str += '<td><img id="products" src="/nav_images/products_over.gif" width="72" height="21" border="0" alt="Products and Services"></td>';
		str += '<td><a href="http://www.lucid8.com/recovery/recovery.asp" onmouseover="changeImages(\'disaster\', \'/nav_images/disaster_over.gif\'); return true;"	onmouseout="changeImages(\'disaster\', \'/nav_images/disaster.gif\'); return true;"><img id="disaster" src="/nav_images/disaster.gif" width="176" height="21" border="0" alt="Disaster Recovery Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/download/download.asp" onmouseover="changeImages(\'download\', \'/nav_images/download_over.gif\'); return true;"	onmouseout="changeImages(\'download\', \'/nav_images/download.gif\'); return true;"><img id="download" src="/nav_images/download.gif" width="118" height="21" border="0" alt="Download Center"></a></td>';
		str += '<td><a href="https://www.lucid8.com/purchase/" onmouseover="changeImages(\'Purchase\', \'/nav_images/Purchase_over.gif\'); return true;" onmouseout="changeImages(\'Purchase\', \'/nav_images/Purchase.gif\'); return true;"><img id="Purchase" src="/nav_images/Purchase.gif"  border="0" alt="Purchase"></a></td>';
		str += '<td><a href="http://www.lucid8.com/pricing/pricelist.asp" onmouseover="changeImages(\'Pricing\', \'/nav_images/Pricing_on.gif\'); return true;" onmouseout="changeImages(\'Pricing\', \'/nav_images/pricing_off.gif\'); return true;"><img id="Pricing" src="/nav_images/pricing_off.gif" border="0" alt="Pricing" name="pricing"></a></td>';
		str += '<td><a href="http://www.lucid8.com/support/request_support.asp" onmouseover="changeImages(\'support\', \'/nav_images/support_over.gif\'); return true;" onmouseout="changeImages(\'support\', \'/nav_images/support.gif\'); return true;"><img id="support" src="/nav_images/support.gif" width="66" height="21" border="0" alt="Support"></a></td>';
		str += '<td><img src="/nav_images/nav_07.jpg" width="2" height="21" alt=""></td>';
		str += '<td width="16"><img src="/images/spacer.gif" width="16" height="1" alt="" border="0"></td>';
		str += '<td><a href="javascript:contact_me_now()"><img src="/images/cmn_2.gif" width="117" height="21" alt="" border="0"></a></td>';
		str += '<td width="100%"><img src="/images/spacer.gif" width="100%" height="1" alt="" border="0"></td>';
		str += '</tr>';
		str += '</table>';
		str += '</td>';
		str += '</tr>';

	}
	else if (page == 'recovery') {

		str += '<tr>';
		str += '<TD>';
		str += '<TABLE border="0" cellpadding="0" cellspacing="0">';
		str += '<TR>';
		//str += '<td bgcolor="#FFFFFF" width="593"><img src="/images/spacer.gif" width="593" height="63" alt="" /></td>';
		//-- added new version image -- BY TODD 2-15-2005
		str += '<td bgcolor="#FFFFFF" width="593" valign="top"><img src="/images/spacer.gif" width="13" height="63" alt="" border="0" /><img src="/images/newversion3_small.gif" width="80" height="45" alt="" border="0" /><img src="/images/spacer.gif" width="500" height="63" alt="" border="0" /></td>';
	
		str += '<TD valign="bottom"><a href="javascript:contact_me_now()"><img src="/images/cmn_1.gif" width="117" height="53" alt="" border="0"></A></TD>';
		str += '<td bgcolor="#FFFFFF" width="100%"><img src="/images/spacer.gif" width="100%" height="63" alt="" /></td>'
		str += '</TR>';
		str += '</TABLE>';
		str += '</TD>';
		str += '</tr>';
		str += '<tr>';
		str += '<td width="100%" height="21" colspan="2" class="nav_bg">';
		str += '<img src="/images/spacer.gif" alt="" width="147" height="1" align="left" />';
		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><img src="/nav_images/arrows.gif" width="16" height="21" alt=""></td>';
		str += '<td><a href="http://www.lucid8.com/index.asp"	onmouseover="changeImages(\'home\', \'/nav_images/home_over.gif\'); return true;" onmouseout="changeImages(\'home\', \'/nav_images/home.gif\'); return true;"><img id="home" src="/nav_images/home.gif" width="56" height="21" border="0" alt="Home"></a></td>';
		str += '<td><a href="http://www.lucid8.com/product/products.asp" onmouseover="changeImages(\'products\', \'/nav_images/products_over.gif\'); return true;"	onmouseout="changeImages(\'products\', \'/nav_images/products.gif\'); return true;"><img id="products" src="/nav_images/products.gif" width="72" height="21" border="0" alt="Products and Services"></a></td>';
		str += '<td><img id="disaster" src="/nav_images/disaster_over.gif" width="176" height="21" border="0" alt="Disaster Recovery Services"></td>';
		str += '<td><a href="http://www.lucid8.com/download/download.asp" onmouseover="changeImages(\'download\', \'/nav_images/download_over.gif\'); return true;"	onmouseout="changeImages(\'download\', \'/nav_images/download.gif\'); return true;"><img id="download" src="/nav_images/download.gif" width="118" height="21" border="0" alt="Download Center"></a></td>';
		str += '<td><a href="https://www.lucid8.com/purchase/" onmouseover="changeImages(\'Purchase\', \'/nav_images/Purchase_over.gif\'); return true;" onmouseout="changeImages(\'Purchase\', \'/nav_images/Purchase.gif\'); return true;"><img id="Purchase" src="/nav_images/Purchase.gif"  border="0" alt="Purchase"></a></td>';
		str += '<td><a href="http://www.lucid8.com/pricing/pricelist.asp" onmouseover="changeImages(\'Pricing\', \'/nav_images/Pricing_on.gif\'); return true;" onmouseout="changeImages(\'Pricing\', \'/nav_images/pricing_off.gif\'); return true;"><img id="Pricing" src="/nav_images/pricing_off.gif" border="0" alt="Pricing" name="pricing"></a></td>';
		str += '<td><a href="http://www.lucid8.com/support/request_support.asp" onmouseover="changeImages(\'support\', \'/nav_images/support_over.gif\'); return true;" onmouseout="changeImages(\'support\', \'/nav_images/support.gif\'); return true;"><img id="support" src="/nav_images/support.gif" width="66" height="21" border="0" alt="Support"></a></td>';
		str += '<td><img src="/nav_images/nav_07.jpg" width="2" height="21" alt=""></td>';
		str += '<td width="16"><img src="/images/spacer.gif" width="16" height="1" alt="" border="0"></td>';
		str += '<td><a href="javascript:contact_me_now()"><img src="/images/cmn_2.gif" width="117" height="21" alt="" border="0"></a></td>';
		str += '<td width="100%"><img src="/images/spacer.gif" width="100%" height="1" alt="" border="0"></td>';
		str += '</tr>';
		str += '</table>';
		str += '</td>';
		str += '</tr>';

	}
	else if(page == 'download') {
		
		str += '<tr>';
		str += '<TD>';
		str += '<TABLE border="0" cellpadding="0" cellspacing="0">';
		str += '<TR>';
		//str += '<td bgcolor="#FFFFFF" width="593"><img src="/images/spacer.gif" width="593" height="63" alt="" /></td>';
		//-- added new version image -- BY TODD 2-15-2005
		str += '<td bgcolor="#FFFFFF" width="593" valign="top"><img src="/images/spacer.gif" width="13" height="63" alt="" border="0" /><img src="/images/newversion3_small.gif" width="80" height="45" alt="" border="0" /><img src="/images/spacer.gif" width="500" height="63" alt="" border="0" /></td>';
		
		str += '<TD valign="bottom"><a href="javascript:contact_me_now()"><img src="/images/cmn_1.gif" width="117" height="53" alt="" border="0"></A></TD>';
		str += '<td bgcolor="#FFFFFF" width="100%"><img src="/images/spacer.gif" width="100%" height="63" alt="" /></td>'
		str += '</TR>';
		str += '</TABLE>';
		str += '</TD>';
		str += '</tr>';
		str += '<tr>';
		str += '<td width="100%" height="21" colspan="2" class="nav_bg">';
		str += '<img src="/images/spacer.gif" alt="" width="147" height="1" align="left" />';
		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><img src="/nav_images/arrows.gif" width="16" height="21" alt=""></td>';
		str += '<td><a href="http://www.lucid8.com/index.asp"	onmouseover="changeImages(\'home\', \'/nav_images/home_over.gif\'); return true;" onmouseout="changeImages(\'home\', \'/nav_images/home.gif\'); return true;"><img id="home" src="/nav_images/home.gif" width="56" height="21" border="0" alt="Home"></a></td>';
		str += '<td><a href="http://www.lucid8.com/product/products.asp" onmouseover="changeImages(\'products\', \'/nav_images/products_over.gif\'); return true;"	onmouseout="changeImages(\'products\', \'/nav_images/products.gif\'); return true;"><img id="products" src="/nav_images/products.gif" width="72" height="21" border="0" alt="Products and Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/recovery/recovery.asp" onmouseover="changeImages(\'disaster\', \'/nav_images/disaster_over.gif\'); return true;"	onmouseout="changeImages(\'disaster\', \'/nav_images/disaster.gif\'); return true;"><img id="disaster" src="/nav_images/disaster.gif" width="176" height="21" border="0" alt="Disaster Recovery Services"></a></td>';
		str += '<td><img id="download" src="/nav_images/download_over.gif" width="118" height="21" border="0" alt="Download Center"></td>';
		str += '<td><a href="https://www.lucid8.com/purchase/" onmouseover="changeImages(\'Purchase\', \'/nav_images/Purchase_over.gif\'); return true;" onmouseout="changeImages(\'Purchase\', \'/nav_images/Purchase.gif\'); return true;"><img id="Purchase" src="/nav_images/Purchase.gif"  border="0" alt="Purchase"></a></td>';
		str += '<td><a href="http://www.lucid8.com/pricing/pricelist.asp" onmouseover="changeImages(\'Pricing\', \'/nav_images/Pricing_on.gif\'); return true;" onmouseout="changeImages(\'Pricing\', \'/nav_images/pricing_off.gif\'); return true;"><img id="Pricing" src="/nav_images/pricing_off.gif" border="0" alt="Pricing" name="pricing"></a></td>';
		str += '<td><a href="http://www.lucid8.com/support/request_support.asp" onmouseover="changeImages(\'support\', \'/nav_images/support_over.gif\'); return true;" onmouseout="changeImages(\'support\', \'/nav_images/support.gif\'); return true;"><img id="support" src="/nav_images/support.gif" width="66" height="21" border="0" alt="Support"></a></td>';
		str += '<td><img src="/nav_images/nav_07.jpg" width="2" height="21" alt=""></td>';
		str += '<td width="16"><img src="/images/spacer.gif" width="16" height="1" alt="" border="0"></td>';
		str += '<td><a href="javascript:contact_me_now()"><img src="/images/cmn_2.gif" width="117" height="21" alt="" border="0"></a></td>';
		str += '<td width="100%"><img src="/images/spacer.gif" width="100%" height="1" alt="" border="0"></td>';
		str += '</tr>';
		str += '</table>';
		str += '</td>';
		str += '</tr>';

	}
	else if(page == 'purchase') {
		
		str += '<tr>';
		str += '<TD>';
		str += '<TABLE border="0" cellpadding="0" cellspacing="0">';
		str += '<TR>';
		//str += '<td bgcolor="#FFFFFF" width="593"><img src="/images/spacer.gif" width="593" height="63" alt="" /></td>';
		//-- added new version image -- BY TODD 2-15-2005
		str += '<td bgcolor="#FFFFFF" width="593" valign="top"><img src="/images/spacer.gif" width="13" height="63" alt="" border="0" /><img src="/images/newversion3_small.gif" width="80" height="45" alt="" border="0" /><img src="/images/spacer.gif" width="500" height="63" alt="" border="0" /></td>';
		str += '<TD valign="bottom"><a href="javascript:contact_me_now()"><img src="/images/cmn_1.gif" width="117" height="53" alt="" border="0"></A></TD>';
		str += '<td bgcolor="#FFFFFF" width="100%"><img src="/images/spacer.gif" width="100%" height="63" alt="" /></td>'
		str += '</TR>';
		str += '</TABLE>';
		str += '</TD>';
		str += '</tr>';
		str += '<tr>';
		str += '<td width="100%" height="21" colspan="2" class="nav_bg">';
		str += '<img src="/images/spacer.gif" alt="" width="147" height="1" align="left" border="0"/>';
		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><img src="/nav_images/arrows.gif" width="16" height="21" alt=""></td>';
	   	str += '<td><a href="http://www.lucid8.com/index.asp"	onmouseover="changeImages(\'home\', \'/nav_images/home_over.gif\'); return true;" onmouseout="changeImages(\'home\', \'/nav_images/home.gif\'); return true;"><img id="home" src="/nav_images/home.gif" width="56" height="21" border="0" alt="Home"></a></td>';
		str += '<td><a href="http://www.lucid8.com/product/products.asp" onmouseover="changeImages(\'products\', \'/nav_images/products_over.gif\'); return true;"	onmouseout="changeImages(\'products\', \'/nav_images/products.gif\'); return true;"><img id="products" src="/nav_images/products.gif" width="72" height="21" border="0" alt="Products and Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/recovery/recovery.asp" onmouseover="changeImages(\'disaster\', \'/nav_images/disaster_over.gif\'); return true;"	onmouseout="changeImages(\'disaster\', \'/nav_images/disaster.gif\'); return true;"><img id="disaster" src="/nav_images/disaster.gif" width="176" height="21" border="0" alt="Disaster Recovery Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/download/download.asp" onmouseover="changeImages(\'download\', \'/nav_images/download_over.gif\'); return true;"	onmouseout="changeImages(\'download\', \'/nav_images/download.gif\'); return true;"><img id="download" src="/nav_images/download.gif" width="118" height="21" border="0" alt="Download Center"></a></td>';
		str += '<td><img id="Purchase" src="/nav_images/Purchase_over.gif"  border="0" alt="Purchase"></td>';
		str += '<td><a href="http://www.lucid8.com/pricing/pricelist.asp" onmouseover="changeImages(\'Pricing\', \'/nav_images/Pricing_on.gif\'); return true;" onmouseout="changeImages(\'Pricing\', \'/nav_images/pricing_off.gif\'); return true;"><img id="Pricing" src="/nav_images/pricing_off.gif" border="0" alt="Pricing" name="pricing"></a></td>';
		str += '<td><a href="http://www.lucid8.com/support/request_support.asp" onmouseover="changeImages(\'support\', \'/nav_images/support_over.gif\'); return true;" onmouseout="changeImages(\'support\', \'/nav_images/support.gif\'); return true;"><img id="support" src="/nav_images/support.gif" width="66" height="21" border="0" alt="Support"></a></td>';
		str += '<td><img src="/nav_images/nav_07.jpg" width="2" height="21" alt=""></td>';
		str += '<td width="16"><img src="/images/spacer.gif" width="16" height="1" alt="" border="0"></td>';
		str += '<td><a href="javascript:contact_me_now()"><img src="/images/cmn_2.gif" width="117" height="21" alt="" border="0"></a></td>';
		str += '<td width="100%"><img src="/images/spacer.gif" width="100%" height="1" alt="" border="0"></td>';
		str += '</tr>';
		str += '</table>';
		str += '</td>';
		str += '</tr>';

	}
	else if(page == 'pricing') {

		str += '<tr>';
		str += '<TD>';
		str += '<TABLE border="0" cellpadding="0" cellspacing="0">';
		str += '<TR>';
		//str += '<td bgcolor="#FFFFFF" width="593"><img src="/images/spacer.gif" width="593" height="63" alt="" /></td>';
		//-- added new version image -- BY TODD 2-15-2005
		str += '<td bgcolor="#FFFFFF" width="593" valign="top"><img src="/images/spacer.gif" width="13" height="63" alt="" border="0" /><img src="/images/newversion3_small.gif" width="80" height="45" alt="" border="0" /><img src="/images/spacer.gif" width="500" height="63" alt="" border="0" /></td>';
		str += '<TD valign="bottom"><a href="javascript:contact_me_now()"><img src="/images/cmn_1.gif" width="117" height="53" alt="" border="0"></A></TD>';
		str += '<td bgcolor="#FFFFFF" width="100%"><img src="/images/spacer.gif" width="100%" height="63" alt="" /></td>'
		str += '</TR>';
		str += '</TABLE>';
		str += '</TD>';
		str += '</tr>';
		str += '<tr>';
		str += '<td width="100%" height="21" colspan="2" class="nav_bg">';
		str += '<img src="/images/spacer.gif" alt="" width="147" height="1" align="left" />';
		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><img src="/nav_images/arrows.gif" width="16" height="21" alt=""></td>';
		str += '<td><a href="http://www.lucid8.com/index.asp"	onmouseover="changeImages(\'home\', \'/nav_images/home_over.gif\'); return true;" onmouseout="changeImages(\'home\', \'/nav_images/home.gif\'); return true;"><img id="home" src="/nav_images/home.gif" width="56" height="21" border="0" alt="Home"></a></td>';
		str += '<td><a href="http://www.lucid8.com/product/products.asp" onmouseover="changeImages(\'products\', \'/nav_images/products_over.gif\'); return true;"	onmouseout="changeImages(\'products\', \'/nav_images/products.gif\'); return true;"><img id="products" src="/nav_images/products.gif" width="72" height="21" border="0" alt="Products and Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/recovery/recovery.asp" onmouseover="changeImages(\'disaster\', \'/nav_images/disaster_over.gif\'); return true;"	onmouseout="changeImages(\'disaster\', \'/nav_images/disaster.gif\'); return true;"><img id="disaster" src="/nav_images/disaster.gif" width="176" height="21" border="0" alt="Disaster Recovery Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/download/download.asp" onmouseover="changeImages(\'download\', \'/nav_images/download_over.gif\'); return true;"	onmouseout="changeImages(\'download\', \'/nav_images/download.gif\'); return true;"><img id="download" src="/nav_images/download.gif" width="118" height="21" border="0" alt="Download Center"></a></td>';
		str += '<td><a href="https://www.lucid8.com/purchase/" onmouseover="changeImages(\'Purchase\', \'/nav_images/Purchase_over.gif\'); return true;" onmouseout="changeImages(\'Purchase\', \'/nav_images/Purchase.gif\'); return true;"><img id="Purchase" src="/nav_images/Purchase.gif"  border="0" alt="Purchase"></a></td>';
		str += '<td><img id="Pricing" src="/nav_images/pricing_on.gif" border="0" alt="Pricing" name="pricing"></td>';
		str += '<td><a href="http://www.lucid8.com/support/request_support.asp" onmouseover="changeImages(\'support\', \'/nav_images/support_over.gif\'); return true;" onmouseout="changeImages(\'support\', \'/nav_images/support.gif\'); return true;"><img id="support" src="/nav_images/support.gif" width="66" height="21" border="0" alt="Support"></a></td>';
		str += '<td><img src="/nav_images/nav_07.jpg" width="2" height="21" alt=""></td>';
		str += '<td width="16"><img src="/images/spacer.gif" width="16" height="1" alt="" border="0"></td>';
		str += '<td><a href="javascript:contact_me_now()"><img src="/images/cmn_2.gif" width="117" height="21" alt="" border="0"></a></td>';
		str += '<td width="100%"><img src="/images/spacer.gif" width="100%" height="1" alt="" border="0"></td>';
		str += '</tr>';
		str += '</table>';
		str += '</td>';
		str += '</tr>';

	}
	else if(page == 'support') {

		str += '<tr>';
		str += '<TD>';
		str += '<TABLE border="0" cellpadding="0" cellspacing="0">';
		str += '<TR>';
		//str += '<td bgcolor="#FFFFFF" width="593"><img src="/images/spacer.gif" width="593" height="63" alt="" /></td>';
		//-- added new version image -- BY TODD 2-15-2005
		str += '<td bgcolor="#FFFFFF" width="593" valign="top"><img src="/images/spacer.gif" width="13" height="63" alt="" border="0" /><img src="/images/newversion3_small.gif" width="80" height="45" alt="" border="0" /><img src="/images/spacer.gif" width="500" height="63" alt="" border="0" /></td>';
		str += '<TD valign="bottom"><a href="javascript:contact_me_now()"><img src="/images/cmn_1.gif" width="117" height="53" alt="" border="0"></A></TD>';
		str += '<td bgcolor="#FFFFFF" width="100%"><img src="/images/spacer.gif" width="100%" height="63" alt="" /></td>'
		str += '</TR>';
		str += '</TABLE>';
		str += '</TD>';
		str += '</tr>';
		str += '<tr>';
		str += '<td width="100%" height="21" colspan="2" class="nav_bg">';
		str += '<img src="/images/spacer.gif" alt="" width="147" height="1" align="left" />';
		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><img src="/nav_images/arrows.gif" width="16" height="21" alt=""></td>';
		str += '<td><a href="http://www.lucid8.com/index.asp"	onmouseover="changeImages(\'home\', \'/nav_images/home_over.gif\'); return true;" onmouseout="changeImages(\'home\', \'/nav_images/home.gif\'); return true;"><img id="home" src="/nav_images/home.gif" width="56" height="21" border="0" alt="Home"></a></td>';
		str += '<td><a href="http://www.lucid8.com/product/products.asp" onmouseover="changeImages(\'products\', \'/nav_images/products_over.gif\'); return true;"	onmouseout="changeImages(\'products\', \'/nav_images/products.gif\'); return true;"><img id="products" src="/nav_images/products.gif" width="72" height="21" border="0" alt="Products and Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/recovery/recovery.asp" onmouseover="changeImages(\'disaster\', \'/nav_images/disaster_over.gif\'); return true;"	onmouseout="changeImages(\'disaster\', \'/nav_images/disaster.gif\'); return true;"><img id="disaster" src="/nav_images/disaster.gif" width="176" height="21" border="0" alt="Disaster Recovery Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/download/download.asp" onmouseover="changeImages(\'download\', \'/nav_images/download_over.gif\'); return true;"	onmouseout="changeImages(\'download\', \'/nav_images/download.gif\'); return true;"><img id="download" src="/nav_images/download.gif" width="118" height="21" border="0" alt="Download Center"></a></td>';
		str += '<td><a href="https://www.lucid8.com/purchase/" onmouseover="changeImages(\'Purchase\', \'/nav_images/Purchase_over.gif\'); return true;" onmouseout="changeImages(\'Purchase\', \'/nav_images/Purchase.gif\'); return true;"><img id="Purchase" src="/nav_images/Purchase.gif"  border="0" alt="Purchase"></a></td>';
		str += '<td><a href="http://www.lucid8.com/pricing/pricelist.asp" onmouseover="changeImages(\'Pricing\', \'/nav_images/Pricing_on.gif\'); return true;" onmouseout="changeImages(\'Pricing\', \'/nav_images/pricing_off.gif\'); return true;"><img id="Pricing" src="/nav_images/pricing_off.gif" border="0" alt="Pricing" name="pricing"></a></td>';
		str += '<td><img id="support" src="/nav_images/support_over.gif" width="66" height="21" border="0" alt="Support"></td>';
		str += '<td><img src="/nav_images/nav_07.jpg" width="2" height="21" alt=""></td>';
		str += '<td width="16"><img src="/images/spacer.gif" width="16" height="1" alt="" border="0"></td>';
		str += '<td><a href="javascript:contact_me_now()"><img src="/images/cmn_2.gif" width="117" height="21" alt="" border="0"></a></td>';
		str += '<td width="100%"><img src="/images/spacer.gif" width="100%" height="1" alt="" border="0"></td>';
		str += '</tr>';
		str += '</table>';
		str += '</td>';
		str += '</tr>';
	}
	else {

		str += '<tr>';
		str += '<TD>';
		str += '<TABLE border="0" cellpadding="0" cellspacing="0">';
		str += '<TR>';
		//str += '<td bgcolor="#FFFFFF" width="593"><img src="/images/spacer.gif" width="593" height="63" alt="" /></td>';
		//-- added new version image -- BY TODD 2-15-2005
		str += '<td bgcolor="#FFFFFF" width="593" valign="top"><img src="/images/spacer.gif" width="13" height="63" alt="" border="0" /><img src="/images/newversion3_small.gif" width="80" height="45" alt="" border="0" /><img src="/images/spacer.gif" width="500" height="63" alt="" border="0" /></td>';
		str += '<TD valign="bottom"><a href="javascript:contact_me_now()"><img src="/images/cmn_1.gif" width="117" height="53" alt="" border="0"></A></TD>';
		str += '<td bgcolor="#FFFFFF" width="100%"><img src="/images/spacer.gif" width="100%" height="63" alt="" /></td>'
		str += '</TR>';
		str += '</TABLE>';
		str += '</TD>';
		str += '</tr>';
		str += '<tr>';
		str += '<td width="100%" height="21" colspan="2" class="nav_bg">';
		str += '<img src="/images/spacer.gif" alt="" width="147" height="1" align="left" />';
		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><img src="/nav_images/arrows.gif" width="16" height="21" alt=""></td>';
		str += '<td><a href="http://www.lucid8.com/index.asp"	onmouseover="changeImages(\'home\', \'/nav_images/home_over.gif\'); return true;" onmouseout="changeImages(\'home\', \'/nav_images/home.gif\'); return true;"><img id="home" src="/nav_images/home.gif" width="56" height="21" border="0" alt="Home"></a></td>';
		str += '<td><a href="http://www.lucid8.com/product/products.asp" onmouseover="changeImages(\'products\', \'/nav_images/products_over.gif\'); return true;"	onmouseout="changeImages(\'products\', \'/nav_images/products.gif\'); return true;"><img id="products" src="/nav_images/products.gif" width="72" height="21" border="0" alt="Products and Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/recovery/recovery.asp" onmouseover="changeImages(\'disaster\', \'/nav_images/disaster_over.gif\'); return true;"	onmouseout="changeImages(\'disaster\', \'/nav_images/disaster.gif\'); return true;"><img id="disaster" src="/nav_images/disaster.gif" width="176" height="21" border="0" alt="Disaster Recovery Services"></a></td>';
		str += '<td><a href="http://www.lucid8.com/download/download.asp" onmouseover="changeImages(\'download\', \'/nav_images/download_over.gif\'); return true;"	onmouseout="changeImages(\'download\', \'/nav_images/download.gif\'); return true;"><img id="download" src="/nav_images/download.gif" width="118" height="21" border="0" alt="Download Center"></a></td>';
		str += '<td><a href="https://www.lucid8.com/purchase/" onmouseover="changeImages(\'Purchase\', \'/nav_images/Purchase_over.gif\'); return true;" onmouseout="changeImages(\'Purchase\', \'/nav_images/Purchase.gif\'); return true;"><img id="Purchase" src="/nav_images/Purchase.gif"  border="0" alt="Purchase"></a></td>';
		str += '<td><a href="http://www.lucid8.com/pricing/pricelist.asp" onmouseover="changeImages(\'Pricing\', \'/nav_images/Pricing_on.gif\'); return true;" onmouseout="changeImages(\'Pricing\', \'/nav_images/pricing_off.gif\'); return true;"><img id="Pricing" src="/nav_images/pricing_off.gif" border="0" alt="Pricing" name="pricing"></a></td>';
		str += '<td><a href="http://www.lucid8.com/support/request_support.asp" onmouseover="changeImages(\'support\', \'/nav_images/support_over.gif\'); return true;" onmouseout="changeImages(\'support\', \'/nav_images/support.gif\'); return true;"><img id="support" src="/nav_images/support.gif" width="66" height="21" border="0" alt="Support"></a></td>';
		str += '<td><img src="/nav_images/nav_07.jpg" width="2" height="21" alt=""></td>';
		str += '<td width="16"><img src="/images/spacer.gif" width="16" height="1" alt="" border="0"></td>';
		str += '<td><a href="javascript:contact_me_now()"><img src="/images/cmn_2.gif" width="117" height="21" alt="" border="0"></a></td>';
		str += '<td width="100%"><img src="/images/spacer.gif" width="100%" height="1" alt="" border="0"></td>';
		str += '</tr>';
		str += '</table>';
		str += '</td>';
		str += '</tr>';

	}
		
	return str;
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document.images[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		// MAIN NAV 
		home_over = newImage("/nav_images/home_over.gif");
		products_over = newImage("/nav_images/products_over.gif");
		download_over = newImage("/nav_images/download_over.gif");
		Purchase_over = newImage("/nav_images/Purchase_over.gif");
		support_over = newImage("/nav_images/support_over.gif");
		disaster_over = newImage("/nav_images/disaster_over.gif");
		// MAIN OPTIONS 
		products_opt_over = newImage("/nav_images/products_opt_over.gif");
		purchase_opt_over = newImage("/nav_images/purchase_opt_over.gif");
		download_opt_over = newImage("/nav_images/download_opt_over.gif");
		support_opt_over = newImage("/nav_images/support_opt_over.gif");
		//other images	
		//LEFT NAV
		leftnav_download_over = newImage("/nav_images/leftnav_download_over.gif");
		leftnav_purchase_over = newImage("/nav_images/leftnav_purchase_over.gif");
		//SUB NAV 
		subnav_GOexchangedownload_over = newImage("/nav_images/GOexchangedownload_over.gif");
		documentation_over = newImage("/nav_images/documentation_over.gif");
		reseller_over = newImage("/nav_images/leftnav_reseller_over.gif");
		pricing_over = newImage("/nav_images/leftnav_pricing_over.gif");
		subadv_over = newImage("/nav_images/leftnav_subadv_over.gif");
		become_reseller_over = newImage("/nav_images/leftnav_become_reseller_over.gif");
		pricing_over = newImage("/nav_images/leftnav_pricing_over.gif");
	
		preloadFlag = true;
		
	}
}

function preloadAdminImages() {
	if (document.images) {
	<!-- MAIN NAV -->
		home_over = newImage("https://www.lucid8.com/nav_images/home_over.gif");
		settings_over = newImage("https://www.lucid8.com/nav_images/admSettings_over.gif");
		email_over = newImage("https://www.lucid8.com/nav_images/admEmail_over.gif");
		users_over = newImage("https://www.lucid8.com/nav_images/admUsers_over.gif");
		reseller_over = newImage("https://www.lucid8.com/nav_images/admReseller_over.gif");
		orders_over = newImage("https://www.lucid8.com/nav_images/admOrders_over.gif");
		smp_over    = newImage("https://www.lucid8.com/nav_images/admSMP_over.gif");
		drip_over = newImage("https://www.lucid8.com/nav_images/admDRIP_over.gif");
	<!-- MAIN OPTIONS -->
		products_opt_over = newImage("https://www.lucid8.com/nav_images/products_opt_over.gif");
		purchase_opt_over = newImage("https://www.lucid8.com/nav_images/purchase_opt_over.gif");
		download_opt_over = newImage("https://www.lucid8.com/nav_images/download_opt_over.gif");
		support_opt_over = newImage("https://www.lucid8.com/nav_images/support_opt_over.gif");
		preloadFlag = true;
	}
}

function popUp(url) {
	var sealWin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
	self.name = "mainWin";
}

function validate_string(self){

	var bad_values = new Array();

	bad_values[bad_values.length] = "select ";
	bad_values[bad_values.length] = "insert ";
	bad_values[bad_values.length] = "drop ";
	bad_values[bad_values.length] = "update ";
	bad_values[bad_values.length] = "delete ";
	bad_values[bad_values.length] = "exec ";
	bad_values[bad_values.length] = "--";
	bad_values[bad_values.length] = ";";
	bad_values[bad_values.length] = "=";
	bad_values[bad_values.length] = "<";
	bad_values[bad_values.length] = ">";
	
	for(var i = 0; i < bad_values.length; i++) {

		if((self.value).indexOf(bad_values[i]) >= 0) {

			alert("< > ; -- =  Are invalid characters.");
			self.focus();
			self.select();
			return false;
	
		}

	}

	//replace blanks
	var reg = /((^\s)(\s)*)|((\s)(\s)+)/;
	var theValue = self.value;
	
	self.value = theValue.replace(reg,"");

	return(true);
}
function validate_string1(self){

	var bad_values = new Array();

	bad_values[bad_values.length] = "select ";
	bad_values[bad_values.length] = "insert ";
	bad_values[bad_values.length] = "drop ";
	bad_values[bad_values.length] = "update ";
	bad_values[bad_values.length] = "delete ";
	bad_values[bad_values.length] = "exec ";
	bad_values[bad_values.length] = "--";
	bad_values[bad_values.length] = "=";
	bad_values[bad_values.length] = "<";
	bad_values[bad_values.length] = ">";
	
	for(var i = 0; i < bad_values.length; i++) {

		if((self.value).indexOf(bad_values[i]) >= 0) {

			alert("< > ; -- =  Are invalid characters.");
			self.focus();
			self.select();
			return false;
	
		}

	}

	//replace blanks
	var reg = /((^\s)(\s)*)|((\s)(\s)+)/;
	var theValue = self.value;
	
	self.value = theValue.replace(reg,"");

	return(true);
}

function validate_servers(self){

		var bad_values = new Array();
		
		bad_values[bad_values.length] = "'";
		
		for(var i = 0; i < bad_values.length; i++) {

			if((self.value).indexOf(bad_values[i]) >= 0) {

				alert("Input contains invalid characters.");
				self.focus();
				self.select();
				return false;
		
			}

		}

		//replace blanks
		var reg = /((^\s)(\s)*)|((\s)(\s)+)/;
		var theValue = self.value;
		
		self.value = theValue.replace(reg,"");

		return(true);
	}


function validateEmail_old(self){
						
	if(self.value == ""){
		return(true);
	}


		var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
		var reg2 = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
								
		if (!reg1.test(self.value) && reg2.test(self.value)) { 

			var tempMail = (self.value).toLowerCase();
			if((tempMail.indexOf("spam") != -1) || (tempMail.indexOf("@yahoo") != -1) || (tempMail.indexOf("@hotmail") != -1)||(tempMail.indexOf("@mail.com") != -1)||(tempMail.indexOf("@email.com") != -1)|| (tempMail.indexOf("@gmail") != -1)||(tempMail.indexOf("@aol") != -1)||(tempMail.indexOf("@msn") != -1)||(tempMail.indexOf("@rediffmail") != -1)||(tempMail.indexOf("@netzero") != -1)||(tempMail.indexOf("@att") != -1)||(tempMail.indexOf("@verizonmail") != -1)||(tempMail.indexOf("@verizon.net") != -1)||(tempMail.indexOf("@bellsouth") != -1)||(tempMail.indexOf("@earthlink") != -1)||(tempMail.indexOf("@lycos") != -1)||(tempMail.indexOf("@excite") != -1)||(tempMail.indexOf("@comcast") != -1)||(tempMail.indexOf("@netscape") != -1)||(tempMail.indexOf("@Sympatico.ca") != -1)||(tempMail.indexOf("@Shaw.ca") != -1) ||(tempMail.indexOf("@mindspring.com") != -1) ||(tempMail.indexOf("@speakeasy.net") != -1) ||(tempMail.indexOf("@dodgeit.com") != -1)||(tempMail.indexOf("@clearwire.net") != -1)||(tempMail.indexOf(".rr.com") != -1)||(tempMail.indexOf(".rr.net") != -1)||(tempMail.indexOf("@adelphia.net") != -1)||(tempMail.indexOf("@ameritech.net") != -1)||(tempMail.indexOf("@antichef.com") != -1)||(tempMail.indexOf("@attibi.com") != -1)||(tempMail.indexOf("@borgen.us") != -1)||(tempMail.indexOf("@ca.com") != -1)||(tempMail.indexOf("@charter.net") != -1)||(tempMail.indexOf("@commvault.com") != -1)||(tempMail.indexOf("@covad.net") != -1)||(tempMail.indexOf("@cox.net") != -1)||(tempMail.indexOf("@EMC.com") != -1)||(tempMail.indexOf("@emcst.com") != -1)||(tempMail.indexOf("@enterprisestrategygroup.com") != -1)||(tempMail.indexOf("@erbnet.net") != -1)||(tempMail.indexOf("@ferris.com") != -1)||(tempMail.indexOf("@gartner.com") != -1)||(tempMail.indexOf("@gleb.com") != -1)||(tempMail.indexOf("@gte.net") != -1)||(tempMail.indexOf("@hotpop.com") != -1)||(tempMail.indexOf("@IBM.com") != -1)||(tempMail.indexOf("@IDC.com") != -1)||(tempMail.indexOf("@indiatimes.com") != -1)||(tempMail.indexOf("@indiaitmes.com") != -1)||(tempMail.indexOf("@insightbb.com") != -1)||(tempMail.indexOf("@juno.com") != -1)||(tempMail.indexOf("@lannom.net") != -1)||(tempMail.indexOf("@microsoft.com") != -1)||(tempMail.indexOf("@mimosa.com") != -1)||(tempMail.indexOf("@myexcel.com") != -1)||(tempMail.indexOf("@myselft.com") != -1)||(tempMail.indexOf("@netpro.com") != -1)||(tempMail.indexOf("@netside.net") != -1)||(tempMail.indexOf("@nucleusresearch.com") != -1)||(tempMail.indexOf("@ontrack.com") != -1)||(tempMail.indexOf("@optoline.net") != -1)||(tempMail.indexOf("@pacbell.net") != -1)||(tempMail.indexOf("@pobox.com") != -1)||(tempMail.indexOf("@prodigy.net") != -1)||(tempMail.indexOf("@quest.com") != -1)||(tempMail.indexOf("@radicati.com") != -1)||(tempMail.indexOf("@raxco.com") != -1)||(tempMail.indexOf("@revivio.com") != -1)||(tempMail.indexOf("@rogers.com") != -1)||(tempMail.indexOf("@rogers.net") != -1)||(tempMail.indexOf("@sbcglobal.net") != -1)||(tempMail.indexOf("@scriptlogic.com") != -1)||(tempMail.indexOf("@snet.net") != -1)||(tempMail.indexOf("@sonasoft.com") != -1)||(tempMail.indexOf("@sonic.net") != -1)||(tempMail.indexOf("@spambob.com") != -1)||(tempMail.indexOf("spamgourmet") != -1)||(tempMail.indexOf("spamhole") != -1)||(tempMail.indexOf("@suscom.net") != -1)||(tempMail.indexOf("@swbell.net") != -1)||(tempMail.indexOf("@swl.com") != -1)||(tempMail.indexOf("@symantec.com") != -1)||(tempMail.indexOf("@timespring.com") != -1)||(tempMail.indexOf("@veritas.com") != -1)||(tempMail.indexOf("@xosoft.com") != -1)||(tempMail.indexOf("@xsmail.com") != -1)||(tempMail.indexOf("yahoomail") != -1)||(tempMail.indexOf("@yankeegroup.com") != -1)||(tempMail.indexOf("@mailinator") != -1)||(tempMail.indexOf("@pookmail") != -1)||(tempMail.indexOf("@altered.") != -1)||(tempMail.indexOf("@1webmail.") != -1)||(tempMail.indexOf("@iname.com") != -1)||(tempMail.indexOf("@mac.com") != -1)||(tempMail.indexOf("@ontrack.com") != -1)||(tempMail.indexOf("@mail.ru") != -1)||(tempMail.indexOf("@quest.com") != -1)||(tempMail.indexOf("@kroll") != -1)||(tempMail.indexOf("@centrum") != -1)||(tempMail.indexOf("@aravensoft") != -1)||(tempMail.indexOf("@digitalsanctuary") != -1)) {
				alert("Hotmail, Yahoo, Gmail, AOL and other types of free email address are not allowed.\n \n Click the OK button to return to the email address field.\n\n Then enter a non-public email address.\n\nThank You.");				
				self.value = "";
				self.focus();
				self.select();
				
				return(false);
			}
			else{
				return(true);
			}

		}
	
		alert("\"" + self.value + "\" is an invalid email!"); 
		self.focus();
		self.select();
		return(false);
	
}


function validateEmail(self){
				

	if(self.value == ""){
		return(true);
	}
		var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
		var reg2 = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
								
		if (!reg1.test(self.value) && reg2.test(self.value)) { 

			var tempMail = (self.value).toString().toLowerCase();
			if(!validateDomains(tempMail)) {
				alert("Hotmail, Yahoo, Gmail, AOL and other types of free email address are not allowed.\n \n Click the OK button to return to the email address field.\n\n Then enter a non-public email address.\n\nThank You.");				
				self.value = "";
				self.focus();
				self.select();
				
				return(false);
			}
			else{
				return(true);
			}

		}
	
		alert("\"" + self.value + "\" is an invalid email!"); 
		self.focus();
		self.select();
		return(false);
	
}
function validateDomains(email)
{    
  var xmlDoc = loadXMLDoc("/xml/forbiddenDomains.xml");
  var tempMail = email.toString().toUpperCase();
  for(var i=0; i<xmlDoc.firstChild.childNodes.length;i++)
  {
    if(xmlDoc.firstChild.childNodes[i].nodeType == 1)
    {            
      if(xmlDoc.firstChild.childNodes[i].text == null)
      {
        strDomain = xmlDoc.firstChild.childNodes[i].textContent;
      }
      else
      {
        strDomain = xmlDoc.firstChild.childNodes[i].text;
      }
      if(tempMail.indexOf(strDomain.toUpperCase())>0)
      {                
        return false;
      }
    }
  }
  return true;      
}

function loadXMLDoc(url)
{
  var xmlhttp=null;
  
  if (window.XMLHttpRequest)
  {
    try 
    {
    xmlhttp=new XMLHttpRequest();
      if (xmlhttp.overrideMimeType)
      {
    xmlhttp.overrideMimeType('application/xml');
  }
    } catch (e){}
  } 
  else if (window.ActiveXObject)
  {
    try 
    {
      xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
    } 
    catch (e){
      try 
      {
        xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
      } catch (e){}
  }
  }
  
  if (xmlhttp!=null)
  {    
    xmlhttp.open("GET", url, false);
    xmlhttp.send(null);    
    return xmlhttp.responseXML;    
  }
}

function validateAnyEmail(self){
						
	if(self.value == ""){
	    alert("Empty email address is not allowed.\n \n Click the OK button to return to the email address field.\n\n Then enter a non-empty email address.\n\nThank You.");
		return(false);
	}

		var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
		var reg2 = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
								
		if (!reg1.test(self.value) && reg2.test(self.value)) { 
			var tempMail = (self.value).toString().toLowerCase();
		    return(true);			
		}
	
		alert("\"" + self.value + "\" is an invalid email!"); 
		self.focus();
		self.select();
		return(false);
	
}

function minMaxLength(self,min,max){

	if (((self.value).length < min) || ((self.value).length > max)) {
	
		if((self.value).length == 0) {
			return true;
		}
		alert("The data you entered must be between " + min + " and " + max + " characters.");
		self.value = '';
		self.focus();
		self.select();
		return false;
	}
	

	return true;
}	


function minMaxValue(self,min,max){

	var x;

	x = parseInt(self.value);
	if(isNaN(x)) {
		
		alert("Please enter a valid number between " + min + " and " + max);
		self.focus();
		self.select();
		return false;
	}

	if (((self.value) < min) || ((self.value) > max)) {
	
		if((self.value).length == 0) {
			return true;
		}
		alert("The data you entered must be between " + min + " and " + max);
		self.value = '';
		self.focus();
		self.select();
		return false;
	}
	

	return true;
}	

function ensureDecimal(self) {
	
	var total = parseFloat(self.value);
	if(isNaN(total)) {
		alert("Please enter a valid monetary value.");
		self.focus();
		self.select();
		return false;
	}
	return true;
}


function textbox(type,name,theValue,maxlength,size,jsCall,functionCall){
	
	
		var str = '';

		
		str = '<input class="normalText" type="' + type + '" name="' + name + '" value="' + theValue+ '" maxlength="' + maxlength + '" size="' + size + '" ';

		if(jsCall == '') {
			//default to onblur
			str += 'onblur="return(validate_string(this))"';
		}
		else{
			str += jsCall + '="return(validate_string(this) && ' + functionCall + ')"'; 
		}

		

		str += ' />';

		return str;

}
function textbox1(type,name,theValue,maxlength,size,jsCall,functionCall){
	
	
		var str = '';

		
		str = '<input class="normalText" type="' + type + '" name="' + name + '" value="' + theValue+ '" maxlength="' + maxlength + '" size="' + size + '" ';

		if(jsCall == '') {
			//default to onblur
			str += 'onblur="return(validate_string1(this))"';
		}
		else{
			str += jsCall + '="return(validate_string1(this) && ' + functionCall + ')"'; 
		}

		

		str += ' />';

		return str;

}


function contact_me_now(){
	var popup_window;
	popup_window = window.open("http://www.lucid8.com/contactmenow.asp","openwin","width=300,height=622,location=no,resizable=no,status=0,scrollbars=no");
}

function email_page(){
	var popup_window;
	popup_window = window.open("http://www.lucid8.com/emailPage.asp","openwin","width=350,height=541,location=no,resizable=no,status=0,scrollbars=no");
}
function CTIsPlayback() {
   try { return parent && parent.WebPlayer; }
   catch(e) { return false; }
}

(function() {
var oldValidateEmail = validateEmail;
validateEmail=function(){
  if (CTIsPlayback()){return;}
  return oldValidateEmail.apply(this, arguments);
}
})();
