function Go(url)
{	href=url;
	document.frm_go.action=href;
	document.frm_go.target='';
	document.frm_go.submit();
}

function img_preview(img){
	var popup = window.open(img, "popup", "height=520, width=520, location=no, status=no, toolbar=no, scrollbars=no");
	popup.focus();
}

function GoParameter(url, parameter)
{	href=url;
 	document.frm_go.action=href;
	document.frm_go.target='';
	document.frm_go.pageparameter.value=parameter;
	document.frm_go.submit();		
}

function menu(st){
	var f=new Array();
	f[0]="basket";
	f[1]="adress";
	f[2]="mailfax"; 
	var d=false;
	for(var c=0; c<f.length; c++){
		if(document[f[c]]){
			d=document[f[c]];
		}
	}
	//alert(d);
	if(d){
		d.status.value=st;
		d.submit();
	}
}

function wunschzettel(){
	document.order.modus.value='wunsch';
	document.order.submit();
}

function order(){
	document.basket.status.value='auth_me';
	document.basket.submit();
}

function edit_adress(a){
	document.adress.status.value='adress';
	document.adress.edit_adress.value=a;
	document.adress.submit();
}

function register(){
	document.login.action='register.php';
	document.login.status.value='shop_register';
	document.login.submit();
}

function bestnr(b, p){
	document.frm_go.action=p;
	document.frm_go.target='';
	document.frm_go.bestnr.value=b;
	document.frm_go.submit();
}

function offset(q, k, o){
	//document.frm_go.action=;
	document.frm_go.target='';
	document.frm_go.q.value=q;
	document.frm_go.kid.value=k;
	document.frm_go.offset.value=o;
	document.frm_go.submit();
}

function pid(b, p){
	document.frm_go.action=p;
	document.frm_go.target='';
	document.frm_go.pid.value=b;
	document.frm_go.submit();
}

function kid(b, p){
	document.frm_go.action=p;
	document.frm_go.target='';
	document.frm_go.kid.value=b;
	document.frm_go.submit();
}

function warn(msg){
	window.alert(msg);
}
