	<!--
	var statusen;
	var isMenu;
	var doc = document;
	var ToDo = 1;
	var TheForm;
	var TheModule;
	var TheAction;
	var ShowPathFromTreeView=false;

function TopMenuOver(x) {
	if (x.NavigateUrl==null) {
		window.status=x.Text + '. Click to expand menu';
		return true;
	}
	else {
		window.status=x.Text;
		return true;
	}
}

function TopMenuOut(x) {
		top.window.status='';
		return true;
}
	function doSkin(skin) 
		{
		var today = new Date();
		var expiry = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000); // 1 year
		document.getElementById("skin").href= '/skins/'+skin + '/styles.css';
		SubMenuFrame.document.getElementById("skin").href= skin + '/styles.css';
		//SubMenuFrame.SubMenuFrame0.document.getElementById("skin").href= skin + '/styles.css';
		document.cookie="sea3skin=" + escape(skin) + "; expires=" + expiry.toGMTString() + "; path=/";
		if (document.all) 
			{// Internet Explorer (and opera too but that's ok)
			var sel = document.getElementsByTagName("SELECT")
			for (i=0;i<sel.length;i++) 
				{ // hide and show all select boxes otherwise their colours won't change in IE (GRRRR!!!)
				sel[i].style.visibility = "hidden";
				sel[i].style.visibility = "visible";
				}
			}
		var nu = navigator.userAgent.toLowerCase();
		var nu2 = (nu.indexOf("opera") != -1);
		if (nu2) 
			{
			// reload for opera, as it doesn't support dynamic css switching
			window.location.reload();
			}
		}


		function reSize() 
			{
			if (isMenu==0) 
				{
				isMenu = 1;
				var tabWidth = document.getElementById('DivHovern').offsetWidth + 'px';
				document.getElementById('menu').style.visibility = 'hidden';
				if (document.all) 
					{
					document.all('content').style.borderLeftWidth = tabWidth;
					document.getElementById('DivHovern').style.left = 0;
					}
				else 
					{
					document.getElementById('content').style.left = tabWidth;
					document.getElementById('DivHovern').style.left = 0;
					}
				}
			else 
				{
				isMenu = 0;
				document.getElementById('menu').style.visibility = 'visible';
				var menuWidth = document.getElementById('menu').offsetWidth + 'px';
				var tabWidth = document.getElementById('menu').offsetWidth + document.getElementById('DivHovern').offsetWidth + 'px';
				if (document.all) 
					{
					document.all('DivHovern').style.left = menuWidth;
					document.all('content').style.borderLeftWidth = tabWidth;
					}
				else 
					{
					document.getElementById('DivHovern').style.left = menuWidth;
					document.getElementById('content').style.left = tabWidth;
					}
				}
			}

		function Klocka()
			{
			var Digital=new Date()
			var hours=Digital.getHours()
			var minutes=Digital.getMinutes()
			var seconds=Digital.getSeconds()
			if (minutes<=9)
				minutes="0"+minutes
			if (seconds<=9)
				seconds="0"+seconds
			var ctime=hours+":"+minutes+":"+seconds
			var clck=document.getElementById('FootBorderRight_klocka')
			clck.innerHTML=ctime
			setTimeout("Klocka()",1000)
		}		

		function SEA_Init()
			{
			checkPopped();
			reSize();
			Klocka();
			}
	
		function SEA_Init2() {
			if (top.location== location){
				var module = getQueryString( "module" );
				if ( module == "" ) {
					module = "Login";
					var InID = getQueryString( "ID" );
				}
				if ( InID == "" ) {
					InID = "0";
//				top.location="default.aspx?Module="+module+"&InID="+InID;
				}
			}
		}
	
		function checkPopped() 
			{
			if (top.name!="SEA") 
				{
//				parent.top.location="starter.aspx?page=" + escape(self.location.href)
				}
			}

		function getQueryString( sProp ) 
			{
			var re = new RegExp( sProp + "=([^\\&]*)", "i" );
			var a = re.exec( document.location.search );
			if ( a == null )
				return "";
			return a[1];
			};

		function Texta(Texten)
			{
			if (Texten == null || Texten == "")
				{
				statustext.innerHTML = OrgText
				}
			else
				{
				statustext.innerHTML = Texten
				}
			}
		function SEA_ChangeSubMenu2(inID, NoName) 
			{
			for (var i = 0; i < cells4.length; i++)
				{
				var tmpLager = new getObj("SubMeny"+i);
				cells4[i].setValue(false);
				tmpLager.st.display = "none";
				if (inID == i)
					{
					cells4[i].setValue(true);
					tmpLager.st.display = "block";
					}
				}
			}

		function SEA_ChangeSubMenu(inID,InLayer, startAt) 
			{

		if (startAt==null) startAt=0

			for (var i = 0; i<InLayer.length; i++)
				{
				var tmpLayer = new getObj("SubMeny"+(i+startAt));
				InLayer[i].setValue(false);
				tmpLayer.st.display = "none";
				if (inID == (i+startAt))
					{
					InLayer[i].setValue(true);
					tmpLayer.st.display = "block";
					}
				}
			}

		function SEA_NewsCoverage()
			{
			top.location.href="default.aspx?Module=News&Action=watchguard&ID=0";
			}

		function SEA_PickObject(Name, ID)
			{
			if (ToDo == 0)
				{
				alert("0\nID: "+ID+"\nName: "+Name);
				}
			else if  (ToDo == 1)
				{
				isMenu = 0;
				reSize();
				top.ContentFrame.location.href="content.aspx?Module="+TheModule+"&ID="+ID;
//				document.all.menyn.cols = cols='0,15,*';
				}
			else if  (ToDo == 2)
				{
				//top.ContentFrame.add_doc(Name, ID, TheForm)
				top.ContentFrame.doAdd(ID, Name, TheForm)
				alert("Stoppar in "+Name+" i "+TheForm);
				}
			else if  (ToDo == 3)
				{
				top.ContentFrame.SetParentPage(Name, ID);
				}
			}

		function SEA_CheckTextFieldLength(frm, maxval) 
			{ 
			if (frm.value.length > maxval) 
				{ 
				alert("Max " + maxval + " characters!")     
				frm.focus()
				}     
			}

		function Klicka(Formen, ToDoValue, DontResize)
			{
			if (!ToDoValue)
				{
				ToDoValue = 2;
				}
				
			if (DontResize==null) {
				isMenu = 1;
				reSize();
			}
			ToDo = ToDoValue;
			TheForm = Formen;
			}

		function move(bDir,sName) 
			{
			var el = eval("document.forms[0]." + sName)
			var idx = el.selectedIndex
			if (idx==-1) 
				{
				alert("Du m&aring;ste f&ouml;rst markera ett object som du &ouml;nskar flytta")
				el.focus();
				return;
				}
			else 
				{
				var nxidx = idx+( bDir? -1 : 1)
				if ((idx+1)==el.length && !bDir)
					{
					alert("Du kan inte flytta l&auml;ngre ned");
					el.focus();
					return;
					}
				if (idx==0 && bDir)
					{
					alert("Du kan inte flytta l&auml;ngre upp");
					el.focus();
					return;
					}
				var oldVal = el[idx].value
				var oldText = el[idx].text
				el[idx].value = el[nxidx].value
				el[idx].text = el[nxidx].text
				el[nxidx].value = oldVal
				el[nxidx].text = oldText
				el.selectedIndex = nxidx
				el.focus();
				}
			}

		function rem(x,RaderaAllt)
			{
			x=eval("doc.forms[0]." + x + ".options");
			if (x.length != 1) 
				{
				for (i=0; i< x.length; i++) 
					{
					if (x[i].selected) 
						{
						x[i]=null
						i--
						}
					}
				}
			else if (x.length == 1 && RaderaAllt==true)
				{
				x[0].text = '--------------------------------------------------------------------';
				x[0].value = '';
				x[0].selected = false;
				}
			else
				{
				alert("Du kan inte radera allt."); 
				}
			}

		function VisaOrder(Sida, Arg) 
			{
			POPUP = window.open(Sida, "PopMeny", Arg);
			POPUP.focus()
			}

		function add_doc(namn, ID, Frm) 
			{
			var frm= eval("doc.forms[0]." + Frm);
			var Tomt = "";
			//Raderar default ---- v&auml;rde
			if (frm.length>0) {
				if (frm[0].value==Tomt){frm.options[0] = null;}
			}
			//Kolla om ID:t finns i listan
			for (i=0; i<frm.length; i++) 
				{
				if (frm[i].value==ID) 
					{
					frm[i].selected=true
					return
					}
				}
			frm.length ++;
			frm.options[ frm.length -1 ].text = namn;
			frm.options[ frm.length -1 ].value = ID;
			frm.options[ frm.length -1 ].selected=true;
			if (Frm =="Bilder")
				{
				var frm= eval("doc.forms[0].BildID");
				for (i=0; i<frm.length; i++) 
					{
					if (frm[i].value==ID) 
						{
						return
						}
					}
				frm.length ++;
				frm.options[ frm.length -1 ].text = namn;
				frm.options[ frm.length -1 ].value = ID;
				if (frm.length == 2)
					{
					frm.options[ frm.length -1 ].selected=true;
					}
				if (frm[1].value==Tomt)
					{
					frm.options[1] = null;
					frm[i -1].selected=true
					}
				}
			if (Frm =="Kategorier")
				{
				var frm= eval("doc.forms[0].Kategori_ID");
				for (i=0; i<frm.length; i++) 
					{
					if (frm[i].value==ID) 
						{
						return
						}
					}
				frm.length ++;
				frm.options[ frm.length -1 ].text = namn;
				frm.options[ frm.length -1 ].value = ID;
				if (frm[1].value==Tomt)
					{
					frm.options[1] = null;
					frm[i -1].selected=true
					}
				}
			if (Frm =="Anvomraden")
				{
				var frm= eval("doc.forms[0].Anvomraden");
				for (i=0; i<frm.length; i++) 
					{
					if (frm[i].value==ID) 
						{
						return
						}
					}
				frm.length ++;
				frm.options[ frm.length -1 ].text = namn;
				frm.options[ frm.length -1 ].value = ID;
				if (frm[1].value==Tomt)
					{
					frm.options[1] = null;
					frm[i -1].selected=true
					}
				}		
			}

		function getObj(name) 
			{  
			if(document.all) 
				{
				if (!document.all(name)) return null 
				this.obj = document.all(name);  
				this.st = document.all(name).style;
				this.doc =   document.all(name).document
				this.left=this.obj.offsetLeft
				this.top=this.obj.offsetTop
				/*this.width=(this.obj.clip.right - this.obj.clip.left)
				this.height=(this.obj.clip.bottom - this.obj.clip.top)*/
				this.width=this.obj.offsetWidth
				this.height=this.obj.offsetHeight
				hidden = 'hidden';
				visible = 'visible';
				}  
			else if(document.getElementById) 
				{ 
				if (!document.getElementById(name)) return null
				this.obj = document.getElementById(name);  
				this.st = document.getElementById(name).style;  
				this.doc = document
				this.left=this.obj.offsetLeft
				this.top=this.obj.offsetTop
				this.width=this.obj.offsetWidth
				this.height=this.obj.offsetHeight

				hidden = 'hidden';
				visible = 'visible';
				}  
			}

			function SEA_Panel(PanelID, TabID) 
				{
				var TheTabs = document.getElementById("Panel"+PanelID).childNodes 
				var ThePages = document.getElementById("Page"+PanelID).childNodes 
				var TheLength = 0
				var x = 0
				for (var i = 0; i < TheTabs.length; i++)  
					{
					if (TheTabs[i].tagName == "LI")
						{
						TheLength ++
						}
					}
				for (var i = 0; i < TheTabs.length; i++)  
					{
					if (TheTabs[i].id == "Panel"+PanelID+"-Tab"+TabID) 
						{
						if (TheTabs[i].tagName == "LI")
							{
							x ++
							if (x==1)
								{
								TheTabs[i].className="StartOn";
								}
							else if (x == TheLength)
								{
								TheTabs[i].className="LastOn";
								}
							else
								{
								TheTabs[i].className="On";
								}
							}
						if (ThePages[i].id) 
							{ 
							ThePages[i].style.display = 'block'; 
							} 
						} 
					else 
						{
						if (TheTabs[i].tagName == "LI")
							{
							x ++
							if (x==1)
								{
								TheTabs[i].className="StartOff";
								}
							else if (x == TheLength)
								{
								TheTabs[i].className="LastOff";
								}
							else
								{
								TheTabs[i].className="Off";
								}
							}
						if (ThePages[i].id) 
							{ 
							ThePages[i].style.display = 'none'; 
							} 
						} 
					} 
				}

			function SEA_NewPage(InModule)
				{
				//if (undefined(InModule))
				//	{
				//	alert("Fel");
				//	}
				if (InModule != undefined)
					{
					top.ContentFrame.location.href="content.aspx?Module="+InModule+"&ID=0";
					}
				else
					{
					top.ContentFrame.location.href="content.aspx?Module="+top.TheModule+"&ID=0";
					}
				}

			function SEA_Delete()
				{
				alert("Radera");
				}

			function SEA_SaveNews()
				{
				alert("Spara");
				top.ContentFrame.SEA_Save();
				}

			 function SEA_SavePage(Nisse) {
				 if (Nisse==null) {
					 Nisse = false;
			 	}
			 
			 
				 if (Nisse){
				 	return true;
				 }
				 else{
				 	return false;
				 }
			 }
			 
			 
			 
		 function SEACheckForm() {
 				/*
 				v2.7.0
 				Usage:
				SEACheckForm(Form fieldname|friendly name|max length|datatype|panel ID|panel tab ID|Error message|mandatory true/false)
				Any number of arguments (form fields) separated by comma as usual
				*/
 				
 					var Conditions , ConditionCount, Fld, FldName, MaxLength, FldType, PanelID , PanelTabID, ErrMess, isMandatory;
					var Err = 0;
					var tab
					var isOK=false
			
				 for (i=0; i<(arguments.length);  i++)  {
						Conditions = arguments[i].split("|");
						ConditionCount=Conditions.length
						Fld = ContentFrame.document.getElementById(Conditions[0])
						//Fld = document.getElementById(Conditions[0])
						FldName = Conditions[1];
						MaxLength = Conditions[2]; 
						FldType = Conditions[3]; // Fieldtypes (ISODate, Int, Float, Email, Text)
						PanelID = Conditions[4];
						PanelTabID = Conditions[5];
						ErrMess = Conditions[6]
						isMandatory = (ConditionCount >= 8 ? eval(Conditions[7]) : true); //if left empty, set to true
						
						if (PanelID.length > 0)	tab=eval("ContentFrame." + PanelID);
						
						
						var fldType

						if (Fld.type.indexOf('select') > -1) {
								fldType=1
						}
						else if (Fld.type.indexOf('radio') > -1) {
							fldType=2
						}
						else if (Fld.type.indexOf('checkbox') > -1) {
							fldType=2
						}
						else if (Fld.type.indexOf('text') > -1) {
							fldType=4
						}
						
						
						switch (fldType) {
							//select lists. Only check if selected
							case 1:
								if (Fld.length<=0) {
									alert('Du har inte angett n&aring;got v&auml;rde f&ouml;r ' + FldName + '\n');
									if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
									Fld.focus();
									Err++;
								}
								break;
								
							//radio buttons. Only check if selected
							case 2:
								for (j=0; j<Fld.length; j++) {
									if (Fld[j].checked) {
											isOK=true;
											break;
									}
								}
							
								if (!isOK) {
									alert('Du har inte angett n&aring;got v&auml;rde f&ouml;r ' + FldName + '\n');
									if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
									Fld[0].focus();
									Err++;
								}
								break;
							
							//checkbox.
							case 3:
								if (!Fld.checked) {
									alert('Du har inte kryssat i ' + FldName + '\n');
									if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
									Fld.focus();
									Err++;
								}
							
								break;
							//Textboxes and textareas. Lots of checks...
							case 4:
								if (isEmpty(Fld.value) && isMandatory) {
										alert('Du har inte angett n&aring;got v&auml;rde f&ouml;r ' + FldName + '\n');
										Fld.value='';
										
										if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
										Fld.focus();
										Err++;
										break
								} 
					 
								if (MaxLength>0) {
									if (Fld.value.length > MaxLength )  {
										 alert('' + FldName + ' f&aring;r inte fylla i mer &auml;n ' + MaxLength + ' tecken.\nJust nu har du fyllt i ' + Fld.value.length + ' tecken.');
										 Fld.value='';
										 if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
										 Fld.focus();
										 Err++;
										 break
									}
								}
								 
								if (FldType == "Int" && isMandatory) {
									if (Fld.value!=parseInt(Fld.value)) {
										alert("Du f&aring;r enbart fylla i f&auml;ltet med heltal.");
										Fld.value='';
										if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
										Fld.focus();
										Err++;
										break
									}
								}
			 				
								if (FldType == "Float" && isMandatory) {
									var tmp=Fld.value.replace(",",".")
									if (tmp!=parseFloat(tmp)) {
										alert("Du f&aring;r enbart fylla i f&auml;ltet med tal.");
										Fld.value='';
										if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
										Fld.focus();
										Err++;
										break
									}
								}
							
								else if (FldType == "Email" && isMandatory) {
									if (!isEmail(Fld.value)) {
									 	alert("Du har inte angett en korrekt Emailadress");
										Fld.value='';
										if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
										Fld.focus();
										Err++;
										break
									}
								}
			 				
								else if (FldType == "ISODate" && isMandatory) {	
									if (!isDate(Fld.value)) {
										alert("Du m&aring;ste ange ISODate enligt &Aring;&Aring;&Aring;&Aring;-MM-DD");
										Fld.value='';
										if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
										Fld.focus();
										Err++;
										break
									}
								}
			 				
				
								else if (FldType == "Div" && isMandatory) {
									if (isEmpty(Fld.value)) {
										alert('Du har inte angett n&aring;got v&auml;rde f&ouml;r ' + FldName + '\n');
										if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
										Fld.value='';
										Err++;
										break
									} 
			 					
									if (Fld.value.length > MaxLength ) {
										alert('' + FldName + ' f&aring;r inte fylla i mer &auml;n ' + MaxLength + ' tecken.\nJust nu har du fyllt i ' + Fld.value.length + ' tecken.');
										if (PanelTabID.length > 0)	tab.SelectTabById(PanelTabID);
										Fld.value='';
										Err++;
										break
									}
			 					}
			 				break;
		 			} //switch end
				} //loop end
				
			if (Err<1) {
					return true
		 	}
		 	else {
		 			return false
		 	}
 		}
 		
 		
 		 function isEmpty(theValue)  {
		 	return (theValue.charAt(0) == ' ' || theValue == '');
		 }
		 
		 function isNumbers(str)  {
		 	return (/^\d+$/.test(str));
		 }
		 
		 function isEmail(str) {
			 return (!/@.*@/.test(str) && /@.*[.]./.test(str));
		 }
		 
	 
		 function CheckLen(MyTarget, Max, Namn)  {
			 if (MyTarget.value.length > Max ) {
			 	alert('' + Namn + ' f&aring;r inte fylla i mer &auml;n ' + Max + ' tecken./n Just nu har du fyllt i ' + MyTarget.value.length + ' tecken.');
			 	MyTarget.Focus()
			 }
		 }
		 
	 
		 	function isDate(vl) {

				for (i=0; i<vl.length; i++) {
					tmp=vl.charAt(i)
					
					switch(i) {
						case 0:
							if(tmp!=parseInt(tmp)) {
								return false
							}
							break
						
						case 1:
							if(tmp!=parseInt(tmp)) {
								return false
							}
							break
						
						case 2:
							if(tmp!=parseInt(tmp)) {
								return false
							}
							break
						
						case 3:
							if(tmp!=parseInt(tmp)) {
								return false
							}
							break
						
						case 4:
							if(vl.charAt(i)!="-") {
								return false
							}
							break
						
						case 5:
							if(tmp!=parseInt(tmp)) {
								return false
							}
							if(tmp>1) {
								return false
							}
							break
						
						case 6:
							if(tmp!=parseInt(tmp)) {
								return false
							}
							if (vl.charAt(5)>0) {
								if(tmp>2) {
									return false
								}
							}
							else {
								if(tmp==0) {
									return false
								}
							}
							break
					
						case 7:
							if(vl.charAt(i)!="-") {
									return false
							}
							break
						
						case 8:
							if(tmp!=parseInt(tmp)) {
									return false
							}
							if(tmp>3) {
									return false
							}
							break
							
						case 9:
							if(tmp!=parseInt(tmp)) {
								return false
							}
							if (vl.charAt(8)>2) {
								if(tmp>1) {
									return false
								}
							}
		
					}
					
				}
				return true		
		}
		
				 
		function CheckDateLive(fld) {
			vl=fld.value
			
			for (i=0; i<vl.length; i++) {
				tmp=vl.charAt(i)
				
				switch(i) {
					case 0:
						if(tmp!=parseInt(tmp)) {
							eraseVal(fld)
							break
						}
						break
					
					case 1:
						if(tmp!=parseInt(tmp)) {
							eraseVal(fld)
							break
						}
						break
					
					case 2:
						if(tmp!=parseInt(tmp)) {
							eraseVal(fld)
							break
						}
						break
					
					case 3:
						if(tmp!=parseInt(tmp)) {
							eraseVal(fld)
							break
						}
						break
					
					case 4:
						if(vl.charAt(i)!="-") {
							eraseVal(fld)
							break
						}
						break
					
					case 5:
						if(tmp!=parseInt(tmp)) {
							eraseVal(fld)
							break
						}
						if(tmp>1) {
							eraseVal(fld)
							break
						}
						break
					
					case 6:
						if(tmp!=parseInt(tmp)) {
							eraseVal(fld)
							break
						}
						if (vl.charAt(5)>0) {
							if(tmp>2) {
								eraseVal(fld)
								break
							}
						}
						else {
							if(tmp==0) {
								eraseVal(fld)
								break
							}
						}
						break
				
					case 7:
						if(vl.charAt(i)!="-") {
							eraseVal(fld)
							break
						}
						break
					
					case 8:
						if(tmp!=parseInt(tmp)) {
							eraseVal(fld)
							break
						}
						if(tmp>3) {
							eraseVal(fld)
							break
						}
						break
						
					case 9:
						if(tmp!=parseInt(tmp)) {
							eraseVal(fld)
							break
						}
						if (vl.charAt(8)>2) {
							if(tmp>1) {
								eraseVal(fld)
								break
							}
						}
	
				}
				
			}
			

				
		}
		
		
		function eraseVal(fld) {
			fld.value=fld.value.substring(0, fld.value.length -1)
				alert("Datum maste vara enligt YYYY-MM-DD");
		}

	function PopIt(thepage) 
		{
		var sw=screen.availWidth-2
		var sh=screen.availHeight-2-40
		window.open(thepage, 'SEA', 'width=' + sw + ', height=' + sh + ', left=0, top=0, status=1, toolbar=0, location=0, history=0, fullscreen=0')
		}

	function SEA_CreateListButtons(InTable)
		{
		var table = document.getElementById(InTable);
		for (var i = 0; i < table.rows[0].cells.length; i++)
			{
			createButton(table.rows[0].cells[i]);
			}
		}
	
	function SEA_SelectListBoxes() {
		win=arguments[0]
		for (i=1; i<arguments.length; i++) {
			frm=win.document.getElementById(arguments[i]);
			if (frm) {
				for (j=0; j<frm.length; j++) {
					if (frm[j].selected) frm[j].selected=false
					else frm[j].selected=true
						
				}	
			}	
		}	
	}

	function showDialog(RadEditorContentArea, editorID)
		{
		   var result = radEditorShowDialog(editorID, "Examples/ClientCustomDialog/LinksDialog.html?editorID=" + editorID, null, 260, 120);
		   if (document.all)
		   {
			  if (result != null)
			  {
				 //Making the r.a.d.editor content area active.
				 RadEditorContentArea.setActive();
				 var range = document.selection.createRange();
				 //Here we paste the HTML generated by the Custom Dialog.
				 range.pasteHTML(result);
			  }
		   }
		}

	function showSEA_RadDialog(URL, editorID, width, height)
		{
		if (width==null)
			{
			width=300;
			}
		if (height==null)
			{
			height=420;
			}
		var isModal = false;
		var B5l = new RadWindowInfo();
		B5l.Url = URL;
		B5l.Width = width;
		B5l.Height = height;
		B5l.Caption = "";
		B5l.IsVisible = true;
		B5l.OnLoadFunc = null;
		B5l.Resizable = true;
		B5l.Movable = true;
		B5l.UseClassicDialogs = isModal;
		B5l.BlankIFrameLocation = "blank.html";
		GetRadWindowManager().ShowModalWindow(B5l);
		}


				

	function SEA_rEl6G(editorID, url, argument, width, height, callback, rET2G)
		{
		var _0O = GetRadEditor(editorID);
		if (!argument)
			{
			argument = new Object();
			}
		argument.radEditorResetStatusBar = radEditorResetStatusBar;
		argument.editorID = editorID;
		var B5l = new RadWindowInfo();
		B5l.Url = url;
		B5l.Width = width;
		B5l.Height = height;
		B5l.Caption = "";
		B5l.IsVisible = true;
		B5l.Argument = argument;
		B5l.CallbackFunc = callback;
		B5l.OnLoadFunc = null;
		B5l.Param = rET2G;
		B5l.Resizable = true;
		B5l.Movable = true;
		B5l.UseClassicDialogs = _0O.UseClassicDialogs;
		B5l.BlankIFrameLocation = _0O.BlankIFrameLocation;
		var T54 = GetRadWindowManager().ShowModalWindow(B5l);
		return T54;
		}

	function SEA_ProductData()
		{
		org = document.getElementById('Pdata');
		eTableBody = document.createElement('table');
		for (var i = 0; i < info.length; i++)
			{
			eRow = document.createElement('tr');
			eRow.onclick="javascript:SEA_ProdData_SetRow("+i+");";
			eTableBody.appendChild(eRow);
			eCell = document.createElement('td');
			eCell.className="Light";
			eRow.appendChild(eCell);
			eImg  = document.createElement('img');
			eImg.src=ImPth+"/delete.gif"
			eImg.onclick="javascript:SEA_ProdDataDeleteRows("+i+");"
			eImg.Title=DeleteText;
			eImg.Style="cursor:pointer;";
			eCell.appendChild(eImg);
			eCell = document.createElement('td');
			eCell.className="Light";
			eRow.appendChild(eCell);
//			eImg  = document.createElement('img');
//				eCell.appendChild(document.createTextNode("<input type='test' name='ProduktData' value='"+orgForm.options[i].text+"'>"));
			myfield = document.createElement('input');
			myfield.input="Text";
			myfield.Name="ProduktData";
			myfield.value = info[i].TheLabel;
			myfield.onkeyup = "javascript:SEA_ProdData_UpdateField(false,"+i+",this.value);";
			eCell.appendChild(myfield);
//				eCell.appendChild(document.createTextNode(orgForm.options[i].text));
//			eCell.appendChild(eImg);
			eCell = document.createElement('td');  
			eCell.className="Light";
			eRow.appendChild(eCell);
//			eImg  = document.createElement('img');
			myfield = document.createElement('input');
			myfield.input="Text";
			myfield.Name="ProduktData";
			myfield.value = info[i].TheValue;
			myfield.onkeyup = "javascript:SEA_ProdData_UpdateField(true,"+i+",this.value);";
			eCell.appendChild(myfield);
			}
		org.innerHTML = eTableBody.outerHTML;
		}

	function accountdata(TheLabel, TheValue )
		{
		this.TheLabel=TheLabel ;
		this.TheValue=TheValue; 
		}

var t
if (opener) t=opener.parent.parent
else t=top

	function SEA_GetProductData(TheForm)
		{
		//var orgForm = eval("top.ContentFrame.document.forms[0]." +TheForm);
		var orgForm=eval("t.ContentFrame.document.forms[0]")
		orgForm=eval("orgForm." + TheForm)
		var j = 0;
		for (var i = 0; i < orgForm.options.length; i++)
			{
			if (orgForm.options[i].value.indexOf("####")>-1)
				{
				TheValues = orgForm.options[i].value.split("####");
				info[j]=new accountdata(TheValues[0], TheValues[1] );
				j++
				}
			}
		if (info.length ==0)
			{
			SEA_ProdDataAddRows();
			}
		}

	
	function SEA_ProdDataAddRows()
		{
		var start = info.length;
		for (var i = 0; i < 3; i++)
			{
			info[start+i]=new accountdata("", "" );
			}
		SEA_ProductData();		
		}

	function SEA_ProdDataDeleteRows(RowID)
		{
//			alert(RowID);
		info.splice(RowID,1)
		SEA_ProductData();		
		}

	function SEA_ProdData_SetRow(RowID)
		{
		iActiveRow = RowID
		}

	function SEA_ProdData_MoveRow(bDir)
		{
		var idx = iActiveRow;
		var nxidx = idx+( bDir? -1 : 1)
		if ((idx+1)==info.length && !bDir)
			{
			alert(MaxBottom);
			return;
			}
		if (idx==0 && bDir)
			{
			alert(MaxTop);
			return;
			}
		var oldVal = info[idx].TheValue;
		var oldText = info[idx].TheLabel;
		info[idx].TheValue = info[nxidx].TheValue;
		info[idx].TheLabel = info[nxidx].TheLabel;
		info[nxidx].TheValue = oldVal;
		info[nxidx].TheLabel = oldText;
		SEA_ProductData();		
		iActiveRow = nxidx;
		}

	function SEA_ProdData_UpdateField(What,RowID,NewValue)
		{
		if (What)
			{
			info[RowID].TheValue = NewValue
			}
		else
			{
			info[RowID].TheLabel = NewValue
			}
		}

	function SEA_ProdDataSet(TheForm, delimiter)
		{
		var orgForm = eval("top.ContentFrame.document.forms[0]." +TheForm);
		var NyArr = new Array();
		var j = 0;
		SEA_ClearDropList(TheForm);
		var t;
		if (opener) t=opener.top.ContentFrame;
		else t=parent.parent.parent.ContentFrame;
		
		for (var i = 0; i < info.length; i++)
			{
			if (info[i].TheLabel != null && info[i].TheLabel !="")
				{
				//NyArr[j]=new accountdata(info[i].TheLabel+" : " +info[i].TheValue, info[i].TheLabel+"####"+info[i].TheValue);
				alert(info[i].TheLabel+delimiter+info[i].TheValue)
				t.doAdd(info[i].TheLabel+delimiter+info[i].TheValue, info[i].TheLabel+" : " +info[i].TheValue, TheForm)
				j++;
				}
			}	
		//SEA_ClearDropList(TheForm);
		//SEA_FillDropList(TheForm, NyArr);
		
		CloseDlg(null);
		}

	function SEA_ClearDropList(TheForm)
		{
		var x = eval("top.ContentFrame.document.forms[0]." +TheForm);
		if (x.length != 1) 
			{
			for (i=0; i< x.length; i++) 
				{
				x[i]=null
				i--
				}
			}
		}

	function SEA_FillDropList(TheForm, TheArrValue)
		{
		var frm = eval("top.ContentFrame.document.forms[0]." +TheForm);
		for (var i = 0; i < TheArrValue.length; i++)
			{
			frm.length ++;
			frm.options[ frm.length -1 ].text = TheArrValue[i].TheLabel;
			frm.options[ frm.length -1 ].value = TheArrValue[i].TheValue;
			frm.options[ frm.length -1 ].selected=true;
			}

		}

	function showImageDialog(TheURL, editorID, Height, Width)
		{ 
		 var radEditor = GetRadEditor(editorID);
		 
		 var url = TheURL 
			+ "?editorID=" + editorID 
			+ "&sessionID=" + radEditor.SessionID2 
			+ "&useSession=" + radEditor.UseSession 
			+ "&Language=" + radEditor.Language 
			+ "&DialogsScheme=" + radEditor.DialogsScheme 
			+ "&RadControlsDir=" + radEditor.RadControlsDir;
		 
		 var param = editorID;   
		 rEl6G(editorID
			 , url
			 , null
			 , Width
			 , Height
			 , InsImageCallback
			 , param);
		 }

		function InsImageCallback(retValue, param)
			{
			var editorID = param;
			alert(retValue.thumbName);
			}  

		function SEA_Pop(url, width, height, isModal)
			{
				var B5l = new RadWindowInfo();
				B5l.Url = url;
				B5l.Width = width;
				B5l.Height = height;
				B5l.Caption = "";
				B5l.IsVisible = true;
				B5l.OnLoadFunc = null;
				B5l.Resizable = true;
				B5l.Movable = true;
				B5l.UseClassicDialogs = isModal;
				B5l.BlankIFrameLocation = "blank.html";
				GetRadWindowManager().ShowModalWindow(B5l);
				}
			
		function SEA_hideIECrap() {
				//if (document.all) {
					alert(document.getElementsByTagName("iframe").length)
					for (i=0; i<document.getElementsByTagName("iframe").length; i++) {
						w=document.getElementsByTagName("iframe")[i];
						alert(w.src)
						for (j=0; j<w.document.getElementsByTagName("select").length; j++) {
								alert(w.document.getElementsByTagName("select").length)
								w.document.getElementsByTagName("select")[j].style.display='none'
						}
					}
				//}
		}

		-->
