// toggle visibility for productmodules longdescription

function toggle( targetId ){
	if (document.getElementById){

		target = document.getElementById( targetId );
		expandlink = document.getElementById( targetId+"e" );
		collapselink = document.getElementById( targetId+"c" );

		target.style.display = ( target.style.display == "none" ) ? "" : "none";
		expandlink.style.display = ( expandlink.style.display == "none" ) ? "" : "none";
		collapselink.style.display = ( collapselink.style.display == "none" ) ? "" : "none";

	}
}


//	popup-script

var p_pic_features = 'location=0,statusbar=0,menubar=0,toolbar=0,directories=0,scrollbars=0,resizable=0,width=383,height=412';
var p_tell_features = 'location=0,statusbar=0,menubar=0,toolbar=0,directories=0,scrollbars=0,resizable=0,width=730,height=412';
var p_all_features = 'location=0,statusbar=0,menubar=0,toolbar=0,directories=0,scrollbars=0,resizable=0,width=770,height=550';
var p_agb_features = 'location=0,statusbar=0,menubar=0,toolbar=0,directories=0,scrollbars=1,resizable=0,width=610,height=556';

function pop ( src, type, features ) {
	if( arguments.length==1 ) var type = 'all';
	
	switch( type ) {
		case "pic":	
			var foo;
			window.open(src.getAttribute('href'), src.getAttribute('target') || 'p_pic', arguments.length > 2 ? features : p_pic_features).focus();
			break;
		
		case "tell":
			window.open(src.getAttribute('href'), src.getAttribute('target') || 'p_tell', arguments.length > 2 ? features : p_tell_features).focus();
			break;

		case "agb":
			window.open(src.getAttribute('href'), src.getAttribute('target') || 'p_agb', arguments.length > 2 ? features : p_agb_features).focus();
			break;


		default:
			window.open(src.getAttribute('href'), src.getAttribute('target') || 'p_all', arguments.length > 2 ? features : p_all_features).focus();
	}
}


//	prompt for confirmation on users logout

function logoutUser() {
	return confirm("Wenn Sie sich abmelden wird der Bestellvorgang abgebrochen und Ihr Warenkorb wird geleert \n Möchten Sie fortfahren?");
	}

function goodbye() {
	return confirm("Sie haben sich erfolgreich vom System abgemeldet.");
	}

