var ns = document.layers;
var moz = document.getElementById && !document.all;
var ie = document.all;

var protok = window.location.protocol + '//';
if(protok=='')protok='http://';
if(window.location.hostname.indexOf("www.")!=-1){
var myJsDomain=protok+"www."+window.location.hostname;
}else{
var myJsDomain=protok+window.location.hostname;
}
//alert(myJsDomain);
function setNexDate(nexDateIs){
document.news.added.value = nexDateIs;
}
function setNewNexDate(nexDateIs,myID){
  var sInput = ("document.nexRTEFORM_"+myID+".added");
  sInput = eval(sInput);
  sInput.value = nexDateIs;
}
function setNexDateRGdate(nexDateIs){
  document.nex.rechnungsDatum.value = nexDateIs;
}
function setNexDateRGdue(nexDateIs){
  document.nex.rechnungsFalligkeit.value = nexDateIs;
}
function setNexDateRGdeliv(nexDateIs){
  document.nex.rechnungsLieferungAm.value = nexDateIs;
}
function setNexDateRGpayed(nexDateIs){
  document.nex.rechnungsBezahltAm.value = nexDateIs;
}
function setNexDateAGval(nexDateIs){
  document.angebotForm.angebotsGultigkeit.value = nexDateIs;
}
function setNexDateAGdate(nexDateIs){
  document.angebotForm.angebotsDatum.value = nexDateIs;
}

function _nexGE(obj){
	return document.getElementById(obj);
}
function str_replace(search, replace, subject) {
    return subject.split(search).join(replace);
}
function trimString (str) {
  str = this != window? this : str;
  return str.replace(/^\s+/g, '').replace(/\s+$/g, '');
}
String.prototype.trim = trimString;
function isset(varname){
  return(typeof(window[varname])!='undefined');
}

function getElementsByClassName(clsName){
    var retVal = new Array();
    var elements = document.getElementsByTagName("*");
    for(var i = 0;i < elements.length;i++){
        if(elements[i].className.indexOf(" ") >= 0){
            var classes = elements[i].className.split(" ");
            for(var j = 0;j < classes.length;j++){
                if(classes[j] == clsName)
                    retVal.push(elements[i]);
            }
        }
        else if(elements[i].className == clsName)
            retVal.push(elements[i]);
    }
    return retVal;
}

document.getElementsByClassName = function(clsName){
	return getElementsByClassName(clsName);
}
function setNexKTprice(ertrag,kosten){
  document.ktForm.einzelgewinn.value = ertrag;
  document.ktForm.selbstkosten.value = kosten;
}


function getNexRTE(nexRTIs,x) {
  var sInput = ("document.nexRTEFORM_"+x);
  sInput = eval(sInput);
  sInput.content.value = nexRTIs;
  sInput.submit();
}
function submitRTEForm_orig(x){
  var sInput = ("document.nexRTEFORM_"+x);
  sInput = eval(sInput);
  sInput.submit();
}
var trigger_langID;
function submitRTEForm(x){
	if(window.location.search.indexOf('content_det')!=-1){
		cID=x;
		var langID=trigger_langID;
	  	var turl='admin.php?a=content_update&categoryID=".$categoryID."&languCode=".$languCode."&contentlanguID='+langID+'&page=".$page."&howMany=".$howMany."';
		turl += '&contentID='+cID+'';
		turl += '&ajaxOut=1';
		turl += '&changeHeader='+escape(document.getElementById('changeHeader_'+cID+'').value);
		turl += '&headerSize='+document.getElementById('headerSize_'+cID+'').value;
		turl += '&linkID='+document.getElementById('linkID_'+cID+'').value;
		turl += '&changeUserRight='+document.getElementById('changeUserRight_'+cID+'').value;
		turl += '&css='+escape(document.getElementById('css_'+cID+'').value);
		turl += '&contentChangeActive='+document.getElementById('online_'+cID+'').value;
		document.getElementById('cid'+cID+'_status').innerHTML = 'loading';
		ajaxpage(turl,'cid'+cID+'_status');
		var objt=document.getElementById('cid'+cID+'_status');
		var teID='cid'+cID+'_status';
		var out;
		succ_mid = teID;
		succ_cID = cID;
		setTimeout('checkSuccess()',2000);
	} else {
		var sInput = ("document.nexRTEFORM_"+x);
		  sInput = eval(sInput);
		  sInput.submit();
	}
}



function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}



function triggerNexRTEupdate(x){
  var Wert = "update";
  
  /*
  
  if (ns){
    var sInput = ("document.embeds['nexRTE_"+x+"']");	
  }else if (moz){ 
    var sInput = ("document.embeds['nexRTE_"+x+"']");
    var sInput = document.getElementById("nexRTE_"+x);
  //hier landet safari, Mozilla
  }else if (ie){
    var sInput = ("document.nexRTE_"+x);	  
  }
  var sInput = ("window.document.nexRTE_"+x);
  sInput = eval(sInput);
  */
  sInput = getFlashMovieObject("nexRTE_"+x);
  
  sInput = eval(sInput);
  sInput.SetVariable("/:jQuery",Wert);
}
function triggerNexRTEinsert(x){
  var Wert = "insert";
  if (ns){
    var sInput = ("document.embeds['nexRTE_"+x+"']");	
  }else if (moz){ 
    var sInput = ("document.embeds['nexRTE_"+x+"']");	  
  }else if (ie){
    var sInput = ("document.nexRTE_"+x);	  
  }
  sInput = eval(sInput);
  sInput.SetVariable("/:jQuery",Wert);
}
function openArea(what) {
  var areaObj = document.getElementById("cid"+what).style;
  var areaObj2 = document.getElementById("rid"+what).style;
  if (areaObj.display == "block") {
  	areaObj.display = "none";
  	//areaObj2.display = "block";
  	areaObj2.border = "0px";
  } else {
  	areaObj.display = "block";
  	//areaObj2.display = "none";
  	areaObj2.border = "3px solid #f00";
  }
}
function rover(what) {
  var areaObj = document.getElementById("stat"+what).style;
  if (areaObj.display == "inline") {
  	areaObj.display = "none";
  } else {
  	areaObj.display = "inline";
  }
}
function glossrover(what) {
  var areaObj = document.getElementById("g_"+what).style;
  if (areaObj.display == "block") {
  	areaObj.display = "none";
  } else {
  	areaObj.display = "block";
  }
}
var nexNewWin;

function nexpopup(theurl,thename,params)
{
	nexNewWin = window.open('',thename,params);
}
function openProp(what) {
	
  var areaObj = document.getElementById("properties_link").style;
  areaObj.display = "none";
  var areaObj = document.getElementById("properties_live").style;
  areaObj.display = "none";  
  var areaObj = document.getElementById("properties_seo").style;
  areaObj.display = "none";
  var areaObj = document.getElementById("properties_meta").style;
  areaObj.display = "none";
  var areaObj = document.getElementById("properties_geo").style;
  areaObj.display = "none";
  var areaObj = document.getElementById("properties_admin").style;
  areaObj.display = "none";
  
  var areaObj = document.getElementById(what).style;
  areaObj.display = "block";

}
function genericshowhide(what,blocknone) {
  var areaObj = document.getElementById(what).style;
  areaObj.display = blocknone;
}
function genericrover(what) {
  var areaObj = document.getElementById("g_"+what).style;  
  var areaObjS = document.getElementById("iS_"+what).style;
  var areaObjH = document.getElementById("iH_"+what).style;
  if (areaObj.display == "block") {
  	areaObj.display = "none";
  	areaObjS.display = "inline";
  	areaObjH.display = "none";
  } else {
  	areaObj.display = "block";
  	areaObjS.display = "none";
  	areaObjH.display = "inline";
  }
}
function animate()
{
	var elem = document.getElementById('progress');
	if(elem != null) {
		if (pos==0) len += dir;
		if (len>32 || pos>251) pos += dir;
		if (pos>251) len -= dir;
		if (pos>251 && len==0) pos=0;
		elem.style.left = pos;
		elem.style.width = len;
	}
}
function remove_loading() {
	this.clearInterval(t_id);
	var targelem = document.getElementById('loader_container');
	targelem.style.display='none';
	targelem.style.visibility='hidden';
	
	var targelem2 = document.getElementById('maincontent');
	targelem2.style.display='block';
	targelem2.style.visibility='visible';
}
function changecss(theC,element,value) {
	var cssRules;
	if (document.all) {
		cssRules = 'rules';
	}
	else if (document.getElementById) {
		cssRules = 'cssRules';
	}
	for (var S = 0; S < document.styleSheets.length; S++){
		for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
			if (document.styleSheets[S][cssRules][R].selectorText == theC) {
				document.styleSheets[S][cssRules][R].style[element] = value;
			}
		}
	}	
}

function openCatList(what) {
	
  var areaObj = document.getElementById("catList_structure").style;
  areaObj.display = "none";
  var areaObj = document.getElementById("catList_newest").style;
  areaObj.display = "none";
  var areaObj = document.getElementById("catList_lastadded").style;
  areaObj.display = "none";
  var areaObj = document.getElementById("catList_mostviewed").style;
  areaObj.display = "none";
  var areaObj = document.getElementById("catList_mostunique").style;
  areaObj.display = "none";
  
  var areaObj = document.getElementById(what).style;
  if (areaObj.display == "block") {
  	areaObj.display = "none";
  } else {
  	areaObj.display = "block";
  }
}

function nexElectorSeek(Wert,FeldID)
{
	for(i=0; i<document.getElementById(FeldID).options.length; i++)
	{
		if(Wert.substr(0, Wert.length).toLowerCase()==document.getElementById(FeldID).options[i].text.substr(0, Wert.length).toLowerCase() && Wert.length!=0)
		{
			document.getElementById(FeldID).options[i].selected = true;
			break;
		}
	}
}
function setoffset ( selectedtype )
{
document.nexecutive1.offset.value = selectedtype ;
document.nexecutive1.wizard.value = true ;
document.nexecutive1.submit();
}

function toggleArea(what) {
  var areaObj = document.getElementById("cid"+what).style;
  if (areaObj.display == "block") {
  	areaObj.display = "none";
  } else {
  	areaObj.display = "block";
  }
}



var delay = "2";  //############# How long before window appears (seconds)
var winw = "280"; //############# How wide should your window be (pixels)
var winh = "320"; //############# How tall should the window be (pixels)


//############# Auto centering DHTML popup window by Dave lauderdale
//############# Originally published at www.digi-dl.com


var ie=(document.all);
var ns=(document.layers);
var ns6=(document.getElementById && !ie);
var calculate=ns? "" : "px"
function loadElement(){
if(!ns && !ie && !ns6) return;
if(ie) popup=eval('document.all.elementDiv.style');
else if(ns) popup=eval('document.layers["elementDiv"]');
else if(ns6) popup=eval('document.getElementById("elementDiv").style');
if (ie||ns6) popup.visibility="visible";
else popup.visibility ="show";
displayElement()
}
function displayElement(){
var agent=navigator.userAgent.toLowerCase();
if (ie){
	documentWidth = (centerElement().offsetWidth)/2+centerElement().scrollLeft-(winw/2);
	documentHeight = (centerElement().offsetHeight)/2+centerElement().scrollTop-(winh/2);
}
else if (ns){
	documentWidth=window.innerWidth/2+window.pageXOffset-(winw/2);
	documentHeight=window.innerHeight/2+window.pageYOffset-(winh/2);
}
else if (ns6){
	documentWidth=self.innerWidth/2+window.pageXOffset-(winw/2);
	documentHeight=self.innerHeight/2+window.pageYOffset-(winh/2);
}
popup.left = documentWidth+calculate;
popup.top = documentHeight+calculate;
setTimeout("displayElement()",100);
}
function centerElement(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function closeElement(){
	if (ie||ns6) { popup.display="none"; } 
	else { popup.visibility ="hide"; }
}



var myCurrentHash = str_replace("#","",window.location.hash);
var myNewHash=str_replace("#","",window.location.hash);
var myHashHistory = new Array(myCurrentHash);
var no_hash_change=false;
var iframesfix=false;

var detect = navigator.userAgent.toLowerCase();
var iframeid = 'ajax_back_frame_controll';
if(detect.indexOf("msie")!=-1) {	
	iframesfix = true;
	addEvent(window, "load", creatAjaxControllerFrame);
}
function setHash(new_hash) {
	window.location.hash=new_hash;			
}
function checkWhetherChanged(){
	if(myNewHash != myCurrentHash) {
//		if(iframesfix)AjaxIframesFixer(iframeid);
//		if(iframesfix==false){
			//firefox und co
			if(myCurrentHash.indexOf('|||@|||')!=-1){
				temp = myCurrentHash.split('|||@|||');
				no_hash_change=true;
				ajaxpage(temp[0],temp[1]);
				myNewHash=myCurrentHash;
			} else if(iframesfix==false){
				if(window.location.href.indexOf('#')!=-1){
					if(window.location.hash=='')				
					history.back();
				}
			} else {
			//	if(document.frames[iframeid].getLocation()==''){		
			//		history.back();
			//	}
			}
//		} else {
			
//		}
	}
//	alert('out');
	if(iframesfix==false){
		myCurrentHash = str_replace("#","",window.location.hash);
	} else {
		try{
			if(document.frames[iframeid].getFreshness()=='altered'){
				myCurrentHash = document.frames[iframeid].getLocation();
				//setTimeout("getNewHashFromFrame()",500);
			//	alert(myCurrentHash +' - '+myNewHash);
			}
		}
		catch(E){
			
		}
	}
	setTimeout("checkWhetherChanged()", 200);
}

function getNewHashFromFrame(){
	myCurrentHash = document.frames[iframeid].getLocation();
}
checkWhetherChanged();


function AjaxIframesFixer(iframeid) {
	if (document.getElementById(iframeid)) {
		
		var temp_hash = str_replace("#","",myNewHash);
		if(temp_hash.length>0)
		document.getElementById(iframeid).src=""+myJsDomain+"/ajax_back_button_helper.php?hash="+escape(temp_hash)+"&r="+Math.random();
		
	} else {
		if(iframesfix) {
			
			
			AjaxIframesFixer(iframeid);
		}
	}
}

function creatAjaxControllerFrame(){
	
	var neuIframe = document.createElement("IFRAME");
	neuIframe.setAttribute("src", ""+myJsDomain+"/ajax_back_button_helper.php?hash="+escape(str_replace("#","",window.location.hash))+"&r="+Math.random());
	neuIframe.setAttribute("name", iframeid);
	neuIframe.setAttribute("style", "");
	neuIframe.setAttribute("width", 100);
	neuIframe.setAttribute("height", 100);
	neuIframe.setAttribute("id", iframeid);
	try{
		neuIframe.name=iframeid;
		neuIframe.id=iframeid;
		neuIframe.style.display="none";
	}catch(E){
		
	}
//	alert(document.getElementsByTagName(iframeid)[0]).src;
	var divs = document.getElementsByTagName("BODY")
	divs[0].appendChild(neuIframe);
	try{
		document.frames[iframeid].setFreshness('refreshed');
	}catch(E){
		
	}
	try{
		//document.frames[iframeid].style.display="none";
		document.getElementById(iframeid).style.display="none";
	}catch(E){
		
	}
	setTimeout("hideAjaxControllerFrame()",500);
}

function hideAjaxControllerFrame(){
	try{
		document.getElementById(iframeid).style="display:none;";
		var ifr = document.getElementsByTagName("IFRAME");
		ifr[(ifr.length-1)].style="display:none;";
	}
	catch(E){
		
	}
}


var prot = window.location.protocol + '//';

var loadedobjects=""
if(window.location.hostname.indexOf("www.")!=-1){
var rootdomain=prot+window.location.hostname;
}else{
var rootdomain=prot+"www."+window.location.hostname;
}

function ajaxpage(url, containerid){
myCurrentHash=url+'|||@|||'+containerid;
if(window.location.href.indexOf('admin.php')!=-1){
	no_hash_change = true;
}
myNewHash = myCurrentHash;
if(iframesfix){
	try{
		document.frames[iframeid].setFreshness('loading');
	}
	catch(E){}
}
if(!no_hash_change){
	setHash(myNewHash);
} else {	
	//no_hash_change=false;
}

	
var page_request = false;
if (window.XMLHttpRequest){
	// if IE7, Mozilla, Safari etc
	page_request = new XMLHttpRequest();
}else if (window.ActiveXObject){ // if IE
	try {
	page_request = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e){
		try{
		page_request = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e){}
	}
}else{
return false;
}
page_request.onreadystatechange=function(){
	loadpage(page_request, containerid);
}
page_request.open('GET', url, true);
page_request.send(null);
}

function loadpage(page_request, containerid){
	if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
		try{
			document.getElementById(containerid).innerHTML=page_request.responseText;
			
		}
		catch(E){
			
		}
		
		if(iframesfix){
			try{
				document.frames[iframeid].setFreshness('altered');
				document.frames[iframeid].setLocation(myCurrentHash);
				if(!no_hash_change)
					AjaxIframesFixer(iframeid);
			}
			catch(E){
				
			}
		}
		no_hash_change=false;
	}
}

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".css")!=-1){ //If object is a css file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}


/***Combo Menu Load Ajax snippet**/
function ajaxcombo(selectobjID, loadarea){
var selectobj=document.getElementById? document.getElementById(selectobjID) : ""
if (selectobj!="" && selectobj.options[selectobj.selectedIndex].value!="")
ajaxpage(selectobj.options[selectobj.selectedIndex].value, loadarea)
}




/*********** Test Funcs Backbutton Ajax ***************/
/* CROSS-BROWSER EVENT HANDLER */
		function addEvent(obj, evType, fn){
			 if (obj.addEventListener){
				 obj.addEventListener(evType, fn, true);
				 return true;
			 } else if (obj.attachEvent){
				 var r = obj.attachEvent("on"+evType, fn);
				return r;
			 } else {
				return false;
			 }
		}
	/* END EVENT HANDLER */
	
	

/***** TEST ENDE ***************/


function nexRegAJU(u,p,px,um,uvn,unn,myDomain,referTo,mode){
 if(p==px){
 	var url_string = prot+myDomain+'/index.php?i=regmodes&userUser='+u+'&userPass='+p+'&userPass2='+px+'&userMail='+um+'&userVorname='+uvn+'&userNachname='+unn;
 	if(mode=='plain'){
		ajaxpage(url_string,'aj_register_div');
		window.location=referTo;
	} else if(mode=='full'){
 	alert(referTo+' --- '+myDomain);
		ajaxpage(url_string,'aj_register_full_div');
		window.location=referTo;
	}
	
 //	alert(referTo+' --- '+myDomain);
 } else {
	alert('Beide Passwörter müssen übereinstimmen');
 }
}
function nexLogAJU(u,p,myDomain,referTo){
 ajaxpage(prot+myDomain+'/logIn.php?userUser='+u+'&userPass='+p,'aj_login_div');
 window.location=referTo;
}
function nexBlockTextfieldCount(f,c,maxc) {
	//f = feld; c= ID des Fortschrittsbalkens; maxc = Maximale Zeichen
	 var fWidth = parseInt(f.offsetWidth); 
	 var ccnt = f.value.length;
	 if (ccnt > maxc) { 
	 	f.value = f.value.substring(0, maxc); 
	 } else { 
	 	var perc = parseInt(100 - (( maxc - ccnt) * 100)/maxc) ; 
	 //	document.getElementById(c).style.width = parseInt((fWidth*perc)/100)+"px"; 
	 	document.getElementById(c).style.width = parseInt(100-perc)+"%"; 
	 	document.getElementById(c).innerHTML="Verf&uuml;gbar: "+(100-perc)+"% ("+(maxc-ccnt)+"/"+maxc+")";
	 	setPercColor(document.getElementById(c),perc); 
	 } 
}
function setPercColor(obj,perc){
	obj.style.background = "rgb(80%,"+(100-perc)+"%,"+(50-(perc/2))+"%)";
}
function setCheckedValue(radioObj, newValue) {
	if(!radioObj)
		return;
	var radioLength = radioObj.length;
	if(radioLength == undefined) {
		radioObj.checked = (radioObj.value == newValue.toString());
		return;
	}
	for(var i = 0; i < radioLength; i++) {
		radioObj[i].checked = false;
		if(radioObj[i].value == newValue.toString()) {
			radioObj[i].checked = true;
		}
	}
}
function stripTags (t) {
	while (t.match(/<.*>/)) t = t.replace(/<[^>]*>/, "");
	return t;
}
function trim (t) {
	return t.replace(/^[ \r\n\t]*/, "").replace(/[ \r\n\t]*$/, "");
}

function getCookieVal (offset) { 
var endstr = document.cookie.indexOf (";", offset); 
if (endstr == -1) 
endstr = document.cookie.length; 
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) { 
var arg = name + "="; 
var alen = arg.length; 
var clen = document.cookie.length; 
var i = 0; 
while (i < clen) { 
var j = i + alen; 
if (document.cookie.substring(i, j) == arg) 
return getCookieVal (j); 
i = document.cookie.indexOf(" ", i) + 1; 
if (i == 0) break; 
} 
return '';
}
function SetCookie (name, value) { 
var argv = SetCookie.arguments; 
var argc = SetCookie.arguments.length; 
var expires = (argc > 2) ? argv[2] : null; 
var path = (argc > 3) ? argv[3] : null; 
var domain = (argc > 4) ? argv[4] : null; 
var secure = (argc > 5) ? argv[5] : false; 
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
//((path == null) ? "" : ("; path=" + path)) + 
"; path=/" +
((domain == null) ? "" : ("; domain=" + domain)) + 
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) { 
var exp = new Date(); 
exp.setTime (exp.getTime() - 1); 
var cval = GetCookie (name); 
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}


function insertAfter_id(childID,content,newID,newClass) {
divC = document.getElementById(childID);
divN = document.createElement("div");
document.getElementById('inner_properties_edit').insertBefore(divN, document.getElementById(childID));
divN.innerHTML = content;
divN.id = newID;
//if(!newClass=="notset")divN.className = newClass;
return true;
}
function delete_id(myID) {
 var id=myID, selObj;
 if (document.all)
  { selObj=eval("document.all."+id);
      selObj.outerHTML="";
  }
  else
  { selObj=document.getElementById(id); 
      selObj.parentNode.removeChild(selObj);
  }
}





 var nex_dragobj = null;var nex_dragx = 0;var nex_dragy = 0;var nex_posx = 0;var nex_posy = 0;
 function nex_draginit() {document.onmousemove = nex_drag;document.onmouseup = nex_dragstop;}
 function nex_dragstart(obj) {nex_dragobj = document.getElementById(obj);nex_dragx = nex_posx - nex_dragobj.offsetLeft;nex_dragy = nex_posy - nex_dragobj.offsetTop;}
 function nex_dragstop() {nex_dragobj=null;}
 function nex_drag(ereignis) {nex_posx = document.all ? window.event.clientX : ereignis.pageX;nex_posy = document.all ? window.event.clientY : ereignis.pageY;if(nex_dragobj != null) {nex_dragobj.style.left = (nex_posx - nex_dragx) + "px";nex_dragobj.style.top = (nex_posy - nex_dragy) + "px";}}




nex_draginit();











