\n'); } //------------------------------------ if (navigator.appName == 'Microsoft Internet Explorer') globalheight = '50%'; // location.href = 'explorer.htm'; else globalheight = '8'; // location.href = 'netscape.htm'; function openWin(url) { if (document.all) var xMax = screen.width, yMax = screen.height; else if (document.layers) var xMax = window.outerWidth, yMax = window.outerHeight; else var xMax = 640, yMax=480; var xOffset = (xMax - 750)/2, yOffset = (yMax - 570)/2; window.open(url,'articles','width=750,height=570 resizable=yes,scrollbars=yes,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+''); } function openBookings(url) { if (document.all) var xMax = screen.width, yMax = screen.height; else if (document.layers) var xMax = window.outerWidth, yMax = window.outerHeight; else var xMax = 640, yMax=480; var xOffset = (xMax - 420)/2, yOffset = (yMax - 500)/2; window.open(url,'Bookings','width=420,height=500 resizable=yes,scrollbars=auto,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+''); } function openSchedule(url) { if (document.all) var xMax = screen.width, yMax = screen.height; else if (document.layers) var xMax = window.outerWidth, yMax = window.outerHeight; else var xMax = 640, yMax=480; var xOffset = (xMax - 750)/2, yOffset = (yMax - 570)/2; window.open(url,'schedules','width=750,height=570 resizable=yes,scrollbars=auto,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+''); } function form_validate(formObj){ with (formObj){ errors = ""; if (fname.value == "") { errors += "Missing First Name\n"; } if (lname.value == "") { errors += "Missing Last Name\n"; } if (email.value == "") { errors += "Missing Email Address"; } else { re_email = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; if (!re_email.test(email.value)){ errors += "Invalid Email Address\n"; } } if (errors != ""){ error_msg = "Please correct the following errors on the newsletter sign-up form.\n\n"; error_msg += errors; error_msg += "\n\n"; alert(error_msg); return false; } } if (document.all) { var xMax = screen.width, yMax = screen.height; } else { if (document.layers) { var xMax = window.outerWidth, yMax = window.outerHeight; } else { var xMax = 640, yMax=480; } } var xOffset = (xMax - 420)/2, yOffset = (yMax - 500)/2; window.open('subscribe.cfm?firstname='+document.signup.fname.value+'&lastname='+document.signup.lname.value+'&mail='+document.signup.email.value+'','javadNew','width=380,height=400 resizable=yes,scrollbars=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+''); return false; } function login_validate(formObj){ with (formObj){ errors = ""; if (username.value == "") { errors += "Missing Username\n"; } if (password.value == "") { errors += "Missing Password\n"; } if (errors != ""){ error_msg = "Please correct the following errors in client login form.\n\n"; error_msg += errors; error_msg += "\n\n"; alert(error_msg); return false; } } return true; } // Sets up the variable movieName. This need to be the same as name=... // within the EMBED tag. In our case textExample var movieName = "hoc_loader"; // IE and Netscape refer to the movie object differently. // This function returns the appropriate syntax depending on the browser. function thisMovie(movieName) { if (navigator.appName.indexOf ("Microsoft") !=-1) { return window[movieName] } else { return document[movieName] } } // This function calls the browser check function to get the correct // syntax and calls a built in Flash function Load.Movie // The first parameter (level) is the layer we are loading to // The second is the movie file name we are loading. function loadDetails(level,movieFileName) { thisMovie(movieName).LoadMovie(level,movieFileName); } // -->
|
|||||||||||||||||||||||||||||||||