
	function hideInputBg(field)
	{
		ipField = document.getElementById(field);
		ipField.style.background = "#fff";
	}
	
	
	function IE_Refresh(){
		if (document.all) location.reload();
	}
	window.onresize = IE_Refresh;
	
	
// >> Standard Popup functions
	function StandardPopup(Attrs){
		// @params IE and Gecko-Browser compatible window parameter attributes.
		this.params = ['left', 'top', 'location', 'menubar', 'resizable', 'scrollbars', 'status', 'toolbar', 'height', 'width'];
		this.href = Attrs.href ? Attrs.href : 'http://www.google.de'; // url to the popup content
		this.name = Attrs.name ? Attrs.name : 'standardPopup'; // standard window name
		this.height = Attrs.height ? Attrs.height : '550'; // standard height opened window
		this.width = Attrs.width ? Attrs.width : '650'; // standard width opened window
		this.left = Attrs.left ? Attrs.left : null; // window left position from the upper left corner of the client screen
		this.top = Attrs.top ? Attrs.top : null; // window top position from the top of the client screen
		this.locationbar = Attrs.location ? Attrs.location : 'no'; // ['yes', 'no'] display the locationbar
		this.menubar = Attrs.menubar ? Attrs.menubar : 'no'; // ['yes', 'no'] display the menubar
		this.resizable = Attrs.resizable ? Attrs.resizable : 'yes'; // ['yes', 'no'] allows the user to change the window size
		this.scrollbars = Attrs.scrollbars ? Attrs.scrollbars : 'yes'; // ['yes', 'no'] show scrollbars if necessary
		this.status = Attrs.status ? Attrs.status : 'no'; // ['yes', 'no'] show statusbar
		this.toolbar = Attrs.toolbar ? Attrs.toolbar : 'no'; // ['yes', 'no'] show toolbar
		this.wRef = null // window reference to make changes on the opened window
	}
	
	StandardPopup.prototype._formatParams = function()
	{
		var str = '\'';
		var objParam;
		for (var param in this.params){
			objParam = this.params[param] == 'location' ? 'locationbar' : this.params[param];
			if (eval("this." + objParam)){
				str += this.params[param] + '=' + eval("this." + objParam) + ',';
			}
		}
		str = str.substring(0, str.length -1);
		str += '\'';
		return str;
	}
	
	StandardPopup.prototype.open = function(){
		var paraStr = this._formatParams();
		this.wRef = window.open(this.href, this.name, paraStr);
		if (this.wRef)
			this.wRef.focus();
		return false;
	}
// <<


// >> url-checker
	function checkUrl(idArr){
		if (idArr.length > 0){
			var wl = String(window.location);
			var fn = wl.substring(wl.lastIndexOf('/') +1, wl.length);
			for (var i = 0; i < idArr.length; ++i){
				if (fn.search(idArr[i]) > -1) return true;
			}
		}
		return false;
	}
// <<


// >> mice international startpage content switcher
	function ContentSwitcher(args){
		this.elms = args.elements;
		this.active = args.active;
		this.contentEls = new Array();
		if (this.elms){
			this.createElementObjects(this.elms);
			this.activateDefault(this.active);
		}
	}

	ContentSwitcher.prototype.createElementObjects = function(ids){
		for (var i = 0; i < ids.length; ++i){
			if (document.getElementById(ids[i])){
				this.contentEls.push(new _Element(ids[i], document.getElementById(ids[i])));
			}else{
				this.contentEls.push(null);
			}
		}
	}

	ContentSwitcher.prototype.show = function(id){
		var elm = this.contentEls;
		for (var i = 0; i < elm.length; ++i){
			if (elm[i]){
				if (isNaN(id)){
					if (elm[i].id != id){
						elm[i].hide();
					}else{
						elm[i].show();
					}
				}else{
					if (i != id){
						elm[i].hide();
					}else{
						elm[i].show();
					}
					
				}
			}
		}
	}
	
	ContentSwitcher.prototype.activateDefault = function(index){
		var elm = this.contentEls;
		try{
			elm[index].show();
		}catch(e){
			if (elm.length > 0) elm[0].show();
		}
	}


	function _Element(id, elm){
		this.id = id;
		this.elm = elm;
	}
	
	_Element.prototype.show = function(){
		this.elm.style.display = 'block';
	}

	_Element.prototype.hide = function(){
		this.elm.style.display = 'none';
	}
// <<


