var poze;
function o(fileName,w,h)
	
	{
				
				if(poze) poze.close();
				X = (screen.width - 500)/2;
				Y = (screen.height - 600)/2;
												poze=window.open("about:blank","ss",'scrollbars=no,status=no,menubar=no,location=no,resizable=no,titlebar=no,width='+w+',height='+h+',left='+X+',top='+Y);
												poze.document.write('<html><head>');
												poze.document.write('<title>Picture</title>');
												poze.document.write('</head>');
												poze.document.write('<body bgcolor="#ffffff" style="margin:0">');
												poze.document.write('<img border="0" src="'+fileName+'" onClick="window.close();">');
												poze.document.write('</body></html>');
		
			
							poze.focus();
				return false;
	}
function checkForm() {
aFields = new Array('nume','phone','email');
aFieldsName = new Array('Nume','Telefon','E-mail');

	sErr = '';
	for (i=0;i<aFields.length;i++) {
		if (sErr=='' && (obj=document.getElementById(aFields[i]))!=null && obj.value.length<2) {
			sErr = "Va rugam completati campul '"+aFieldsName[i]+"' !";
			alert(sErr);
			obj.focus();
			return false;
		}//end_if
	}//end_if
	obj1 = document.getElementById('card_holder');
	obj2 = document.getElementById('card_type');
	obj3 = document.getElementById('date_exp');
	obj4 = document.getElementById('date_issue');
	obj5 = document.getElementById('card_no');
	obj6 = document.getElementById('cvc');
	
	//alert(obj.value);
	if((obj1.value != null && obj1.value.length > 0)||(obj2.value != null && obj2.value.length > 0)||(obj3.value != null && obj3.value.length > 0)||(obj4.value != null && obj4.value.length > 0)||(obj5.value != null && obj5.value.length > 0)||(obj6.value != null && obj6.value.length > 0))
	{
			aFields = new Array('card_holder','card_type','date_exp','date_issue','card_no','cvc');
			aFieldsName = new Array('Titularul cardului','Tipul cardului','data expirarii','Data emiterii','Numar de card','CVC');

	sErr = '';
	for (i=0;i<aFields.length;i++) {
		if (sErr=='' && (objj=document.getElementById(aFields[i]))!=null && objj.value.length<2) {
			sErr = "Va rugam completati campul '"+aFieldsName[i]+"' !";
			alert(sErr);
			objj.focus();
			return false;
		}//end_if
	}//end_if
	}
	
	
	return true;
}//end_function

function openwint(link,target)
{
window.open(link,target);
}
function openwin(link)
{
window.open(link,"_self");
}
function openpop(file,where,top,left,width,height)
{
window.open(file,"xxxxxxxxxx","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, title=no, width="+width+", height="+height+", top="+top+", left="+left);
}