var oNewWindow;

function popup_printview(rbid,pg) {
	oNewWindow = window.open('/print.asp?rbid='+rbid+'&pg='+pg, 'eb_print', 'width=600,height=500,resizable=yes,scrollbars=yes');
	
	if (window.focus){	
		oNewWindow.focus();
	}
}

function popup_zoomview(rbid) {
	oNewWindow = window.open('/zoom.asp?id='+rbid, 'eb_zoom', 'width=1,height=1,resizable=yes,scrollbars=no')

	if (window.focus){	
		oNewWindow.focus();
	}
}

function popup_sendfriend(rbid,pg) {
	oNewWindow = window.open('/sendfriend.asp?rbid='+rbid+'&pg='+pg, 'eb_sendfriend', 'width=320,height=350,resizable=no,scrollbars=no');

	if (window.focus){	
		oNewWindow.focus();
	}
}

function go_url(url) {
	if (url != '0')
		window.location.href = url;
}

//** shop functions **//
function popup_shopzoomview(spid) {
	oNewWindow = window.open('/shopzoom.asp?id='+spid, 'es_zoom', 'width=1,height=1,resizable=yes,scrollbars=no')

	if (window.focus){	
		oNewWindow.focus();
	}
}

function popup_shoporder() {
	oNewWindow = window.open('/printorder.asp', 'es_order', 'width=620,height=460,resizable=yes,scrollbars=no')

	if (window.focus){	
		oNewWindow.focus();
	}
}
	
function shop_confirm_order()
{
 
   // var message = 'Die Online-Bestellung ist in Kürze verfügbar!\n\n Bitte vorrübergehend per Email (info@modellbahnritzer.de),\n per Fax (+49 911 342756)\n oder per Telefon (+49 911 346507) bestellen.\n\nBestellung anzeigen?';
    var message = 'Bestellung zum Druck anzeigen?';
   
	var return_value = confirm(message);

    // TEST TO SEE IF TRUE|FALSE RETURNED
    if ( return_value == true )
        {
        // 'OK' SCRIPT 
		popup_shoporder()
        }
    else
        {
        // 'CANCEL' 
        }
}

function help(id) {
		//var span = document.getElementById('rowspan_'+id).getAttribute('rowspan',0);
		var visible = document.getElementById('description_'+id).style.display;

		//if((span == 1 || span == "1" || span == null) && visible == "none") {
		if( visible == "none") {
			//document.getElementById('rowspan_'+id).setAttribute('rowspan',"2",0);
			document.getElementById('description_'+id).style.display = '';
		}
		else {
			//document.getElementById('rowspan_'+id).setAttribute('rowspan',"1",0);
			document.getElementById('description_'+id).style.display = 'none';
		}
		
	}
 

