

	function popup(url, width, height, name, addon)
	{
		if(addon != false)
		   	myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',' + addon + "'");
		else
		   	myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=no,locationbar=no,scrollbars=yes,dependent=yes' );

	}
 	function popupmenu(url, width, height, name)
	{
	   	myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=yes,toolbar=yes,locationbar=no,scrollbars=yes,dependent=yes' );
	}

	function popupumfrageprint(url, width, height, name)
	{
		myCMSFenster = window.open(url,'Empfehlung','width=595,height=600,status=no,resizable=yes,menubar=no,toolbar=no,locationbar=no,scrollbars=no,dependent=no' );
	}


	 function popupseiteempfehlen(url)
	{
		myCMSFenster = window.open(url,'Empfehlung','width=450,height=430,status=no,resizable=yes,menubar=no,toolbar=no,locationbar=no,scrollbars=no,dependent=no' );
	}
	function popupempfehlung(url)
	{
		myCMSFenster = window.open(url,'Empfehlungsnotiz','top=0,left=0,width=347,height=400,status=no,resizable=no,menubar=no,toolbar=no,locationbar=no,scrollbars=no,dependent=no' );
	}

	if(top.frames.length > 0)
   	top.location.href=self.location;

	function conf()
	{
		check = confirm("Wollen Sie das wirklich?");
		return check;
	}

	function conf_exp2nor()
	{
		check = confirm("Beim Wechsel des Modus gehen Änderungen verloren!");
		return check;
	}

	function shopuser_toggle_delivery_info()
	{
		if(document.USERINFO.delivery_address.checked == true)
		{
			document.USERINFO.d_company.disabled = false;
			document.USERINFO.d_department.disabled = false;
			document.USERINFO.d_partner.disabled = false;
			document.USERINFO.d_street.disabled = false;
			document.USERINFO.d_zip.disabled = false;
			document.USERINFO.d_city.disabled = false;
			document.USERINFO.d_tel.disabled = false;
			document.USERINFO.d_telsms.disabled = false;
			document.USERINFO.d_fax.disabled = false;
			document.USERINFO.d_email.disabled = false;
			document.USERINFO.d_www.disabled = false;
		}
		else
		{
			document.USERINFO.d_company.disabled = true;
			document.USERINFO.d_department.disabled = true;
			document.USERINFO.d_partner.disabled = true;
			document.USERINFO.d_street.disabled = true;
			document.USERINFO.d_zip.disabled = true;
			document.USERINFO.d_city.disabled = true;
			document.USERINFO.d_tel.disabled = true;
			document.USERINFO.d_telsms.disabled = true;
			document.USERINFO.d_fax.disabled = true;
			document.USERINFO.d_email.disabled = true;
			document.USERINFO.d_www.disabled = true;
		}
		return 0;
	}


function mouselinkover(cell) {
	if (!cell.contains(event.fromElement)) {
		cell.bgColor = '#999999';
	}
}
function mouselinkout(cell) {
	if (!cell.contains(event.toElement)) {
		cell.bgColor = '#cccccc';
	}
}
function mouselinkover2(cell) {
	if (!cell.contains(event.fromElement)) {
		cell.bgColor = '#999999';
	}
}
function mouselinkout2(cell) {
	if (!cell.contains(event.toElement)) {
		cell.bgColor = '#eeeeee';
	}
}
function mouselinkover3(cell) {
	if (!cell.contains(event.fromElement)) {
		cell.bgColor = '#999999';
	}
}
function mouselinkout3(cell) {
	if (!cell.contains(event.toElement)) {
		cell.bgColor = '#006699';
	}
}

