
function overview (url) 
	{	
		ov = open(url, "ov", 'status=0, toolbar=0,resizeable=0,width=290,height=350,scrollbars=1,alwaysRaised=yes');
		movewindow(ov);
	}
		
function brochure(url)
	{
		br = open(url, "br", 'status=0, toolbar=0,resizeable=0,scrollbars=1');
		var aw = screen.availWidth;
		var ah = screen.availHeight;
		br.window.resizeTo (aw,ah);
		movewindow(br);
	}

function movewindow(x)
	{
		x.window.moveTo(0,0);
	}
	
	
function showauthor (author)
	{
		url = "../authors/" + author + ".html";
		auth = open (url, "auth", 'status=0,toobar=0,resizeable=0,scrollbars=1');
		var aw = screen.availWidth;
		aw = (aw/4)*4;
		var ah = screen.availHeight;
		ah = (ah/4)*3;
		auth.window.resizeTo (aw,ah);				
		movewindow(auth);
	}


function closeme()
	{
		self.close();
	}

function dana_contact_form()
	{	
	contact = open ('../contact.html', 'main');
	}

function contact_dana()
	{
	contact2 = open ('../contact.html', 'main');
	}


function contact_dana_home()
	{
	contact2 = open ('./contact.html', 'main');
	}



function open_speach (y) 
	{
		url = "./sp" + y + ".html";
		sp = open (url, '', 'width=450,height=500,toolbar=0,scrollbars=1,statusbar=0');
		movewindow(sp);
}


function validate()
{
	var ret = 0;
	var msg = "";

	<!-- ensure contry is selected -->
	if (document.dana_contact.country.value == '-1'){
		msg = msg + "No country selected\n";	
		ret = 1;
	}

	<!-- ensure valid company name entered -->
	core = new RegExp ("^ *([A-Za-z0-9&]+ ?)+ *$");
	if (core.exec (document.dana_contact.company_name.value) == null) {
		msg = msg + "Company name is invalid or not entered \n";
		ret = 1;	
	}

	<!-- ensure name is entered -->
	if (document.dana_contact.person_name.value == ""){
		msg = msg + "No name entered\n";
		ret = 1;
	}
	
	if (document.dana_contact.email.value == "") {
		msg = msg + "No email entered \n";
		ret = 1;
	}

	if (document.dana_contact.phone.value == "") {
		msg = msg + "No phone number entered \n";
		ret = 1;
	}

	if (ret == 1) {
		alert (msg);
		return false;
		}
	else
		return true;
}