/*
function reallyChangeLang(CAT,LANG)
{
	Check = confirm("Change of language will cause in loss of all form data at this stage of registration.\n\nDo you really want to change the language?");
	if(Check == false) false;
		else window.location.href = "index.php?cat="+CAT+"&LANG="+LANG;
}
*/


function printInvoice() { invoice = window.open("invoice.php", "Print","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=650,height=800"); }

function printInvoiceReg() { invoice = window.open("invoice_reg.php", "Print","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=650,height=800"); }

function printInvoiceOther() { invoice = window.open("invoice_others.php", "Print","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=650,height=800"); }

function printInvoiceMerchant() { invoice = window.open("invoice_merchant.php", "Print","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=650,height=800"); }




function printVersion(OHO) {
	impressum = window.open("print.php?HGK="+OHO,"Print","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=575,height=650");
}

function preview(AID) {
	impressum = window.open("preview.php?AID="+AID,"Preview","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=600,height=600");
}

function showCountrys() {
	invoice = window.open("countries.php", "Print","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=650,height=800");
}

function showParti(PID) {
	impressum = window.open("admin/showParti.php?PID="+PID,"Preview","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=400,height=630");
}

function reallyDelAbstr(AID)
{
	Check = confirm("Do you really want to delete your abstract?");
	if(Check == false) false;
		else window.location.href = "index.php?cat=submission&delAbstr=go&AID="+AID;
}

function reallyDelAbstrLate(AID)
{
	Check = confirm("Do you really want to delete your abstract?");
	if(Check == false) false;
		else window.location.href = "index.php?cat=submission_late&delAbstr=go&AID="+AID;
}


function CountMax(){
  var feld1 = document.getAbstracts.description;
  var feld2 = document.getAbstracts.counter;
  var wert,max;
  max = 2000;
  wert = max-feld1.value.length;
  if (wert < 0) {
    alert("Maximum number of characters " + max +
    " (including spaces.");
    feld1.value = feld1.value.substring(0,max);
    wert = max-feld1.value.length;
    feld2.value = wert;
  } else {
    feld2.value = max - feld1.value.length;
  }
}


function printChairAbstractList() {
	invoice = window.open("chairs/printabstractList.php", "Print","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,top=30,left=30,width=700,height=800");
}
