function popUpWindow(URL, Name, width, height, resizable, scrollbars) {
	popUp = window.open (URL, Name, 'toolbar=0,location=no,directories=0,status=0,menubar=0,resizable='+ resizable +',scrollbars='+ scrollbars +',width='+ width +',height='+ height);
	if (popUp.opener==null) popUp.opener=self;
	if (window.focus) popUp.focus();
}

function debug_form(form) {
	debug = window.open("","","location=no,menubar=yes,toolbar=no,status=no,resizable=yes,scrollbars=yes");
	debug.document.open;
	debug.document.write("form name = "+ form.name +"<br>");
	for(i=0; i<form.length; i++) {
		name = (form.elements[i].name!="")? form.elements[i].name : "<font color=green>noname</font>";
		debug.document.write(name +" = "+ form.elements[i].value +"<br>");
	}
	debug.document.close;
}

function getNumberOfDaysInMonth(year, month) {
	var LastDate = 31, fakeDate = new Date(year, month, LastDate), nextMonthDate = new Date(year, month+1, 1);
	while(fakeDate >= nextMonthDate) { //&&confirm(fakeDate +"\n"+ nextMonthDate)
		fakeDate = new Date(year, month, --LastDate);
	}
	return LastDate;
}

function renderEmailIcon() {
	document.write('<a href="mailto:bojan' + "@" + 'bjelic.net"><img src="images/icon-e-mail.gif" alt="" width="12" height="9" /></a>');
}
function renderEmailLink(address, domain, text) {
	document.write('<a href="mailto:' + address + "@" + domain + '">' + text + '</a>');
}
function makeEmail(address, domain){
	return address + "@" + domain;
}