var Puffer = '';
var g_count;
var g_iFrame;
var g_objFrame;
var g_Timer=null;
var g_sourceField;
var g_IE7=false;
var g_IE6=false;
var g_IE5=false;
var g_IE=false;
var g_blnProcessFrame=false;
var g_ActualSectionName='';
var g_NextSectionName='';

var g_blnShowActionMenu=false;
var	g_strID='';
var	g_strTreeFolderId='';
var	g_strIDCopy='';
var	g_strIDPrevent='';
var	g_strPage='';
var g_strKey='';
var	g_strSearchstring='';
var g_strSort='';
var g_strSortDirection='';
var g_strSortDatatype='';
var g_strRecord='';
var g_strStartpage='';
var g_strXMLStyle='';
var g_strSelection='';
var g_strSearch1='';
var g_strSearch2='';
var g_strSearch3='';
var g_strSearch4='';
var g_strSearch5='';
var g_strSearch6='';
var g_strSearch7='';
var g_strSearch8='';
var g_strSearch9='';
var g_strSearch10='';
var g_strSearch11='';
var g_strSearch12='';
var g_strSearch13='';
var g_strSearch14='';
var g_strSearch15='';
var g_strSearch16='';
var g_strSearch17='';
var g_strSearch18='';
var g_strSearch19='';

//httpRequest globales Objekt instanzieren
var httpRequest = null;
if (window.XMLHttpRequest) {
	httpRequest = new XMLHttpRequest();
}else if (window.ActiveXObject) {
	httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}

var strUserAgent=navigator.userAgent;
if(strUserAgent.indexOf('MSIE')>-1)g_IE=true;
if(strUserAgent.indexOf('MSIE 7')>-1){
	g_IE7=true;
}else if(strUserAgent.indexOf('MSIE 6')>-1){
	g_IE6=true;
}else if(strUserAgent.indexOf('MSIE 5')>-1){
	g_IE5=true;
}

function selectfiles(feldname,typ,burl){
	windowHandler = window.open('/include/ressourcen.asp?BURL='+burl+'&Typ='+typ+'&Aktion=AW','Fenster1','resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width=520,height=450');
  	if (windowHandler	.opener == null) windowHandler.opener = self;
  	if (!windowHandler.opener) windowHandler.opener = self;  	
	vPolling = window.setInterval("selectfiles_insert('"+feldname+"')",300);	 
}

function selectfiles_insert(feldname){
	if (windowHandler){
		if (windowHandler.closed) {
			window.clearInterval(vPolling);
			if (Puffer.length > 0){
				eval("document.Formular."+feldname+".value = Puffer");
			}
			Puffer = '';		
		}
	}
	else{
		window.clearInterval(vPolling);
	}
}

function showIFrame(iframeName,f,id,source,width,height,offsetWidth,offsetHeight,sourcefield,mode){
	if(document.all) window.event.cancelBubble = true;
	var strOffset='';
	var offsetX=1;
	var offsetY=1;
	var offsetParentX=0;
	var offsetParentY=0;
	var blnCanReverseX=false;
	var blnCanReverseY=false;
	HideAllFrames();
	if(iframeName=='')iframeName='iframe';
	g_iFrame=document.getElementById(iframeName);
	if(typeof(offsetWidth)=='undefined')offsetWidth=0;
	if(typeof(offsetHeight)=='undefined')offsetHeight=0;
	if(typeof(g_iFrame)!='undefined' && g_iFrame!=null){
		var strValue='';
		if(typeof(sourcefield)!='undefined'){
			if(sourcefield.value!=null)strValue=sourcefield.value;
		}
		if(mode=='sublist'){
			offsetParentX=80;
			offsetParentY=-10;
		}else{
			offsetParentX=getElementPosX(f); //absolute XPosition des angeklickten Elements
			offsetParentY=getElementPosY(f); //absolute YPosition des angeklickten Elements
		}
		
		var framex=width; 	//Breite des IFrames
		var framey=height;	//Höhe des IFrames
		var posx; //XPosition, ab der IFrame beginnen soll
		var posy; //YPosition, ab der IFrame beginnen soll
		var windowx; //Breite des Browserfensters
		var windowy; //Höhe des Browserfensters
		var scrollX; //Anzahl Pixel links rausgescrollt
		var scrollY; //Anzahl Pixel oben rausgescrollt
		
		scrollX=window.pageXOffset; 	//Mozilla
		scrollY=window.pageYOffset;		//Mozilla
		if(typeof(scrollX)=='undefined'){
			//IE
			scrollX=document.body.scrollLeft;
			scrollY=document.body.scrollTop;
		}
		if(typeof(scrollX)=='undefined'){
			//IE standardkonformer Modus
			scrollX=document.documentElement.scrollLeft;
			scrollY=document.documentElement.scrollTop;
		}
		
		posx=offsetParentX+f.offsetLeft-framex;
		posy=offsetParentY+f.offsetTop;
		
		windowx=window.innerWidth; 	//Mozilla
		windowy=window.innerHeight;	//Mozilla
		if(typeof(windowx)=='undefined'){
			//IE
			windowx=document.body.clientWidth;
			windowy=document.body.clientHeight;
		}
		if(typeof(windowx)=='undefined'){
			//IE standardkonformer Modus
			windowx=document.documentElement.clientWidth;
			windowy=document.documentElement.clientHeight;
		}
		
		//Test, ob IFrame in X und Y-Richtung umklappbar ist?
		if(posx+framex-scrollX < windowx)blnCanReverseX=true;
		if(posy-framey-scrollY > 0)blnCanReverseY=true;
		
		//passt IFrame per default in aktuelle X-Position --> wenn nicht, umklappen
		if(posx-scrollX +offsetWidth < 0){
			if(blnCanReverseX)posx=posx+framex+offsetWidth;
		}else{
			posx=posx+offsetWidth;
		}
		
		//passt IFrame per default in aktuelle Y-Position --> wenn nicht, umklappen
		if(posy+framey-scrollY+offsetHeight > windowy){
			if(blnCanReverseY)posy=posy-framey+offsetHeight;
		}else{
			posy=posy+offsetHeight;
		}
		
		g_iFrame.style.width=framex;
		g_iFrame.style.height=framey;
		var strSuffix='';
		
		if(source.indexOf('?')==-1){
			strSuffix='?selection='+strValue;
		}else{
			strSuffix='&selection='+strValue;
		}
		
		if(typeof(sourcefield)!='undefined')g_sourceField=sourcefield;
		g_iFrame.src=source+strSuffix;
		g_iFrame.style.visibility='visible';
		g_iFrame.style.verticalAlign='top';
		g_iFrame.style.textAlign='left';
		g_iFrame.style.margin='0px';
		g_iFrame.style.padding='0px';
		g_iFrame.style.top=posy;
		g_iFrame.style.left=posx;
		g_iFrame.style.borderStyle='solid';
		g_iFrame.style.borderWidth='1px';
		g_iFrame.style.borderColor='#333';
		//wenn JS-Funktion init() existiert, dann starten
		g_objFrame=window.frames[iframeName];
		g_count=0;
		g_Timer=window.setTimeout("checkReadyState()",100);
	}
}

function checkReadyState(){
	if(g_iFrame.readyState!='complete'){
		g_count++;
		g_Timer=window.setTimeout("checkReadyState()", 100);
	}else{
		window.clearTimeout(g_Timer);
		if(typeof(g_objFrame.start)=='function')g_objFrame.start(g_sourceField);
	}
	if(g_count>5){
		window.clearTimeout(g_Timer);
		if(typeof(g_objFrame.start)=='function')g_objFrame.start(g_sourceField);
	}
}

function HideAllFrames(){
	var colDiv=document.getElementsByTagName('div');
	for(var i=0;i < colDiv.length;i++){
		if(colDiv[i].id.indexOf('divDatePicker')>-1){colDiv[i].style.visibility='hidden';}
		if(colDiv[i].id.indexOf('helpdiv_')>-1){colDiv[i].style.display='none';}
	}
	var colFrame=document.getElementsByTagName('iframe');
	for(var i=0;i < colFrame.length;i++){
		if(colFrame[i].id.indexOf('iframe')>-1){colFrame[i].style.visibility='hidden';}
	}
}

function MouseOutMenu(Item) 
{
	var MenuItem = document.getElementById(Item);
	MenuItem.style.backgroundColor= "";
	MenuItem.style.cursor= "";
}

function MouseOverMenu(Item) 
{
  var MenuItem = document.getElementById(Item);
  MenuItem.style.backgroundColor= "#eee";		
	MenuItem.style.cursor= "pointer";
}

function MouseOverRow(obj){
	obj.style.backgroundColor= "#eee";
}
function MouseOutRow(obj){
	obj.style.backgroundColor= "";
}

function MouseOverTab(obj,strStyle){
	if(strStyle=='')strStyle='gold';
	obj.style.backgroundImage="url(/include/extensions/xmlliste/images/tab_topmenu_"+strStyle+"_active.jpg)";
}
function MouseOutTab(obj,strStyle){
	if(strStyle=='')strStyle='gold';
	obj.style.backgroundImage="url(/include/extensions/xmlliste/images/tab_topmenu_"+strStyle+".jpg)";
}

function ml_doSearch(field,seite,xmlstyle) {
	var parameterstring='';
	var delimiter='';	
	var searchstring=field.value;
	var strTest='';
	var arrSearch=searchstring.split(' ');
	for(var i=0;i<arrSearch.length && i<6;i++){
		if(i>0)delimiter='&';
		strTest=arrSearch[i].match(/\d\d\.\d\d\.\d\d\d\d/);
		if(strTest!=null){
			strTest=strTest[0];
			if(strTest.length==10){
				strTest=strTest.substr(6,4)+strTest.substr(3,2)+strTest.substr(0,2)
				arrSearch[i]=strTest;
			}
		}
		parameterstring+=delimiter+'search'+(i+1)+'='+arrSearch[i]+delimiter+'&xmlstyle='+xmlstyle;
		
	}
	window.location.href=seite+"?"+parameterstring;
}

function selectSection(sectionname){
	blnLookupNextSection=false;
	if(sectionname=='select_nextsection'){
		//Weiterblättern zur nächsten Section
		sectionname=g_NextSectionName.replace(/section_/gi,'');
	}else{
		sectionname=sectionname.replace(/section_/gi,'');
	}
	var arrSection=document.getElementsByTagName('tr');
	for(var i=0;i<arrSection.length;i++){
		if(arrSection[i].id!=null){
			if(arrSection[i].id.indexOf('section_')==0){
				if(arrSection[i].id=="section_"+sectionname){
					arrSection[i].style.display='';
					//displayChildren(arrSection[i],'');
				}else{
					arrSection[i].style.display='none';
					//displayChildren(arrSection[i],'none');
				}
			}
		}
	}
	
	var arrTabs=document.getElementsByTagName('a');
	for(i=0;i<arrTabs.length;i++){
		if(arrTabs[i].id!=null){
			if(arrTabs[i].id.indexOf('section_')==0){
				if(arrTabs[i].id=="section_"+sectionname){
					arrTabs[i].className='XMLListe_topnav_link_blue_active';
					blnLookupNextSection=true;
				}else{
					arrTabs[i].className='XMLListe_topnav_link_blue';
					if(blnLookupNextSection){g_NextSectionName=arrTabs[i].id; blnLookupNextSection=false;}
				}
			}
		}
	}
	g_ActualSectionName=sectionname;
	if(g_NextSectionName.replace(/section_/gi,'')==g_ActualSectionName){
		//letzte Section erreicht
		el=document.getElementById('a_next');if(el!=null)el.style.display='none';
		el=document.getElementById('a_finish');if(el!=null)el.style.display='block';
	}
}

function displayChildren(el,strDisplay){
	el.style.display=strDisplay;
	for(var i=0;i<el.children.length;i++){
		el.children[i].style.display=strDisplay;
		//displayChildren(el.children[i],strDisplay);
	}
}

function navigateToUrl(strUrl,strTarget,width,height){
	if(typeof(strTarget)=='undefined')strTarget="_self";
	if(strTarget.length==0)strTarget="_self";
	switch(strTarget){
		case "_self":
			location.href=strUrl;
			break;
		case "_blank":
			if(typeof(width)=='undefined'){var width=650;}
  			if(typeof(height)=='undefined'){var height=700;}
			openerTemp = window.open(strUrl,'','width='+width+',height='+height+',scrollbars,resizable,dependent=yes,left=100,top=0');
			break;
	}
}

//Cursor Bibliothek

function getScrollPosX(elWindow){
	if(typeof(elWindow.pageXOffset)!='undefined'){
		return elWindow.pageXOffset;
	}else if(typeof(elWindow.document.body.scrollLeft)!='undefined'){
		return elWindow.document.body.scrollLeft;
	}else if(typeof(elWindow.document.documentElement.scrollLeft)!='undefined'){
		return elWindow.document.documentElement.scrollLeft;
	}
}

function getScrollPosY(elWindow){
	if(typeof(elWindow.pageYOffset)!='undefined'){
		return elWindow.pageYOffset;
	}else if(typeof(elWindow.document.body.scrollTop)!='undefined'){
		return elWindow.document.body.scrollTop;
	}else if(typeof(elWindow.document.documentElement.scrollTop)!='undefined'){
		return elWindow.document.documentElement.scrollTop;
	}
}

function getWindowWidth(elWindow){
	var ret;
	ret=elWindow.clientWidth;
	if(ret==null)ret=elWindow.document.body.clientWidth;
	if(ret==null)ret=elWindow.document.documentElement.body.clientWidth;
	return ret;
}

function getWindowHeight(elWindow){
	var ret;
	ret=elWindow.clientHeight;
	if(ret==null)ret=elWindow.document.body.clientHeight;
	if(ret==null)ret=elWindow.document.documentElement.body.clientHeight;
	return ret;
}


function getElementPosX(el,offset){
	var strOffset='';
	var offset=1;
	var offsetSum=0;
	if(typeof(offset)!='undefined')offsetSum=offset;
	if(el!=null){
		strOffset='el';
		while (offset!=0){
			strOffset+='.offsetParent';
			eval("offset="+strOffset+".offsetLeft");
			offsetSum+=offset;
		}
	}
	return offsetSum;
}

function getElementPosY(el,offset){
	var strOffset='';
	var offset=1;
	var offsetSum=0;
	if(typeof(offset)!='undefined')offsetSum=offset;
	if(el!=null){
		strOffset='el';
		var elParent=el;
		var parentScroll=0;
		while (elParent!=null){
			elParent=elParent.offsetParent;
			if(elParent!=null){
				strOffset+='.offsetParent';
				eval("offset="+strOffset+".offsetTop");
				offsetSum+=offset;
				parentScroll=elParent.scrollTop;
				if(parentScroll>0){
					if(elParent.offsetParent!=null){					
						offsetSum-=parentScroll;
					}
				}
			}
		}
	}
	return offsetSum;
}

function getCursorPositionX(event){
	var blnIE=true;	if(typeof(event)!='undefined'){if(event.pageY!=null)blnIE=false;}
	if (blnIE){
		if (window.event == null) { return; }
		return window.event.clientX + document.body.scrollLeft;
	}else{ 
		return Ereignis.pageX;
	}
}

function getCursorPositionY(event){
	var blnIE=true;	if(typeof(event)!='undefined'){if(event.pageY!=null)blnIE=false;}
	if (blnIE){
		if (window.event == null) { return; }
		return window.event.clientY + document.body.scrollTop;
	}else{ 
		return Ereignis.pageY;
	}
}

//XML Bibliothek
function getXMLDoc(strXML){
	if (window.ActiveXObject){
		var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		xmlDoc.loadXML(strXML);
		return xmlDoc;
	}else if(document.implementation) {
		var xmlDoc = (new DOMParser()).parseFromString(strXML, "text/xml");
		return xmlDoc;
	}
}

function getXMLNode(xmlNode,strXPath){
	if (window.ActiveXObject) {
		return xmlNode.selectSingleNode(strXPath);
	}else if (window.XPathEvaluator) {
		var ev = new XPathEvaluator();
		var xmlNodeReturn = ev.evaluate(strXPath,xmlNode,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);
		return xmlNodeReturn.singleNodeValue;
	}
}

function getXMLNodeList(xmlNode,strXPath){
	var nodeList = [];
	if (window.ActiveXObject) {
		nodeList = xmlNode.selectNodes(strXPath);
	}else if (window.XPathEvaluator) {
		var ev = new XPathEvaluator();
		var iterator = ev.evaluate(strXPath,xmlNode,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);
		var xmlNode;
		while (xmlNode = iterator.iterateNext()) {
			nodeList[nodeList.length] = xmlNode;
		}
	}
	return nodeList;
}

function transformXMLToString(xmlDoc,strXSLFile,objParameters){
	if (window.ActiveXObject) {
		var xsl = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
		xsl.async = false;
		xsl.load(strXSLFile);
		var template = new ActiveXObject("MSXML2.XSLTemplate");
		template.stylesheet = xsl;
		var processor = template.createProcessor();
		processor.input = xmlDoc;
		for(var strParameter in objParameters){
			var strValue=eval("objParameters."+strParameter);
			processor.addParameter(strParameter, strValue);
		}
		processor.transform();
		return processor.output.replace(/<\?xml version=\"1.0\" encoding=\"UTF-16\"\?>/gi,'');
	}else if (window.XSLTProcessor) {
		var xsl = document.implementation.createDocument("", "", null);
		xsl.async = false;
		xsl.load(strXSLFile);
		var processor = new XSLTProcessor();
		processor.importStylesheet(xsl);
		for(var strParameter in objParameters){
			var strValue=eval("objParameters."+strParameter);
			processor.setParameter(null,strParameter,strValue);
		}
		var documentFragment = processor.transformToFragment(xmlDoc,document);
        var xmlSerializer = new XMLSerializer();  
        return xmlSerializer.serializeToString(documentFragment); 		
	}
}

function transformXMLToDocFragment(xmlDoc,strXSLFile){
	if (window.ActiveXObject) {
		var xsl = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
		xsl.async = false;
		xsl.load(strXSLFile);
		var template = new ActiveXObject("MSXML2.XSLTemplate");
		template.stylesheet = xsl;
		var processor = template.createProcessor();
		processor.input = xmlDoc;
		for(var strParameter in objParameters){
			var strValue=eval("objParameters."+strParameter);
			processor.addParameter(strParameter, strValue);
		}
		var div = document.createElement("div");
		processor.transform();
		div.innerHTML=processor.output.replace(/<\?xml version=\"1.0\" encoding=\"UTF-16\"\?>/gi,'');
		return div.firstChild;
	}else if (window.XSLTProcessor) {
		var xsl = document.implementation.createDocument("", "", null);
		xsl.async = false;
		xsl.load(strXSLFile);
		var processor = new XSLTProcessor();
		processor.importStylesheet(xsl);
		return processor.transformToFragment(xmlDoc,document);
	}
}

function encodeXML(strXML){
	//strXML=strXML.replace(/</gi,'&lt;');
	//strXML=strXML.replace(/>/gi,'&gt;');
	strXML=strXML.replace(/\f/,'');
	strXML=strXML.replace(/\n/,'');
	strXML=strXML.replace(/\r/,'');
	strXML=strXML.replace(/\t/,'');
	strXML=strXML.replace(/\v/,'');
	return strXML;
}

//V4 Styles

function action_edit(){
	var url='/include/extensions/xmlliste/xmlliste.asp?action=editform&entryid='+g_strID+'&sourcepage='+g_strPage+'&key='+g_strKey+g_strSearchstring;
	mledit = window.open(url,'Edit','width=800,height=800,scrollbars,resizable,dependent=yes,left=120,top=0');
}
function action_newentry(){
	var url='/include/extensions/xmlliste/xmlliste.asp?action=editform&entryid=new&sourcepage='+g_strPage+'&key='+g_strKey+g_strSearchstring;
	mledit = window.open(url,'Edit','width=800,height=800,scrollbars,resizable,dependent=yes,left=120,top=0');
}
function action_copy(){
	var requeststring=location.search;
	if(requeststring.indexOf('?')==-1)requeststring+='?';
	if(requeststring.indexOf('&action=copy')==-1)requeststring+='&action=copy';
	if(requeststring.indexOf('&entryidcopy=')!=-1)requeststring=requeststring.replace(/entryidcopy=/gi,'entryidold=');
	requeststring+='&entryidcopy='+g_strID;
	location.href=g_strPage+requeststring;
}
function action_paste(){
	if(typeof(g_strIDCopy)!='undefined' && g_strIDCopy!=''){
		var url='/include/extensions/xmlliste/xmlliste.asp?action=editform&command=paste&entryid=new&sourcepage='+g_strPage+'&key='+g_strKey+g_strSearchstring;
		mledit = window.open(url,'Edit','width=800,height=800,scrollbars,resizable,dependent=yes,left=120,top=0');
	}
}
function action_delete(){
	delete_entry(g_strID,g_strSort,g_strSortDirection,g_strSortDatatype,g_strRecord,g_strStartpage,g_strXMLStyle,g_strSelection,g_strSearch1,g_strSearch2,g_strSearch3,g_strSearch4,g_strSearch5,g_strSearch6,g_strSearch7,g_strSearch8,g_strSearch9,g_strSearch10,g_strSearch11,g_strSearch12,g_strSearch13,g_strSearch14,g_strSearch15,g_strSearch16,g_strSearch17,g_strSearch18,g_strSearch19,g_strIDCopy,g_strIDPrevent,g_strTreeFolderId);
}
function showactionmenu(strMenu,f,strID,strPage,strKey,strSearchstring,strSort,strSortDirection,strSortDatatype,strRecord,strStartpage,strXMLStyle,strSelection,strSearch1,strSearch2,strSearch3,strSearch4,strSearch5,strSearch6,strSearch7,strSearch8,strSearch9,strSearch10,strSearch11,strSearch12,strSearch13,strSearch14,strSearch15,strSearch16,strSearch17,strSearch18,strSearch19,strIDCopy,strTreeFolderId){
	if(strMenu=='entry'){HideActionMenu('newentry')}else{HideActionMenu('entry')}
	g_blnShowActionMenu=true;
	g_strID=strID;
	g_strPage=strPage;
	g_strKey=strKey;
	g_strSearchstring=strSearchstring;
	g_strSort=strSort;
	g_strSortDatatype=strSortDatatype;
	g_strSortDirection=strSortDirection;
	g_strRecord=strRecord;
	g_strStartpage=strStartpage;
	g_strXMLStyle=strXMLStyle;
	g_strSelection=strSelection;
	var offsetParentX=calculatePosLeft(f,103)
	var offsetParentY=calculatePosTop(f,191)
	var el=document.getElementById('actionmenu_'+strMenu);
	if(el!=null){
		if(strMenu=='newentry'){el.style.top=offsetParentY-80;}else{el.style.top=offsetParentY+19;}
		
		el.style.left=offsetParentX-140+13;
		el.style.display='block';
	}
}

function calculatePosLeft(obj,intWidth) {
	var left = 0;
	var pos;
	pos=obj;
	left = left + pos.offsetLeft;
	while (pos.offsetParent!=null) {
		pos=pos.offsetParent;
		if(pos.currentStyle!=null)if(pos.currentStyle.position!='relative')left = left + pos.offsetLeft;
	}
	if(parent.document.body.clientWidth<left+intWidth)left=left-intWidth
	return left;
}
  
function calculatePosTop(obj,intHight) {
	var blnOverflow=false;
	var top = 0;
	var pos;
	pos=obj;
	top= top + pos.offsetTop;
	while (pos.offsetParent!=null) {
		pos=pos.offsetParent;
		if(pos.style.overflow=='auto'||pos.style.overflow=='scroll'){
			blnOverflow=true;
			break;
		}
		if(pos.currentStyle!=null)if(pos.currentStyle.position!='relative')top= top + pos.offsetTop;
	}
	if(blnOverflow){
		g_HelpDivParentHeight=pos.offsetHeight;
	}else{
		g_HelpDivParentHeight=parent.document.body.clientHeight;
	}
	return top;
}

function HideActionMenu(strMenu){
	if(!g_blnShowActionMenu){
		if(typeof(strMenu)!='undefined' && strMenu!=''){
			var el=document.getElementById('actionmenu_'+strMenu);
			if(el!=null)el.style.display='none';
		}else{
			var el=document.getElementById('actionmenu_entry');
			if(el!=null)el.style.display='none';
			var el=document.getElementById('actionmenu_newentry');
			if(el!=null)el.style.display='none';
		}
	}
	g_blnShowActionMenu=false;
}

function getRequestParameter(strParameter){
	var strReturn='';
	var arrNameValue;
	var arrRequestParameters=location.search.toLowerCase().replace(/\?/i,'').split('&')
	for(var i=0;i<arrRequestParameters.length;i++){
		if(arrRequestParameters[i].indexOf('=')!=-1){
			arrNameValue=arrRequestParameters[i].split('=');
			if(arrNameValue.length==2){
				if(arrNameValue[0].indexOf(strParameter)==0){
					strReturn=arrNameValue[1];
					break;
				}
			}
		}
	}
	return strReturn;
}
