function validateJS(formName){
		 var fn=eval(document.forms[formName])
		 
		 var t=fn.txtTitle.value
		 var rd=fn.txtReleaseDate.value
		 var w=fn.txtWriter.value
		 var a=fn.txtArtists.value
		 var p=fn.cboPublisher.selectedIndex
		 var syn=fn.txtSynopsis.value
		 var goo=fn.txtGood.value
		 var nGoo=fn.txtNotGood.value
		 var cRat=fn.cboRating.selectedIndex
		 
		 
		 if(t==""){
		 		   alert("You neglected to enter the Title.")
				   fn.txtTitle.focus()
				   return;
				}
		  if(rd==""){
		 		   alert("You neglected to enter the Release Date.")
				   fn.txtReleaseDate.focus()
				   return;
				   }		
		  if(w==""){
		 		   alert("You neglected to enter the Writer(s).")
				   fn.txtWriter.focus()
				   return;
				   }	
		   if(a==""){
		 		   alert("You neglected to enter the Artist(s).")
				   fn.txtArtists.focus()
				   return;
				   }		
           if(p==0){
		 		   alert("You neglected to select the Publisher.")
				   fn.cboPublisher.focus()
				   return;
				   }	
            if(syn==""){
		 		   alert("You neglected to enter the Synopsis.")
				   fn.txtSynopsis.focus()
				   return;
				   }		
            if(goo==""){
		 		   alert("You neglected to enter the Good Stuff.")
				   fn.txtGood.focus()
				   return;
				   }
			if(nGoo==""){
		 		   alert("You neglected to enter the Not So Good Stuff.")
				   fn.txtNotGood.focus()
				   return;
				   }	
		    if(cRat==0){
		 		   alert("You neglected to enter the Rating.")
				   fn.cboRating.focus()
				   return;
				   }	
			fn.submit();
						   	   		   			   		   	   
}

function setEmail(formName){
		 var fn=eval(document.forms[formName])
		 ss=fn.cboReviewed.selectedIndex
		 var rv=fn.cboReviewed.options[ss].text
		 fn.txtEmail.value=rv
		 //alert('ok')
		 
}

function validateUPD(formName){
    var fn=eval(document.forms[formName])
    var tUP=fn.txtUpdate.value
    var tIt=fn.txtTitle.value
    
    if(tIt==""){
	    alert("You neglected to enter the title for the update.")
	    fn.txtTitle.focus()
	    return;
	}
    
	if(tUP==""){
	    alert("You neglected to enter the text for the update.")
	    fn.txtUpdate.focus()
	    return;
	}
	fn.submit();
				


}

function setEmailUP(formName){
		 var fn=eval(document.forms[formName])
		 ss=fn.cboUpdater.selectedIndex
		 var rv=fn.cboUpdater.options[ss].text
		 fn.txtEmail.value=rv
		 //alert('ok')
		
}

function validateLogin(formName){
    var fn=eval(document.forms[formName])
    var userName=fn.name.value
    var pWord=fn.password.value
    //alert(userName)
    //alert(pWord)
    
    if(userName==""){
        alert("You neglected to enter your user ID")
        fn.name.focus();
        return;
        }
    if(pWord==""){
        alert("You didn't enter your password.")
        fn.password.focus();
        return;
        }
    fn.submit();
    
}

function hideReviews(divName){
    var dn=eval(document.divName)
    alert(dn)
    return;
    browser=navigator.appName
	if(browser=="Netscape"){	
		document.dn.visibility='hidden';
		}
	else{
		document.all.dn.visibility='hidden'
	}
}

function validateFeature(formName){
    //alert("I'm Here")
    var fn=eval(document.forms[formName])
    //alert(fn)
    var aT=fn.txtTitle.value
    var fT=fn.cboFeatureType.selectedIndex
    var artT=fn.txtArticle.value
    //var artK=fn.txtKeywords.value
    
    if(aT==""){
        alert("Please enter a title for the feature.")
        fn.txtTitle.focus()
        return
    }
    if(fT==0){
        alert("Please select a type of feature.")
        fn.cboFeatureType.focus()
        return
    }
    /*if(artK==""){
        alert("Please enter keywords for the feature.")
        fn.txtKeywords.focus()
        return
    }*/
    if(artT==""){
        alert("Please enter the text for the feature.")
        fn.txtArticle.focus()
        return
    }
    fn.submit()
    
}

function validateMisc(formName){
    //alert("I'm Here")
    var fn=eval(document.forms[formName])
    //alert(fn)
    var aT=fn.txtTitle.value
    var fT=fn.cboReviewType.selectedIndex
    var artT=fn.txtArticle.value
    //var artK=fn.txtKeywords.value

    if(aT==""){
        alert("Please enter a title for the feature.")
        fn.txtTitle.focus()
        return
    }
    if(fT==0){
        alert("Please select a type of feature.")
        fn.cboFeatureType.focus()
        return
    }
    /*if(artK==""){
        alert("Please enter keywords for the feature.")
        fn.txtKeywords.focus()
        return
    }*/
    if(artT==""){
        alert("Please enter the text for the feature.")
        fn.txtArticle.focus()
        return
    }
    fn.submit()

}


function validateLinks(formName){
    //alert("I'm Here")
    var fn=eval(document.forms[formName])
    //alert(fn)
    var lT=fn.txtTitle.value
    var lType=fn.cboLinkType.selectedIndex
    var linkT=fn.txtDescription.value
    var lu=fn.txtURL.value
    //var artK=fn.txtKeywords.value

    if(lT==""){
        alert("Please enter a title for the link.")
        fn.txtTitle.focus()
        return
    }
    if(lu==""){
        alert("Please enter a URL for the link.")
        fn.txtURL.focus()
        return
    }
    if(lType==0){
        alert("Please select a link category.")
        fn.cboLinkType.focus()
        return
    }
    
    if(linkT==""){
        alert("Please enter a description for the link.")
        fn.txtDescription.focus()
        return
    }
    fn.submit();

}

function validateMiscE(formName){
    //alert("I'm Here")
    var fn=eval(document.forms[formName])
    //alert(fn)
    var aT=fn.txtTitle.value
    //var fT=fn.cboReviewType.selectedIndex
    var artT=fn.txtArticle.value
    //var artK=fn.txtKeywords.value

    if(aT==""){
        alert("Please enter a title for the feature.")
        fn.txtTitle.focus()
        return
    }
    /*if(fT==0){
        alert("Please select a type of feature.")
        fn.cboFeatureType.focus()
        return
    }*/
    /*if(artK==""){
        alert("Please enter keywords for the feature.")
        fn.txtKeywords.focus()
        return
    }*/
    if(artT==""){
        alert("Please enter the text for the feature.")
        fn.txtArticle.focus()
        return
    }
    fn.submit()

}




function validateTrade(formName){
		 var fn=eval(document.forms[formName])
		
		 var t=fn.txtTitle.value
		 var w=fn.txtWriter.value
		 var a=fn.txtArtists.value
		 var p=fn.cboPublisher.selectedIndex
		 var syn=fn.txtSynopsis.value
		 var goo=fn.txtGood.value
		 var nGoo=fn.txtNotGood.value
		 var cRat=fn.cboRating.selectedIndex
		
		
		 if(t==""){
		 		   alert("You neglected to enter the Title.")
				   fn.txtTitle.focus()
				   return;
				}		
		  if(w==""){
		 		   alert("You neglected to enter the Writer(s).")
				   fn.txtWriter.focus()
				   return;
				   }	
		   if(a==""){
		 		   alert("You neglected to enter the Artist(s).")
				   fn.txtArtists.focus()
				   return;
				   }		
           if(p==0){
		 		   alert("You neglected to select the Publisher.")
				   fn.cboPublisher.focus()
				   return;
				   }	
            if(syn==""){
		 		   alert("You neglected to enter the Synopsis.")
				   fn.txtSynopsis.focus()
				   return;
				   }		
            if(goo==""){
		 		   alert("You neglected to enter the Good Stuff.")
				   fn.txtGood.focus()
				   return;
				   }
			if(nGoo==""){
		 		   alert("You neglected to enter the Not So Good Stuff.")
				   fn.txtNotGood.focus()
				   return;
				   }	
		    if(cRat==0){
		 		   alert("You neglected to enter the Rating.")
				   fn.cboRating.focus()
				   return;
				   }	
			fn.submit();
						   	   		   			   		   	
}

function changeSort(){
	var ns=document.forms["frmSortReview"].cboSort.value;
	document.frmSortReview.sortOrder.value=ns;
	//alert(document.frmSortReview.sortOrder.value);
	return;
}
function changeYear(){
	var ns=document.forms["frmSortReview"].cboYear.value;
	document.frmSortReview.sortYear.value=ns;
	//alert(document.frmSortReview.sortYear.value);
	return;
}


function updateKeywords(){
	var newKeys="";
	var title=document.frmReview.txtTitle.value;
	var writer=document.frmReview.txtWriter.value;
	var artist=document.frmReview.txtArtists.value;
	var publisher=document.frmReview.cboPublisher.value;
	var keyString=title + ',' + writer + ',' + artist + ',' + publisher + ', review';
	document.frmReview.txtKeywords.value=keyString;
}



function validateEditReview(formName){
		 var fn=eval(document.forms[formName])
		 
		 var t=fn.txtTitle.value
		 var rd=fn.txtReleaseDate.value
		 var w=fn.txtWriter.value
		 var a=fn.txtArtists.value
		 var syn=fn.txtSynopsis.value
		 var goo=fn.txtGood.value
		 var nGoo=fn.txtNotGood.value
		 
		 
		 if(t==""){
		 		   alert("You neglected to enter the Title.")
				   fn.txtTitle.focus()
				   return;
				}
		  if(rd==""){
		 		   alert("You neglected to enter the Release Date.")
				   fn.txtReleaseDate.focus()
				   return;
				   }		
		  if(w==""){
		 		   alert("You neglected to enter the Writer(s).")
				   fn.txtWriter.focus()
				   return;
				   }	
		   if(a==""){
		 		   alert("You neglected to enter the Artist(s).")
				   fn.txtArtists.focus()
				   return;
				   }		

            if(syn==""){
		 		   alert("You neglected to enter the Synopsis.")
				   fn.txtSynopsis.focus()
				   return;
				   }		
            if(goo==""){
		 		   alert("You neglected to enter the Good Stuff.")
				   fn.txtGood.focus()
				   return;
				   }
			if(nGoo==""){
		 		   alert("You neglected to enter the Not So Good Stuff.")
				   fn.txtNotGood.focus()
				   return;
				   }	
	
			fn.submit();
						   	   		   			   		   	   
}

