<!--
function textCounter(field, countfield, maxlimit) {
    if (field.value.length > maxlimit) {
        field.value = field.value.substring(0, maxlimit);
    } else {
        countfield.value = maxlimit - field.value.length;
    }
}
//-->


<!--
function tierMenu(TAGID, IMAGEID) {
   var objMenu = document.getElementById(TAGID);
   var objImage = document.getElementById(IMAGEID);
   if (objMenu.style.display == "none")
   {
       objMenu.style.display = ""; 
       objImage.src = "/pix/icons/icon_minus.gif";
   }
   else
   {
       objMenu.style.display = "none";
       objImage.src = "/pix/icons/icon_plus.gif";
   }
}
//-->


<!--
function tierMenuTransition(TAGID, IMAGEID) {
   var objMenu = document.getElementById(TAGID);
   var objImage = document.getElementById(IMAGEID);
   if (objMenu.style.height == "0px")
   {
       objMenu.style.height = "auto"; 
       objImage.src = "/pix/icons/icon_minus.gif";
   }
   else
   {
       objMenu.style.pix = "0px";
       objImage.src = "/pix/icons/icon_plus.gif";
   }
}
//-->


<!--
function tierMenuFrage(TAGID,IMAGEID) {
   var objMenu = document.getElementById(TAGID);
   var objImage = document.getElementById(IMAGEID);

   if (objMenu.style.display == "none")
   {
       objMenu.style.display = "";
       objImage.src = "/pix/icons/icon_answer20_c.gif";
   }
   else
   {
       objMenu.style.display = "none";
       objImage.src = "/pix/icons/icon_question20_c.gif";
   }
}
//-->


<!--
function tierMenuDetailliste(TAGID, IMAGEID) {
   objMenu=document.getElementById(TAGID);
   objImage=document.getElementById(IMAGEID);
   if (objMenu.style.display == "none")
   {
       objMenu.style.display = ""; 
       objImage.src = "../pix/icons/icon_list2_detaillisteminus.gif";
   }
   else
   {
       objMenu.style.display = "none";
       objImage.src = "../pix/icons/icon_list2_detaillisteplus.gif";
   }
}
//-->


<!--
function tierOeffnungszeiten(TAGID, IMAGEID) {
   objMenu=document.getElementById(TAGID);
   objImage=document.getElementById(IMAGEID);
   if (objMenu.style.display == "none")
   {
       objMenu.style.display = ""; 
       objImage.src = "../pix/icons/icon_uhr12_a.gif";
   }
   else
   {
       objMenu.style.display = "none";
       objImage.src = "../pix/icons/icon_uhr12_a.gif";
   }
}
//-->



<!--
function tierMenuInfo(objMenu,objImage)
{
   if (objMenu.style.display == "none")
   {
       objMenu.style.display = "";
       objImage.src = "../pix/icons/icon_info12.gif";
   }
   else
   {
       objMenu.style.display = "none";
       objImage.src = "../pix/icons/icon_info12.gif";
   }
}
//-->


<!--
function tierMenuTermine(objMenu,objImage)
{
   if (objMenu.style.display == "none")
   {
       objMenu.style.display = "";
       objImage.src = "../pix/icons/icon_termine16.gif";
   }
   else
   {
       objMenu.style.display = "none";
       objImage.src = "../pix/icons/icon_termine16.gif";
   }
}
//-->


<!--
function go()
{
	if (document.selecter.select1.options[document.selecter.select1.selectedIndex].value != "none")
	{
	location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value
	}
}
//-->


<!--
function OpenWindow(url, name, width, height)
{
settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=yes,width="+width+",height="+height;
MyNewWindow=window.open(url,name,settings);
}
function OpenWindow_scrollbar(url, name, width, height)
{settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=auto,"+
"resizable=yes,width="+width+",height="+height;
MyNewWindow=window.open(url,name,settings);
}



/*
* OpenWindow_email(): open a new window, set reference on global variable emailWindow 
* CloseWindow_email(): close a window previously opened by OpenWindow_email()
*/

emailWindow = null; //global variable for active emailWindow

function OpenWindow_email(url, name, width, height) {
	settings = "locationbar=no,toolbar=no,location=no,directories=no,";
	settings += "locationbar=no,toolbar=no,location=no,directories=no,";
	settings += "status=no,menubar=no,scrollbars=yes,";
	settings += ("resizable=yes,top=200,left=500,width=" + width + ",height=" + height);
	emailWindow = window.open(url, name, settings);
	if (emailWindow != null) {
		emailWindow.focus();
	}
} //OpenWindow_email

function CloseWindow_email() {
	if (emailWindow != null) {	
		emailWindow.close();
		emailWindow = null;
	}
} //CloseWindow_email




function openWindow900x700(url)
{
	popupWin = window.open(url,'new_page','width=900,height=700,locationbar=no,menubar=no,statusbar=no,toolbar=no,scrollbars=yes,resizable=no')
}

function openWindow900x700_named(url, window_name)
{
	popupWin = window.open(url, window_name,'width=900,height=700,locationbar=no,menubar=no,statusbar=no,toolbar=no,scrollbars=yes,resizable=no')
}

function openWindow700x300_named(url, window_name)
{
	popupWin = window.open(url, window_name,'width=700,height=300,locationbar=no,menubar=no,statusbar=no,toolbar=no,scrollbars=yes,resizable=no')
}

function openWindow900x400_named(url, window_name)
{
	popupWin = window.open(url, window_name,'width=900,height=400,locationbar=no,menubar=no,statusbar=no,toolbar=no,scrollbars=yes,resizable=no')
}

function openWindow900x700ForCMS(url, formname) {
	popupWin = window.open(url,'new_page','width=900,height=700,locationbar=no,menubar=no,statusbar=no,toolbar=no,scrollbars=yes,resizable=no');
	popupWin.focus();
	popupWin.onunload = function() {
	 	RenderPreview(formname);
	}
}

function openWindow980x700ForCMS(url, formname) {
	popupWin = window.open(url,'new_page','width=980,height=700,locationbar=no,menubar=no,statusbar=no,toolbar=no,scrollbars=yes,resizable=no');
	popupWin.focus();
	popupWin.onunload = function() {
	 	RenderPreview(formname);
	}
}

function openWindow1180x900ForCMS(url, formname) {
	popupWin = window.open(url,'new_page','width=1180,height=900,locationbar=no,menubar=no,statusbar=no,toolbar=no,scrollbars=yes,resizable=no');
	popupWin.focus();
	popupWin.onunload = function() {
	 	RenderPreview(formname);
	}
}

function openWindow2(url)
{
	popupWin = window.open(url,'new_page','width=800,height=700,scrollbars=yes,toolbars=no,menubar=no,resizable=no')
}
function openWindow3(url)
{
	popupWin = window.open(url,'new_page','top=150,left=150,width=500,height=300,scrollbars=yes,toolbars=no,menubar=no,resizable=no')
}
function openWindow_notiz(url)
{
	popupWin = window.open(url,'new_page','top=200,left=200,width=330,height=410,scrollbars=no,toolbars=no,menubar=no,resizable=no')
}
function openWindow_kalender(url)
{
	popupWin = window.open(url,'new_page','top=150,left=150,width=330,height=300,scrollbars=no,toolbars=no,menubar=no,resizable=no')
}
function openWindow_verbindungen(url)
{
	popupWin = window.open(url,'new_page','top=150,left=150,width=700,height=400,scrollbars=yes,toolbars=no,menubar=no,resizable=no')
}
function openWindow_FAQ(url)
{
	popupWin = window.open(url,'page_faq','top=200,left=200,width=750,height=500,scrollbars=yes,toolbars=no,menubar=no,resizable=no')
	popupWin.focus();
}
//-->


function AllMessages()
{
for(var x=0;x<document.MI.elements.length;x++)
{ var y=document.MI.elements[x];
if(y.name!='ALLMSGS') y.checked=document.MI.ALLMSGS.checked;
}
}
//-->


<!-- Begin
function validate_time(field) {
var valid = "0123456789:."
var ok = "yes";
var temp;
for (var i=0; i<field.value.length; i++) {
temp = "" + field.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
}
if (ok == "no") {
alert("Keine gültige Zeit!");
field.focus();
field.select();
   }
}
//  End -->




function nudge(list,direction) {
  var length = list.length;
  var temp = new Object();

  if (direction == 'up') {
    for (var i = 0; i < length; i++) {
      if (list[i].selected) {
        for (var n = 0; n < length; n++) {
          if (n == i) {
            if (n > 0) {
              swapListItems(list,n,(n - 1));
            }
          }
        }
      }
    }
  }
  else {
    for (var i = (length - 1); i > -1; i--) {
      if (list[i].selected) {
        for (var n = 0; n < length; n++) {
          if (n == i) {
            if (n < (length - 1)) {
              swapListItems(list,n,(n + 1));
            }
          }
        }
      }
    }
  }
}



function swapListItems(list,a,b) { // swaps item a and b in the given form
  var temp = new Object;

  temp.value = list[b].value;
  temp.text = list[b].text;  
  temp.selected = list[b].selected;

  list[b].value = list[a].value;
  list[b].text = list[a].text;  
  list[b].selected = list[a].selected;

  list[a].value = temp.value;
  list[a].text = temp.text;  
  list[a].selected = temp.selected;
}


function FormSelectAll(formname,selectname) {
var el_collection=eval("document.forms."+formname+"."+selectname)
  for (i = 0; i < el_collection.length; i++)
      el_collection.options[i].selected = true;
}

/* löscht Default-Werte aus HTML-Elementen */
function deleteDefault(element, defaultStr) {
	if(element.value == defaultStr) {
		element.value = "";
		element.style.color = "#000000";
	}
}

function writelength_textarea(quelle, ziel)	{
	laenge = quelle.value.length;
	document.getElementById(ziel).innerHTML = laenge;
}

function change_font_weight(feld)
{
	div_feld_name = feld.name + "_div";
	div_obj = document.getElementById(div_feld_name);
	if (feld.checked == true)
	{
		div_obj.style.fontWeight = "bold";
	}
	else
	{
		div_obj.style.fontWeight = "normal";
	}
}

function checkAll(eingabe, rufer) {
	var len = document.getElementsByName(eingabe).length;
	for(i=0; i<len; i++) {
		document.getElementsByName(eingabe)[i].checked = true;
	}
	document.getElementById(rufer).onchange = function() {uncheckAll(eingabe, rufer)};
}

function uncheckAll(eingabe, rufer) {
	var len = document.getElementsByName(eingabe).length;
	for(i=0; i<len; i++) {
		document.getElementsByName(eingabe)[i].checked = false;
	}
	document.getElementById(rufer).onchange = function() {checkAll(eingabe, rufer)};
}
function openCalender(inputId, formId) {
	var actual_date = document.getElementById(inputId).value;
	newWindow = window.open("/calendar.asp?formname=" + formId + "&formfieldname=" + inputId + "&datum=" + actual_date + "", "Calendar", "width=300,height=300,left=100,top=100");
 		newWindow.focus();
}

function openColorPicker(remoteUrl, formname, formfieldname, targetId, lastColors, forCMS) {
               this_color = document.getElementById(formfieldname).value;
               this_color = this_color.substring(1);
               var openStr = remoteUrl;
               openStr += "?formname=";
               openStr += formname;
               openStr += "&formfieldname=";
               openStr += formfieldname;
               openStr += "&color=";
               openStr += this_color;
               openStr += "&targetId=";
               openStr += targetId;
               openStr += "&last="
               openStr += lastColors;
               var windowStr = "colorWindow";
               var styleStr = "width=570, height=355, left=100, top=200";
               colorWindow = window.open(openStr, windowStr, styleStr);
               colorWindow.focus();
				 if(forCMS > 0) {
				 	colorWindow.onunload = function() {
				 		RenderPreview(formname);
				 	}
				 }
} //openColorPicker


function OpenMax(newUrl, newName) {
	var newWindow;
	var optionStr;
	optionStr = "left=0,top=0,width=200,height=200,";
	optionStr+= "location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no"
	newWindow = window.open(newUrl, newName, optionStr);	
	newWindow.moveTo(0,0);
	newWindow.resizeTo(screen.availWidth, screen.availHeight);
	newWindow.focus();
} //OpenMax


function GetXmlHttpObject() {
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
} //GetXmlHttpObject

	
function ShowTarget(targetId, methodName) {
	StartAjaxOnMouseOverResponder(targetId, methodName);
}


function HideTarget(targetId) {
	document.getElementById(targetId).style.display = "none";
}


function StartAjaxOnMouseOverResponder(targetId, methodName) {
		
	var xmlhttp = null;
	xmlhttp = GetXmlHttpObject();
	
	if (xmlhttp == null) {
		alert("An error occured while fetching XmlHttpRequest object!");
	} else {
		var url = "/onmouseover_responder.asp";
		xmlhttp.onreadystatechange = function() {
			if(xmlhttp.readyState == 4) {
				if(xmlhttp.responseText == "no") {
					//error occured
				} else {
					document.getElementById(targetId).style.display = "inline";
					document.getElementById(targetId).innerHTML = xmlhttp.responseText;
				}
			}
		} //function onreadystatechange
		xmlhttp.open("POST", url, true);
		var rand = Math.random();
		xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlhttp.send("random=" + rand + "&method=" + methodName);
	} //if...else					
	} //StartAjax

	
function InsertIntoTextarea(textareaId, newText) {
               var currTextarea = document.getElementById(textareaId);
               var currText = currTextarea.value;
               if(typeof document.selection != 'undefined') {
                               //for IE: not implemented yet
               } else if (typeof document.getElementById(textareaId).selectionStart != 'undefined') {
                               //for Firefox:
                               var currStart = currTextarea.selectionStart;
                               var currEnd = currTextarea.selectionEnd;
                               var textBefore = currText.substring(0, currStart);
                               var textAfter = currText.substring(currEnd);
                               currTextarea.value = textBefore + newText + textAfter;
                               currTextarea.focus();
                               currTextarea.selectionStart = (currStart + newText.length);
                               currTextarea.selectionEnd = (currStart + newText.length);        
               } else {
                               //for others: not implemented yet
               }
}


function InsertIntoTextareaWindowOpener(textareaId, newText) {
               var currTextarea = window.opener.document.getElementById(textareaId);
               var currText = currTextarea.value;
               if(typeof window.opener.document.selection != 'undefined') {
                               //for IE: not implemented yet
               } else if (typeof window.opener.document.getElementById(textareaId).selectionStart != 'undefined') {
                               //for Firefox:
                               var currStart = currTextarea.selectionStart;
                               var currEnd = currTextarea.selectionEnd;
                               var textBefore = currText.substring(0, currStart);
                               var textAfter = currText.substring(currEnd);
                               currTextarea.value = textBefore + newText + textAfter;
                               currTextarea.focus();
                               currTextarea.selectionStart = (currStart + newText.length);
                               currTextarea.selectionEnd = (currStart + newText.length);        
               } else {
                               //for others: not implemented yet
               }
}

function MakeTableRowsHighlightOnMouseOver(tableId, onColor, offColor, exClass) {
	var tableToConvert = document.getElementById(tableId);
	
	for(var i=0; i<tableToConvert.tBodies[0].rows.length; i++) {
		var actualRow = tableToConvert.tBodies[0].rows[i];
		var actualCells = actualRow.cells;
		
		for(var j=0; j<actualRow.cells.length; j++) {
			
			
			if(actualRow.cells[j].addEventListener) {
				//Firefox, Chrome, Safari
				//add onmouseover function
				
				
				//actualRow.cells[j].originalColor = actualRow.cells[j].style.backgroundColor;
				//alert(actualRow.cells[j].originalColor);
				
				actualRow.cells[j].addEventListener("mouseover", function() {
					var parentRow = this.parentNode;					
					var parentRowParent = parentRow.parentNode;
					
					//deselect all
					for(var x=0;x<parentRowParent.rows.length;x++) {
						var currRow = parentRowParent.rows[x];
						if(currRow.className != exClass) {
							currRow.style.backgroundColor = offColor;
							for(var y=0;y<currRow.cells.length;y++) {
								currRow.cells[y].style.backgroundColor = offColor;
							}
						}
					}
					
					//highlight active
					if(parentRow.className != exClass || exClass == "") {
						parentRow.style.backgroundColor = onColor;
						for(var x=0; x<parentRow.cells.length;x++) {
							parentRow.cells[x].style.backgroundColor = onColor;
						}
					}
				}, false);
				
			} else {
				//IE
				//add onmouseover function
				actualRow.cells[j].attachEvent("onmouseover", function() {
					var ev = window.event;
					ev.cancelBubble = true;
					var parentRow = ev.srcElement.parentNode;
					
					var parentRowParent = parentRow.parentNode;
					
					//deselect all
					for(var x=0;x<parentRowParent.rows.length;x++) {
						var currRow = parentRowParent.rows[x];
						if(currRow.className != exClass) {
							currRow.style.backgroundColor = offColor;
							for(var y=0;y<currRow.cells.length;y++) {
								currRow.cells[y].style.backgroundColor = offColor;
							}
						}
					}
					
					//highlight active
					if(parentRow.className != exClass || exClass == "") {
						parentRow.style.backgroundColor = onColor;
						for(var x=0; x<parentRow.cells.length;x++) {
							parentRow.cells[x].style.backgroundColor = onColor;
						}
					}
				});
									
			} //if ... else
						
		} //for ... cells
		
 		} //for ... rows
	
} //MakeTableRowsHighlightOnMouseOver




function ShowFadeoutMessage(fadeText, fadeClass, fadeWidth, fadeOffsetY, fadeAlignment, fadeTime) {
	
	var elementNode = document.createElement("div");
		elementNode.id = "fadeMessage";
		elementNode.className = fadeClass;
		elementNode.style.width = fadeWidth + "px"; 
		elementNode.style.textAlign = fadeAlignment;
		elementNode.style.position = "absolute";
		elementNode.style.top = fadeOffsetY + "px";
		elementNode.style.marginLeft = -(fadeWidth / 2) + "px";
		elementNode.style.left = "50%";
				
	var fadeTextNode = document.createTextNode(fadeText);
	elementNode.appendChild(fadeTextNode);			
	
	document.body.appendChild(elementNode);
			
	elementNode.fadeTimeLeft = fadeTime;
  		
	setTimeout("animateFade(" + new Date().getTime() + ", 'fadeMessage', " + fadeTime + ")", 33);  
} //fade


function animateFade(lastTick, eId, fadeTime) {  
			var curTick = new Date().getTime();
			var elapsedTicks = curTick - lastTick;

			var element = document.getElementById(eId);

			if(element.fadeTimeLeft <= elapsedTicks) {
  			element.style.opacity = '0';
  			element.style.filter = 'alpha(opacity = 0)';
		element.style.visibility = 'hidden';
		
		//remove fadeElement from DOM when done
		if(element.parentNode != null) {
			var par = element.parentNode;
			par.removeChild(element);
		}

  			return;
			} //if

			element.fadeTimeLeft -= elapsedTicks;
			var newOpVal = element.fadeTimeLeft/fadeTime;

			element.style.opacity = newOpVal;
			element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')';

			setTimeout("animateFade(" + curTick + ",'" + eId + "', " + fadeTime + ")", 33);
} //animateFade


function toggleSelectStyle(selectId, optionId) {
	selectElement = document.getElementById(selectId);
	optionElement = document.getElementById(optionId);
	
	//get and set class
	selectElement.className = optionElement.className;
	
	//get and set other style attributes
	for(var i=0;i<optionElement.style.length;i++) {
		var propOption = optionElement.style[i];
		var propOptionValue = optionElement.style.getPropertyValue(propOption);
		var propOptionPriority = optionElement.style.getPropertyPriority(propOption);
		selectElement.style.setProperty(propOption, propOptionValue, propOptionPriority);
	} //for 		
	selectElement.blur();
} //toggleSelectStyle








	var xmlhttp_intellisense = null;
	var openedIntellisense = null;
	var targetedIntelligent = null;
	
	function InsertValueAndClose(elementId, intellisenseId, event) {
		if(event.which) {
			if(event.which == 13 || event.which == 9) {
				document.getElementById(elementId).value = document.getElementById(elementId + "_select").options[document.getElementById(elementId + "_select").selectedIndex].value; 
				CloseIntellisenseWindow(document.getElementById(intellisenseId));
				event.cancelBubble = true;
			}
		} else {
			event = window.event;
			if(event.keyCode == 13 || event.keyCode == 9) {
				document.getElementById(elementId).value = document.getElementById(elementId + "_select").options[document.getElementById(elementId + "_select").selectedIndex].value; 
				CloseIntellisenseWindow(document.getElementById(intellisenseId));
				event.cancelBubble = true;
				document.getElementById(elementId).focus();
			}
		}
	} //InsertValueAndClose
	
		
	function OpenIntellisenseWindow(intelligent, intellisense, elementHeight, queryTable, queryColumn, bereich_id, subbereich_id, berufsgruppe, geschlecht, intelligentWidth, maxValues) {
			
		xmlhttp_intellisense = null;
		xmlhttp_intellisense = GetXmlHttpObject();
		
		if (xmlhttp_intellisense == null) {
			//alert("An error occured while fetching XmlHttpRequest object!");
		} else {
			var url = "/intellisense_responder.asp";
			xmlhttp_intellisense.onreadystatechange = function() {
				if(xmlhttp_intellisense.readyState == 4) {
					if(xmlhttp_intellisense.responseText == "no") {
						CloseIntellisenseWindow(intellisense);
					} else {
						openedIntellisense = intellisense;
						targetedIntelligent = intelligent;
						intelligent.parentNode.style.position = "relative";
						if(browserStr == "safari" || browserStr == "chrome") {
							//leave it where it is
							intellisense.style.marginTop = -2;
						} else {
							intellisense.style.left = intelligent.offsetLeft;
							intellisense.style.top = (intelligent.offsetTop + intelligent.offsetHeight);
						}
						intellisense.style.display = "block";					
						intellisense.innerHTML = xmlhttp_intellisense.responseText;
					}
				}
			}
			
			xmlhttp_intellisense.open("POST", url, true);
			var rand = Math.random();
			xmlhttp_intellisense.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			xmlhttp_intellisense.send("random=" + rand + "&elementId=" + intelligent.id + "&intellisenseId=" + intellisense.id + "&value=" + intelligent.value + "&queryTable=" + queryTable + "&queryColumn=" + queryColumn + "&bereich_id=" + bereich_id + "&subbereich_id=" + subbereich_id + "&berufsgruppe=" + berufsgruppe + "&geschlecht=" + geschlecht + "&width=" +intelligentWidth + "&height=" + elementHeight + "&maxValues=" + maxValues);
		}
						
	} //OpenIntellisenseWindow
	

function GetXmlHttpObject() {
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
} //GetXmlHttpObject

	
function CloseIntellisenseWindow(intellisense, intelligent) {
	intellisense.style.display = "none";
	if(intelligent != null) {
		intelligent.parentNode.style.position = "static";
	}
	targetedIntelligent = null;
	openedIntellisense = null;
} //CloseIntellisenseWindow


function CloseCurrentIntellisenseWindow() {
	if(openedIntellisense != null) {
		CloseIntellisenseWindow(openedIntellisense, targetedIntelligent);
	}
} //CloseCurrentIntellisenseWindowButMine


function GetBrowserString() {
	var userAgentStr = navigator.userAgent;
	var browserStr = "unknown";
	if(userAgentStr.indexOf("MSIE") > 0) {
		//IE
		browserStr = "ie";
	} else if(userAgentStr.indexOf("Firefox") >= 0) {
		//Firefox
		browserStr = "firefox";
	} else if(userAgentStr.indexOf("Chrome") >= 0) {
		//Chrome
		browserStr = "chrome";
	} else if(userAgentStr.indexOf("Safari") >= 0) {
		//Safari
		browserStr = "safari";
	} else if(userAgentStr.indexOf("Opera") >= 0) {
		//Opera
		browserStr = "opera";
	}
	return browserStr;
} //GetBrowserString



function Udetails(pageName) {

	var xmlhttp_noscript = null;
	xmlhttp_noscript = GetXmlHttpObject();
	
	if (xmlhttp_noscript != null) {
		var url = "/udetails.asp";
		xmlhttp_noscript.onreadystatechange = function() {
			if(xmlhttp_noscript.readyState == 4) {
				document.getElementById("myDiv").innerHTML = xmlhttp_noscript.responseText;
			}
		} //function onreadystatechange
		xmlhttp_noscript.open("POST", url, true);
		var d = new Date();
		var timestamp = d.getTime();
		var c = "";
		if(navigator.cookieEnabled) {
			c = "enabled";
		} else {
			c = "disabled";
		}
		xmlhttp_noscript.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlhttp_noscript.send("timestamp=" + timestamp + "&page_name=" + pageName + "&screen_x=" + screen.width + "&screen_y=" + screen.height + "&cookie_enabled=" + c);
	}
} //LogNoscript


function styleToggle(b) { 
	for (var i = 0; i< b.form.length; i++) 
	{ if (b.form[i].name == b.name) 
		{ b.form[i].parentNode.style.color = b.form[i].checked? '#000000' : ''; }
	
	} 
} 



