if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
 var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ffversion<3)
  alert("This version of Firefox does not render this page correctly, please update it! or download a more recent browser Ex: IE8, IE9, Chrome 9+, Firefox 3.6+ or Safari 5+")
}	
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (ieversion<8)
  alert("This version of Internet Explorer does not render this page correctly, please update it! or download a more recent browser Ex: IE8, IE9, Chrome 9+, Firefox 3.6+ or Safari 5+")
  window.location="index_ie.php?id=7";
 if (ieversion>7)
  window.location="index_ie.php?id=8";
}
if (/Safari[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Opera/x.x or Opera x.x (ignoring remaining decimal places);
 var safversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (safversion<4)
  alert("This version of Safari does not render this page correctly, please update it! or download a more recent browser Ex: IE8, IE9, Chrome 9+, Firefox 3.6+ or Safari 5+")
}
if (/Chrome[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Opera/x.x or Opera x.x (ignoring remaining decimal places);
 var chrversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 if (chrversion<9)
  alert("This version of Google Chrome might not render this page correctly, please update it! or download a more recent browser Ex: IE8, IE9, Chrome 9+, Firefox 3.6+ or Safari 5+")
}	
if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Opera/x.x or Opera x.x (ignoring remaining decimal places);
  alert("Opera does not render this page correctly, please use another browser Ex: IE8, IE9, Chrome 9+, Firefox 3.6+ or Safari 5+")
  window.location="index_ie.php?id=7";
}
