function showThumb( ID ) {
	img	=	document.getElementById( 'img' + ID );
	img.style.visibility = "visible";
}
function hideThumb( ID ) {
	img	=	document.getElementById( 'img' + ID );	
	img.style.visibility = "hidden";
}
function toAusf( ROW, ID ) {
	if( sel = document.getElementById( 'ausf' + ID ) ) {
		sel.selectedIndex	=	ROW;
		changeArtDetail(ID, sel)
	}
}
/*
	Verlinkt die Seite zur ausgewählten Bestellung
*/
function showOrder( id_bestellung, showAll )
{
	Rest	=	"";
	if( showAll == -1 )
	{
		Rest	=	"&complete=1";
	}
	location.href	=	"index.asp?action=myaccount&site=myorders&oid=" + id_bestellung + Rest;
}
function download( File ) {
//	dlwin	=	window.open("download.asp?filename=" + File, "", "width=50,height=50" );
//	dlwin.document.onload	=	"window.close()";
	window.open("documents/" + File, "", "width=800,height=600" );
}
function chImage( Src ) {
	img	=	get( "PIC" );
	img.src	=	Src;
}
function checkAreaSelection( TF ) {
	Anfang	=	"";
	if( LTF = get( "Land" ) ) {
		if( LTF.options[ LTF.selectedIndex ].value == "1" ) {
			if( TF.value.length > 3 ) {
					Anfang	=	"0" + TF.value.substring( 0, 1 );
			}
			if( TF.value.length > 4 ) {
				Anfang	=	TF.value.substring( 0, 2 );
			}
			if( Anfang != "" ) {
				if( SF = get( "plz_area" ) ) {
					for( i=0; i<SF.options.length; i++ ) {
						if( SF.options[ i ].text.search( Anfang ) > 0 ) {
							SF.selectedIndex	=	i;
							break;
						}
					}
				}
			}
		}
	}
}
