
function opencreditcardinfo() {
	window.open('http://hungary.egerhotels.com/etc/ccgar.htm', 'ccgarwin', 'width=400, height=230, scrollbars=no, location=no, menubar=no, resizable=yes, status=no');
}
function opentaxiinfo() {
	window.open('http://hevizhotels.com/taxi.html', 'ccgarwin', 'width=400, height=230, scrollbars=yes, location=no, menubar=no, resizable=yes, status=no');
}

function winOpen(page,leftCorner,topCorner,windowWidth,windowHeight) {
 window.open(page,"new","left=" + leftCorner + ",top=" + topCorner + ",width=" +
 windowWidth + ",height=" + windowHeight + ",scrollbars=yes,resizable=yes");
}

function ShowHideCCInfo(divId) {
	var DivCC = MM_findObj(divId);
	if (document.Form.Guarantee[0].checked) {
		DivCC.style.display="";
		CopyCCInfo();
		}
	else {
	   DivCC.style.display="none";
	   ClearCCInfo();
	  }
}

function CopyCCInfo() {
  document.Form.CName.value = document.Form.FirstName.value+" " +document.Form.LastName.value;
}

function ClearCCInfo() {
  document.Form.CName.value = "";
  document.Form.CType.value = "";
  document.Form.CNumber.value = "";
  document.Form.CValidMonth.value = "";
  document.Form.CValidYear.value = "";
  document.Form.CLTNumber.value = "";
}


	function MM_findObj(n, d) { //v4.0
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && document.getElementById) x=document.getElementById(n); return x;
	}



