function confirmSubmit() {var agree=confirm("Ali res nadaljujem?");
if (agree) return true ;
else return false ;} 
function disableForm(theform) {if (document.all || document.getElementById) {for (i = 0; i < theform.length; i++) {var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true; }
return true; } }
function toggleButton(ref,bttnID){document.getElementById(bttnID).disabled= ((ref.value !== ref.defaultValue) ? false : true);}  
function refresh() {location=document.myform.selekt.options[document.myform.selekt.selectedIndex].value}		 
function showVideo(id) {document.write("<object width=\"318\" height=\"251\"><param name=\"movie\" value=\"http://www.youtube.com/v/"+id+">&amp;hl=en&amp;fs=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/"+id+"&amp;hl=en&amp;fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"318\" height=\"251\"></embed></object>");}
function textCounter(field, countfield, maxlimit) {if (field.value.length > maxlimit) 
field.value = field.value.substring(0, maxlimit);
else
countfield.value = maxlimit - field.value.length;}
function writeImgTag(code){var cache = document.myform.sporocilo.value;
this.code = code;
document.myform.sporocilo.value = cache + " " + code;
document.myform.sporocilo.focus();}
function checknew(date) {
var pic = "osveženo";
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src=/media/novo.gif  border='0' width='30' height='10'>");}

