
var CORRW =0; 
var CORRH =0;
if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
	CORRW =16; CORRH =16;	
}

function adminEditUser(pid,type,uid) {
	var theAddr = "admin.php?action=login&chmod=1&id="+pid+"&md="+type+"&uid="+uid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =4; CORRH =14;	
	}
	loadwindow(theAddr,393+CORRW,270+CORRH);
}
//--------------------------------------

function adminEditUserRights(pid,type,uid) {
 var theAddr = "admin.php?action=login&chmod=1&id="+pid+"&md="+type+"&uid="+uid;
 if (type.match('activate') != null) {
  document.getElementById("cframe").src=theAddr;
  return;
 }  
 if (type == 'nsvpageright') {
  loadwindow(theAddr,522+CORRW,263+CORRH);
 } else {
  loadwindow(theAddr,454+CORRW,114+CORRH);
 } 
}
//--------------------------------------

function adminEditPageTitle(pid,type,sth) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,460+CORRW,120+CORRH);
}
//--------------------------------------

function adminEditPageText(pid,type,tid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&tid="+tid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =0; CORRH =-5;	
	}	
	loadwindow(theAddr,450+CORRW,292+CORRH);
}
//--------------------------------------
function adminEditPageBaner(pid,type,bid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&bid="+bid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =0; CORRH =-5;	
	}	
	loadwindow(theAddr,550+CORRW,350+CORRH);
}
//--------------------------------------
function adminEditPageBoxRabatte(pid,type,bid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&bid="+bid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =0; CORRH =-5;	
	}	
	loadwindow(theAddr,490+CORRW,270+CORRH);
}
//------------------------------------------
function adminEditPageBoxTicker(pid,type,bid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&bid="+bid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =0; CORRH =-5;	
	}	
	loadwindow(theAddr,490+CORRW,270+CORRH);
}
//------------------------------------------
function adminEditSvSponsorRabbat(pid,type,bid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&bid="+bid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =0; CORRH =-5;	
	}	
	loadwindow(theAddr,500+CORRW,550+CORRH);
}

function adminEditPageText2(pid,type,tid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&tid="+tid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =0; CORRH =-5;	
	}		
	loadwindow(theAddr,450+CORRW,292+CORRH);
}
//--------------------------------------

function adminEditSvDoc(pid,type,did) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&did="+did;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	loadwindow(theAddr,490+CORRW,222+CORRH);
}
//--------------------------------------

/*
function adminEditSvMember(pid,type,mid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&mid="+mid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,330,230);
}
//--------------------------------------
*/

function adminEditSvHead(pid,type,hid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&heid="+hid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =10; CORRH =25;	
	}					
	loadwindow(theAddr,455+CORRW,350+CORRH);
}
//--------------------------------------

function adminEditSvJudge(pid,type,jid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&juid="+jid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =10; CORRH =25;	
	}					
	loadwindow(theAddr,455+CORRW,350+CORRH);
}
//--------------------------------------

function adminEditSvStructure(pid,type,diid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&diid="+diid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =10; CORRH =20;	
	}				
	loadwindow(theAddr,330+CORRW,170+CORRH);
}
//--------------------------------------

function adminEditSvPlace(pid,type,plid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&plid="+plid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =10; CORRH =10;	
	}	
	loadwindow(theAddr,460+CORRW,485+CORRH);
}
//--------------------------------------

function adminEditSvSponsor(pid,type,spoid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&spoid="+spoid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,485+CORRW,530+CORRH);
}

//--------------------------------------
function adminProcessSvSponsor(pid,spoid,seqno) {
	var theAddr = "admin.php?action=login&id="+pid+"&md=procsvsponsor&spoid="+spoid+"&spseqno="+seqno; 	
	loadwindow(theAddr,485+CORRW,410+CORRH);
}
//--------------------------------------

function adminEditSvCalendar(pid,type,cid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&cid="+cid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =10; CORRH =20;	
	}
	loadwindow(theAddr,405+CORRW,260+CORRH);
}
//--------------------------------------

function adminEditSvCalendar4div(pid,type,cid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&cid="+cid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,405+CORRW,260+CORRH);
}
//--------------------------------------

function adminEditEsaayTiny(pid,type,estiid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&estiid="+estiid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =4; CORRH =3;	
	}		
	loadwindow(theAddr,470+CORRW,330+CORRH);
}
//--------------------------------------

function adminEditEsaaySmall(pid,type,essmid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&essmid="+essmid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =7; CORRH =12;	
	}			
	loadwindow(theAddr,490+CORRW,330+CORRH);
}
//--------------------------------------

function adminEditEsaayShort(pid,type,esshid) {
	
	alert("x");
	
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&essayid="+esshid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	loadwindow(theAddr,405+CORRW,260+CORRH);
}
//--------------------------------------

function adminEditDivisionTeam(pid,type,diteid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&diteid="+diteid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,448+CORRW,352+CORRH);
}
//--------------------------------------
function adminEditDivisionLinks(pid,type,divlid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&divlid="+divlid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,445+CORRW,170+CORRH);
}
//--------------------------------------
function adminEditDivisionTraining(pid,type,dittid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&dittid="+dittid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,405+CORRW,260+CORRH);
}
//--------------------------------------

function adminEditDivisionSeason(pid,type,diseid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&diseid="+diseid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =3; CORRH =0;	
	}
	loadwindow(theAddr,390+CORRW,138+CORRH);
}
//--------------------------------------

function adminEditSvShopItem(pid,type,shiid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&shiid="+shiid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,482+CORRW,454+CORRH);
}
//--------------------------------------

function adminEditTrainer(pid,type,ditrid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&ditrid="+ditrid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =10; CORRH =20;	
	}					
	loadwindow(theAddr,410+CORRW,180+CORRH);
}
//--------------------------------------

function adminEditTraining(pid,type,ditrgid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&ditrgid="+ditrgid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,455+CORRW,230+CORRH);
}
//--------------------------------------

function adminEditSuccess(pid,type,disuid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&disuid="+disuid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,400+CORRW,230+CORRH);
}
//--------------------------------------

function adminEditPageGuestBook(pid,type,gbid,pgno) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&gbid="+gbid+"&pgno="+pgno;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,574+CORRW,320+CORRH);	
}
//--------------------------------------

function adminEditSvPeople(pid,type,poid) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type+"&poid="+poid;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	if ((objApi.isIE6 == true)||(objApi.isM4 == true)) {
		CORRW =10; CORRH =25;	
	}					
	loadwindow(theAddr,455+CORRW,410+CORRH);
}
//--------------------------------------

function adminEditASWord(pid,type,sth) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 
	loadwindow(theAddr,460+CORRW,303+CORRH);
}

function adminEditASEmail(pid,type,sth) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type;
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,460+CORRW,303+CORRH);
}

function adminEditASDomain(pid,type,sth) {
	var theAddr = "admin.php?action=login&id="+pid+"&md="+type;	
	if (type.match('activate') != null) {
		document.getElementById("cframe").src=theAddr;
		return;
	} 	
	loadwindow(theAddr,460+CORRW,303+CORRH);
}

