



function validate()
{
	if ((document.granny.t.value != "") && (document.granny.t.value != 'first name')) {
		var i = 0;
		var at = 0;
		var dot = 0;
		document.granny.submit()
	} else
		alert('Please put your name in the text box.');
}

function newwindow(url)
{
	newwnd = window.open(url,'editwindow','width=500, height=450,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1'); 
	newwnd.focus();
}
function newwindowbigger(url)
{
	newwnd = window.open(url,'editwindow','width=500, height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1'); 
	newwnd.focus();
}

function validateemailform()
{
	if ((document.mailafriend.fromemail.value != "") && (document.mailafriend.toemail.value != "")) {
		var i = 0;
		var at = 0;
		var dot = 0;
		var toemail = document.mailafriend.toemail.value;
		var fromemail = document.mailafriend.fromemail.value;
		
	if  ((toemail.indexOf("@") > 1) && (toemail.indexOf(".") > 1) && (fromemail.indexOf("@") > 1) && (fromemail.indexOf(".") > 1))
			document.mailafriend.submit();
		else
			alert('The email address you supplied is not valid please check it and try again.');
	} else
		alert('You must specify both email addresses.');
}
function validateemailform2()
{
	if (document.joinlist.email.value != "") {
		var i = 0;
		var at = 0;
		var dot = 0;
		var email = document.joinlist.email.value;

	if  ((email.indexOf("@") > 1) && (email.indexOf(".") > 1))
			document.joinlist.submit();
		else
			alert('The email address you supplied is not valid please check it and try again.');
	} else
		alert('You must specify an email address.');
}
function validateemailform3()
{
	if (document.joinlist2.email.value != "") {
		var i = 0;
		var at = 0;
		var dot = 0;
		var email = document.joinlist2.email.value;

	if  ((email.indexOf("@") > 1) && (email.indexOf(".") > 1))
			document.joinlist2.submit();
		else
			alert('The email address you supplied is not valid please check it and try again.');
	} else
		alert('You must specify an email address.');
}

var url="http://www.goyk.com";
var title="GOYK.COM - Waste your time here.";
function favorites(){
if(document.all)
window.external.AddFavorite(url,title)
}