
function changeClass (id, new_class) {
	var elem = getElement (id);
	
	if (elem)
		elem.className = new_class;
}

function checkSubmit (form) { 
	with (form) {
		if (email.value == "" || email.value == null || email.value == "Subscribe via email") {
			email.focus ();
			return false;
		}
		
		with (email) {
			apos=value.indexOf ("@");
			dotpos=value.lastIndexOf (".");
			
			if (apos < 1 || dotpos-apos < 2) {
				focus ();
				select ();
				return false;
			}
		}		
		
		window.open('http://www.feedburner.com', 'popupwindow', 'scrollbars=yes,width=550,height=520');
		target = 'popupwindow';
	}
	
	return true;
}

function openWindow (link) {
	var new_window = window.open (link.getAttribute ('href'), '_blank');
	new_window.focus ();
	
	return false;
}

function getElement (id) {
	var new_elem;
	
	if (document.getElementById)
		new_elem = document.getElementById (id);	
	else if (document.all)
		new_elem = document.all [id];
	else
		return null;

	return new_elem;
}



