
<!-- Hide the Code
function swapImg(oldImg, newImg) {
	if ( isNS4 || isIE4 || isIE5 || isNew || isNS6up){
		eval('document.images.' + oldImg +'.src=' + newImg +'.src');
	}
}

function celebWindow(page) {
	var href = "celebText/" + page + ".php";
	var prefs ="toolbar=no,status=no,menubar=no,resizable=no,location=no,width=310,height=300"
	window.open(href,"star",prefs);
	}

function checkQuest(form) {
		var pollQuestion = null;

		for( i = 0; i < form.pollChoice.length; i++ ) {
			if( form.pollChoice[i].checked ) {
				pollQuestion=form.pollChoice[i].value;
			}
		}

		if(pollQuestion == null)
		{
			alert('You must give us your opinon');
			return false;
		}
}

function checkRad(form) {
		var idPost = null;

		for( i = 0; i < form.ID.length; i++ ) {
			if( form.ID[i].checked ) {
				idPost=form.ID[i].value;
			}
		}

		if(idPost == null){
			alert('Please select an album');
			return false;
		}

}

function checkName(form) {

	if( form.bandName.value == "" || form.albumName.value == ""){
	alert('please enter a band and an album name');
			return false;
	}

}

// Email Validation. Written by PerlScriptsJavaScripts.com

function check_email(e) {
ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

	for(i=0; i < e.length ;i++){
		if(ok.indexOf(e.charAt(i))<0){
		return (false);
		}
	}

	if (document.images) {
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;
		if (!e.match(re) && e.match(re_two)) {
		return (-1);
		}
	}

}


function check_form(f) { // f is the form (passed using the this keyword)
// check the first email address ( the exclamation means "not" )
	if(!check_email(f.email.value)){
		alert("Enter a valid email address");
		f.email.focus();
// if the browser is Netscape 6 or IE
// make sure the form is not submitted
	return false;
	}
}
// -->





//end this code -->

