if(!emailFilter.test($('submitter_email').value)) errMsg += 'Please enter a valid email address';
var emailFilter = new RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$");
if($('submitter_name').value == '') errMsg += 'Please enter your name';
// Run the simple form validation
// This empties the log and shows the spinning indicator
$('feedback-form').addEvent('submit', function(e) {
// Setup the form submission functionality
$('feedback_msg').setOpacity(0);
// Disappear the message box at the top of the form
feedbacktoggle.set(0-$('feedback-info').getCoordinates().width);
feedbacktoggle = new Fx.Style('feedback-div','right', { duration: 1000 });
$('screen_resolution').value = screen.width + ' x '+screen.height;
$('operating_system').value = ($chk(BrowserDetect)) ? BrowserDetect.OS : 'Sorry, we hit a snag, check the User Agent';
$('browser_version').value = ($chk(BrowserDetect)) ? BrowserDetect.version : 'Sorry, we hit a snag, check the User Agent';
$('browser').value = ($chk(BrowserDetect)) ? BrowserDetect.browser : 'Sorry, we hit a snag, check the User Agent';
// Determine the browser-specific information
window.addEvent(((window.webkit) ? 'load':'domready'), function() {
Do not fill out this field its a trap
Комментариев нет:
Отправить комментарий