
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function holehoehe ()
	{
	var myWidth = 0, myHeight = 0;
	if( typeof(window.innerWidth) == 'number' ) 
		{
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
		} 
	  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
		{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		} 
	  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
		{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
		}

	if (myHeight>0) 
		{
		$sizer=myHeight-114;
		document.write('<br><img border=0 src="/images/pt.gif" width="1" height="'+$sizer+'">');
		//document.getElementById("hoehenspacer").style.height = $sizer+"px";
		}
	}



function modcartform ($prodid,$newval)
	{

	document.cartform.cartmodline.value=$prodid;
	document.cartform.cartmodqty.value=$newval;
	
	
	document.cartform.submit();
	}