window.focus();

<!-- Summierung von Zahlen in eforms -->

function FormatPrice(original_number, decimals) 
	{
    var result1 = original_number * Math.pow(10, decimals);
    var result2 = Math.round(result1);
    var result3 = result2 / Math.pow(10, decimals);
    return pad_with_zeros(result3, decimals);
	  }

function pad_with_zeros(rounded_value, decimal_places) {
    var value_string = rounded_value.toString();
    var decimal_location = value_string.indexOf(".");
    if (decimal_location == -1) {
      decimal_part_length = 0;
      value_string += decimal_places > 0 ? "," : "";
    }
    else {
      decimal_part_length = value_string.length - decimal_location - 1;
    }
    var pad_total = decimal_places - decimal_part_length;
    if (pad_total > 0) {
      for (var counter = 1; counter <= pad_total; counter++) {
        value_string += "0";
      }
    }
    return value_string;
  }

<!-- SSL Certifikat anzeigen-->

function ShowCert(sn)
{
window.open('http://www.trustcenter.de/cgi-bin/Search.cgi?Template=printable&SN='
+ sn,'Zertifikat','width=640,height=480,resizable,scrollbars,status');
}

function popupMessage() {

  var to = "info@sykosch.de";
  var cc = " ";
  var bcc = " ";
  var subject = "Kontaktanfrage an Sykosch Software direkt aus dem Internet";
  var body = "";

  var doc = "mailto:" + to;

  window.location = doc;
}

<!--Popup-->
function popUp(URL, id, scr, r, l, t, w, h) {
eval("page" + id +" = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + scr +',location=0,statusbar=0,menubar=0,resizable=' + r +',width=' + w +',height='+ h +',left=' + l +',top=' + t +'');");
}

var popupWindow;

<!-- Popup -->
function window_new( item, x, y, title )
{
 
popupWindow = window.open(item,title,"width="+x+",height="+y+",scrollbars=yes,top=30, left=20, screenX=0, screenY=0, resizable=yes, toolbar=no, location=no, menubar=no");
  
 if (!popupWindow) 
	{
	alert	('A C H T U N G  !\n\nIhr Internet-Browser hat die Anzeige eines neuen Fensters verhindert.\n\nBitte beachten Sie die oben eingeblendeten Hinweise, und deaktivieren\nSie den Popup-Blocker unter Extras/Einstellungen Ihres Internet-Browsers.\n\nBei Bedarf erreichen Sie unsere technische Service-Hotline\nvon Montag bis Freitag von 9:00 bis 17:00 Uhr unter:\n\nTelefon (09 00) 1 87 05 76*\n\n* 1,86 €/Min. aus dem deutschen Festnetz');
	}
else
	{
	<!-- thisWindow.moveTo((screen.width-x)/2,(screen.height-y)/3); -->
	 popupWindow.window.focus();
	}



}
	
         
<!-- Popup -->
function window_preview( item, x, y, title )
{
 var thisWindow;
 thisWindow = window.open(item,title,"width="+x+",height="+y+",scrollbars=yes,top=30, left=20, screenX=0, screenY=0, resizable=yes, toolbar=yes, location=no, menubar=yes");
 
 <!-- thisWindow.moveTo((screen.width-x)/2,(screen.height-y)/3); -->
 thisWindow.window.focus();
}


<!-- Protect Right Mouse Click -->

function right(e) {

if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Inhalt und Gestaltung der Internet-Seiten sind urheberrechtlich geschützt.\n\n    © 2007 Sykosch Software AG - Ein Mitglied der Haufe Mediengruppe");
return false;
}
return true;
}

/*
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
*/
