function newWind(url){

	window.open(url,"","width=510,height=550,status=1");
	return false;
}

function maxImage(img,LangId){
	if(LangId=="34")	LangId="lt";
	if(LangId=="5")		LangId="en";

	var Close=new Array()
		Close["lt"]="Uždaryti";
		Close["en"]="Close";

	var title = document.title;
	var dir = "http://www.cramm.lt/EasyAdmin/sys/photos/originals/";

	var html="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";
	html+="<html>\n";
	html+="<head>\n";
	html+="<title>" + title + "</title>\n";
	html+="<meta http-equiv='imagetoolbar' content='no'>\n";
//	html+="<meta http-equiv='Content-Type' content='text/html; charset=windows-1257'>\n";
	html+="</head>\n";
	html+="<body bgcolor='#eff6fe' topmargin=15 leftmargin=15 marginheight=15 marginwidth=15>";
	html+="<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'><tr><td align='center'>";
	html+="<a onClick='window.close()'><img src='"+dir+img+"' border='0' alt='"+Close[LangId]+"'></a>";
	html+="</td></tr></table>";
	html+="</body>\n";
	html+="</html>\n";

	var Window2=open("","",",scrollbars=yes, resizable=yes, location=no, menubar=no, status=no,");
	Window2.document.open();
	Window2.document.write(html);
	Window2.document.close();
}


// Error occured, wrong password or e-mail




// Licence End




function mouseOver(id){
	if (document.getElementById(id+"dec1")){
		objdec1=document.getElementById(id+"dec1");
		if (document.getElementById(id+"c") && document.getElementById(id+"bg")){
			objc=document.getElementById(id+"c");
			objc.style.color='#3D6484';
			objbg=document.getElementById(id+"bg");
			objbg.style.backgroundColor='#E6E6E6';


		}
		objdec1.style.backgroundColor='#E6E6E6';
	}
}
function mouseOut(id){
	if (document.getElementById(id+"dec1")){
		objdec1=document.getElementById(id+"dec1");
		if (document.getElementById(id+"c") && document.getElementById(id+"bg")){
			objc=document.getElementById(id+"c");
			objc.style.color='white';
			objbg=document.getElementById(id+"bg");
			objbg.style.backgroundColor='#999999';
		}
		objdec1.style.backgroundColor='#999999';
	}
}

function input_handler(message){
	window.status = message;
}

function DoAlert(msg){
	var title = document.title;

	var html="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";
	html+="<html>\n";
	html+="<head>\n";
	html+="<title>" + title + "</title>\n";
	html+="<meta http-equiv='imagetoolbar' content='no'>\n";
//	html+="<meta http-equiv='Content-Type' content='text/html; charset=windows-1257'>\n";
	html+="</head>\n";
	html+="<body bgcolor='#FFFFFF' topmargin=15 leftmargin=15 marginheight=15 marginwidth=15>";
	html+="<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'><tr><td align='center'>";
	html+="<a onClick='window.close()'>" + "<span style='font-size: 13px; font-family: Tahoma; color: #BA0117;'>" + msg + "</span>" + "</a>";
	html+="</td></tr></table>";
	html+="</body>\n";
	html+="</html>\n";

	var Window2=open("","","height=150,width=350,left=300,top=300,scrollbars=yes, resizable=yes, location=no, menubar=no, status=no,");
	Window2.document.open();
	Window2.document.write(html);
	Window2.document.close();
}

function openpopup(popurl){
var winpops=window.open(popurl,"","width=497,height=398")
}