<!--
/**
 * Functions
 * @package CoMa
 * @subpackage inc
 * @author Birgit Kohl <bk@pixelwings.com>, Stefan Lingler <sl@pixelwings.com>
 * @copyright Pixelwings Medien GmbH
 */

function op(e) {
	var w,u;
	u=window.location.href;
	w=window.open(u+(u.indexOf('?')!=-1?'&':'?')+'style=popup'+(e.c?'&popup='+e.c:'')+(e.x?'&x='+e.x:'')+(e.y?'&y='+e.y:''),'POPUP','width='+(e.x?e.x:'')+'px,height='+(e.y?e.y:'')+'px,scrollbars=1,resizable=1,menubar=0,location=0');
	w.focus();
	return true;
}
function ri(e,d) {
	if (e.value==d) e.value='';
}
function s(a,b) {
	if (document.forms[a]==undefined) return false;
	if (b!=undefined) {
		for (var c in b) {
			document.forms[a][c].value=b[c];
		}
	}
	document.forms[a].submit();
	return true;
}
function fs() {
	return true;  //deactivate
	
	var width_scrollbar=22;
	var width_website=990;
	var padding_left=45;

	var w,h,l,a,c,bw,cw;
	a=document.getElementById('f_l');
	w=(window.innerWidth!=null?window.innerWidth:document.documentElement && document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null);
	//h=window.innerHeight!=null?window.innerHeight:document.documentElement && document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null;
	if (!w || !a) return false;
	w-=width_scrollbar;
	bw=width_website;
	l=bw+padding_left;
	cw=w<l?(w>bw?w:bw):l;
	a.style.width=cw-bw+'px';
	return true;
}
function load_box(r,args) {
	var a,p;
	a=document.getElementById(args.t);
	if (!a) return false;
	
	if (!r) {
		p=args;
		HttpRequest({url:globals.url+'?mode=js_sp',method:'POST',parameter:p,callback:'load_box',args:args});
	}
	else {
		if (r.status) {/*a.innerHTML=r.status;*/}
		else if (r.data) a.innerHTML=r.data;
	}
	return true;
}
function fa(a,i) {
	document.forms.form['_action'].value=a;
	if (i) document.forms.form['_item'].value=i;
	document.forms.form.submit();
}
//-->
