function getElement(aID)  {
	var rv = (document.getElementById) ? document.getElementById(aID) : document.all[aID];
	return rv;
	}

function Commit(url,Comtext)	{
	if(confirm(Comtext) == true)	{
		document.location.href=url;
		}
	else	{
		}
	}

function openWin(url,breite,hoehe,scroll)	{
	if(scroll == 0) {
		scrollbars = "no";
		}
	else	{
		scrollbars = "yes";
		}
	StrOpen="source=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scrollbars+",resizable=yes,copyhistory=no,width="+breite+",height="+hoehe+",left=120,top=50,screenX=120,screenY=50";
	popupWindow = window.open(url,"DomWin", StrOpen);
	if (popupWindow)	{
		if (popupWindow.focus)	{
			popupWindow.focus();
			}
		}
	}

function sendPayForm(paywith,lang) {
  if(paywith == 'PayPal') {
/*    document.getElementById('paypaypal').action='https://www.paypal.com/cgi-bin/webscr';*/
    getElement('paypaypal').action='https://www.paypal.com/cgi-bin/webscr';
    getElement('paypaypal').submit();
    }
  else if(paywith == 'PayPalSandbox') {
/*    document.getElementById('paypaypal').action='https://www.paypal.com/cgi-bin/webscr';*/
    getElement('paypaypal').action='https://www.sandbox.paypal.com/cgi-bin/webscr';
    getElement('paypaypal').submit();
    }
  else  {
    getElement('paypaypal').action='http://www.samedia.eu/content/' + lang + '/gr-domains/order1/?step=thx';
    getElement('paypaypal').submit();
    }
  }
