﻿// <summary>
// Some common javascripts (only client side)
// </summary>
// <remarks>
// <para>version: 1.0.0.0</para>
// <para>Filename: Common.js</para>
// <para>created: 2009/03/05</para>
// <para>last revision: 2009/03/05</para>
// <para>revision history:</para>
// <para>- 2009/03/05 - AK - class created.</para>
// </remarks>

function popWindow (url,name,params) {
//fuer Fenster die auf onlick in einem a href aufgehen
    pwin=window.open(url, name, params);
    pwin.focus();
    return false;
}

function closeWindow() {
    if ((typeof newWin == 'object') && (! (newWin.closed))) newWin.close();
}

var popupUnternehmensgruppe = "";

function openPopupUnternehmensgruppe()
{
    var popupUnternehmensgruppe = window.open("http://www.nestle.de/corporate/Templates/Pages/unternehmensgruppe.html","unternehmensgruppePopup","width=355,height=380,resizable=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no");
    popupUnternehmensgruppe.focus();
}

function openRegistrationPopup(url)
{
	var openRegistrationPopup = window.open(url,"Anmeldung","width=793,height=720,left=50,top=50,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no");
	openRegistrationPopup.focus();
}

function openChangeProfilePopup(url)
{
	var openChangeProfilePopup = window.open(url,"Bearbeiten","width=793,height=720,left=50,top=50,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no");
	openChangeProfilePopup.focus();
}

function openPopup(url, name)
{
	var openPopup = window.open(url,name,"left=50,top=50,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no");
	openPopup.focus();
}

function openSizedPopup(url, name, width, height)
{
	var openSizedPopup = window.open(url,name,"width=" + width + ",height=" + height + ",left=50,top=50,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no");
	openSizedPopup.focus();
}