/******************************************************************************
* Filename:    basic.js                                                       *
* Description: Every page should link to this script. It initializes all the  *
*              Javascript functions from this and other scripts. This page    *
*              shouldn't contain more than a handful of its own Javascript.   *
* Author:      Michael A. Smith and Dan Crane                                 *
* Modified:    2006-11-21                                                     *
******************************************************************************/

/** Stuff that needs to happen when the page loads. If you need to define a
    specific init() for a given page, please call the function localInit() and
    enclose init() in it at the top, like so:
  window.onload = localInit;
	function localInit() {
	  init();
	  // ... other stuff ...
  }
*/
// This is the legalese quit message for external links.
var quitMsg = "You are leaving a LANXESS Web site and entering a third party Web site.\nLANXESS does not own or control and shall have no liability with respect to the content of the third party Web site.";
window.onload = init;
function init() {
  makeHoverById("topnav", "LI");
  popupWindows();
  rolloverImages();
  validateForms();
	setupPageFunctions();
}
/** Makes the "_go" disappear form our_products fxnModules -- if Javascript is
    disabled then "_go" will appear and the form will stay functional. */
function noGo() {
	document.getElementById("tButton").style.display = "none";
}

function isNum(obj){
	noNum = "";
	if(obj.value.length > 0){
		str = obj.value.toString();
		nums = "1234567890";
		for(i=0;i<str.length;i++){
			cr = str.charAt(i); //I have no idea why IE6 won't just let me reference the array ( str[i] ) for the value.
			if(nums.indexOf(cr)== -1 ){
				noNum = "t";
			}
		}
	}
	if(noNum == "t"){
		alert("This field can only contain numbers");
		obj.value = "";
	}
}