<!--
		
function findObj(n, d) {
	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=findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n);
	return x;
}

function validateForm() {
	var i,p,q,nm,test,num,min,max,errors='',args=validateForm.arguments;
	for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=findObj(args[i]);
		if (val) { nm=val.name; if ((val=val.value)!="") {
		if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
			if (p<1 || p==(val.length-1)) errors+='- '+nm+' Mora vsebovati e-mail naslov\n';
		} } else if (test.charAt(0) == 'R') errors += '- '+nm+' je zahtevano polje\n'; }
	} if (errors) alert('Nepravilno ste izpolnili obrazec.\n Popravite sledeče:\n' + errors);
	document.returnValue = (errors == '');
}

function jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function confirmLink(theLink, theAction) {
	var is_confirmed = confirm('Potrditev :\n' + theAction);
	if (is_confirmed) {
		theLink.href += '&is_js_confirmed=1';
	}
	return is_confirmed;
}

function msgs_win_open(msgs) {
	window.open("/chkmsg.php?" + msgs, "msgwin", "width=200,height=200");
}

function msgs_win_close() {
	opener.document.location = '/index.php?show=klub&parse=msgs';
	window.close();
}

//-->

