/* needet common functions */
var selected;var submitter=null;
function submitFunction() {submitter=1;}
function popupWindow(url) {window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')}
function selectRowEffect(object,buttonSelect,fname,radio) { 
  if (!fname) fname="checkout_payment";if (!radio) radio="payment"; 
  if (!selected) {if(document.getElementById) {selected=document.getElementById('defaultSelected');}else{selected=document.all['defaultSelected'];}}
  if (selected) selected.className='moduleRow';object.className='moduleRowSelected';selected=object;
  if (document.getElementById(fname).elements[radio][0]) {document.getElementById(fname).elements[radio][buttonSelect].checked=true;}}
function rowOverEffect(object) {if (object.className=='moduleRow') object.className='moduleRowOver';}
function rowOutEffect(object) {if (object.className=='moduleRowOver') object.className='moduleRow';}
function popupImageWindow(url) {window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')}
function oOpen(tURL,scrWidth,scrHeight,p) {
var oTop = (screen.height/2)-(scrHeight/2);var oLeft = (screen.width/2)-(scrWidth/2);var pStr = "width="+ scrWidth +",height="+ scrHeight +",toolbar=no";
if (p==1) {pStr += ",scrollbars=no,resizable=no,top=0,left=0";w=window.open(tURL,'oPWin',pStr);
} else if (p==2) {pStr += ",scrollbars=yes,resizable=yes,top="+ oTop +",left="+ oLeft;w=window.open(tURL,'oPWin',pStr);
} else {pStr += ",scrollbars=yes,resizable=no,top=0,left=0";w=window.open(tURL,'oPWin',pStr);}
w.focus();}
function oProductMenu(url,selObj,restore){
var id=selObj.options[selObj.selectedIndex].value;var refurl = url +"?noprint=1&products_id=";
pid=id.split("_");if(pid[0]>0){eval(oOpen(refurl+pid[0],'640','600','2'));}
if (restore) selObj.selectedIndex=0;}
function oJumpMenu(url,selObj,restore){
var np=selObj.options[selObj.selectedIndex].value;p=oGetPQ('sort');
if(np != p){eval("self.location.href='"+ url +"&sort="+np+"'");}
if (restore) selObj.selectedIndex=0;}
function oGetPQ(param){
var ll,fl, pV, rS; var qS=document.location.search; pV="";
if(qS.length>1){ qS=qS.substr(1);fl=qS.indexOf(param);if(fl!=-1){fl+=param.length + 1;ll=qS.indexOf('&',fl);if(ll== - 1 )ll = qS.length;pV = qS.substring(fl,ll);rS=new RegExp(" ",'g');pV=pV.replace( rS,'+' );fl=pV.indexOf('=',0);pV=pV.substring( fl+1 );}}
return pV;}
function printYear(){var now = new Date();var year = now.getYear();if (year<999) year+=1900;return year;}
function click (e) {
	if (!e)
	e = window.event;
		if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
			if (window.opera)
            window.alert("Sorry: Diese Funktion ist deaktiviert.");
            return false;
		}
}                   
  if (document.layers)
     document.captureEvents(Event.MOUSEDOWN);
     document.onmousedown = click;
     document.oncontextmenu = click;
     
