function openWinlog(url, name) {
         openNew = window.open(url, name, 'directories=no,height=480,width=785,resizable=yes,location=no,status=no,menubar=no,scrollbars=yes');
	  	}

function AddToFaves_hp(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function AddToFaves_contact(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/contact.shtml';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function AddToFaves_free(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/free.shtml';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function AddToFaves_features(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/features.shtml';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function AddToFaves_hosting(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/hosting.shtml';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function AddToFaves_opportunity(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/opportunity.shtml';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function AddToFaves_payment(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/payment.shtml';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function AddToFaves_product1(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/product1.shtml';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function AddToFaves_products(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = 'http://www.affordable-conference.com/products.shtml';
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac) 
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}

function openWin(url, name) {
         openNew = window.open(url, name, 'directories=no,height=480,width=400,resizable=yes,location=no,status=no,menubar=no,scrollbars=yes');
	  	}

function openWin1(url, name) {
         openNew = window.open(url, name, 'directories=no,height=480,width=475,resizable=yes,location=no,status=no,menubar=no,scrollbars=yes');
	  	}

function openWin6(url, name) {
         openNew = window.open(url, name, 'directories=no,height=480,width=755,resizable=yes,location=no,status=no,menubar=no,scrollbars=yes');
	  	}

function openWin7(url, name) {
         openNew = window.open(url, name, 'directories=no,height=2,width=212,resizable=yes,location=no,status=no,menubar=no,scrollbars=yes');
	  	}

function openConference(url, name) {
         openNew = window.open(url, name, 'directories=no, height=600, width=1200, resizable=yes, location=no, status=no, menubar=no, scrollbars=yes');
	  	}

function imageEnlarge(url, name) {
         openNew = window.open(url, name, 'directories=no, height=600, width=1250, resizable=yes, location=no, status=no, menubar=no, scrollbars=yes');
	  	}
	  	
function validateForm2(contact)
{

if(""==document.forms.contact.selectName.value)
{
alert("Please enter how you found us.");
document.forms.contact.selectName.focus();
return false;
}

if(""==document.forms.contact.subject.value)
{
alert("Please enter your support request.");
document.forms.contact.subject.focus();
return false;
}

if("(Your Full Name)"==document.forms.contact.name.value)
{
alert("Please enter your Full Name.");
document.forms.contact.name.focus();
return false;
}

if("(Your Full Name)"!=document.forms.contact.name.value)
if(document.forms.contact.name.value.length<3)
{
alert("Please enter your Full Name.");
document.forms.contact.name.focus();
return false;
}

if("(Your eMail Address)"==document.forms.contact.client_email.value)
{
alert("Please enter your eMail.");
document.forms.contact.client_email.focus();
return false;
}

if("(Your eMail Address)"!=document.forms.contact.client_email.value)
if(document.forms.contact.client_email.value.length<4)
{
alert("Please enter your eMail.");
document.forms.contact.client_email.focus();
return false;
}

if(document.forms.contact.comments.value.length<4)
{
alert("Please enter your Comments.");
document.forms.contact.comments.focus();
return false;
}

if(document.forms.contact.client_email.value.length>0)
{
return checkemail2();
}

}

var testresults
function checkemail2(){
var str=document.contact.client_email.value
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str))
testresults=true
else{
alert("Please input a valid eMail address!")
document.forms.contact.client_email.focus()
testresults=false
}
return (testresults)
}


