function validate_email(field,alerttxt) {
	with (field) { 
		apos=value.indexOf("@");
		dotpos=value.lastIndexOf(".");
		if (apos<1||dotpos-apos<2) {alert(alerttxt);return false;}
		else { return true; }
	}
}
function validate_form(thisform,fieldtovalidate)
{
	with (thisform)
	{
	if (validate_email(fieldtovalidate,"Not a valid e-mail address!")==false)
	  { return false;}
	}
}



/* prototip stuff */
document.observe('dom:loaded', function() {


	/* 
	
	new Tip('header_castyourvote', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'bottomLeft', tip: 'bottomLeft'},
	  offset: {x:100, y:-30}
	});
	
	new Tip('header_topguy', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'bottomLeft', tip: 'bottomLeft'},
	  offset: {x:100, y:-30}
	});

	*/
	
	new Tip('menu_eros', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'topRight', tip: 'bottomLeft'}
	});
	

	new Tip('menu_guestgurus', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'topRight', tip: 'bottomLeft'}
	});

	new Tip('menu_forher', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'topRight', tip: 'bottomLeft'}
	});


	new Tip('onthebarstool_more', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'topRight', tip: 'bottomLeft'}
	});

	new Tip('gurus_more', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'topRight', tip: 'bottomLeft'}
	});
/* 
	
	new Tip('apply_more', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'topRight', tip: 'bottomLeft'}
	});
	
	new Tip('apply_comingsoon', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'topRight', tip: 'bottomLeft'}
	});
	new Tip('menu_mature', 'Stay tuned for Season 1', {
	  className: 'darktip',
	  title: 'Coming Soon!',
	  effect: 'appear',
	  hook: { target: 'topRight', tip: 'bottomLeft'}
	});
*/
});

