// JavaScript Document
function popUp(URL, w, h) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=" + w  + ",height=" + h + "');");
}
function validateAlts(){
		if(document.image1.value!=""){
			    if (document.alt1.value == "") {
        			if (!failed){ firstfocus = document.alt1;}
        			failed = true;
        			message += "Alt1 \n";
    			}
		}
		if(document.image2.value!=""){
			    if (document.alt2.value == "") {
        			if (!failed){ firstfocus = document.alt2;}
        			failed = true;
        			message += "Alt2 \n";
    			}
		}
		if(document.image3.value!=""){
			    if (document.alt3.value == "") {
        			if (!failed){ firstfocus = document.alt3;}
        			failed = true;
        			message += "Alt3 \n";
    			}
		}
		if(document.image4.value!=""){
			    if (document.alt4.value == "") {
        			if (!failed){ firstfocus = document.alt4;}
        			failed = true;
        			message += "Alt4 \n";
    			}
		}
		if(document.image5.value!=""){
			    if (document.alt5.value == "") {
        			if (!failed){ firstfocus = document.alt5;}
        			failed = true;
        			message += "Alt5 \n";
    			}
		}
		if(document.image6.value!=""){
			    if (document.alt6.value == "") {
        			if (!failed){ firstfocus = document.alt6;}
        			failed = true;
        			message += "Alt6 \n";
    			}
		}
		if(document.image7.value!=""){
			    if (document.alt7.value == "") {
        			if (!failed){ firstfocus = document.alt7;}
        			failed = true;
        			message += "Alt7 \n";
    			}
		}
		if(document.image8.value!=""){
			    if (document.alt8.value == "") {
        			if (!failed){ firstfocus = document.alt8;}
        			failed = true;
        			message += "Alt8 \n";
    			}
		}
		if(document.image9.value!=""){
			    if (document.alt9.value == "") {
        			if (!failed){ firstfocus = document.alt9;}
        			failed = true;
        			message += "Alt9 \n";
    			}
		}
		if(document.image10.value!=""){
			    if (document.alt10.value == "") {
        			if (!failed){ firstfocus = document.alt10;}
        			failed = true;
        			message += "Alt10 \n";
    			}
		}
		// stick some form field validation in here
    	if (failed){
        	alert(message);
        	firstfocus.focus();
        	return false;
    	}    
		return confirm('Are you sure you want to Update this Item?');
}