function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) { filetype = filetype.split("."); filetype = "." + filetype[filetype.length - 1]; var allowed = false; for (i = 0; i < allowedtypes.length; i++) { if (filetype == allowedtypes[i]) { allowed = true; } } if (!allowed) { alert(filetype + " " + allowederror); } } else { allowed = true; } return allowed; } function toggleDisplay(obj, status) { if (status == "focus") { obj.style.border = "1px solid #333333"; obj.style.background = "#FFFFDF"; } else { obj.style.border = "1px solid #888888"; obj.style.background = "#FFFFFF"; } } function checkFormFields (formfields) { var errorcount = 0; formfields = formfields.split(','); if (formfields.length > 0) { for (i = 0; i < formfields.length; i++) { if (document.getElementById(formfields[i]).value.length == 0) { errorcount++; } } } if (errorcount > 0) { alert("All fields marked with an * must be filled !"); return false; } else { return checkFiletype(); } }