
function IsNumeric(sText)
{
   var ValidChars = "0123456789.";
   var IsNumber=true;
   var Char;

 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
}
   
function re_k3ptcha()
{
	document.getElementById("k3ptcha").src = "im.php?ran=" + Math.random();
}

function ValidacijaFormeKontakt(poruka) 
{
	var forma = document.forms.kontakt;
    
    if (forma.ime_prezime.value == '' || 
    	forma.email.value == '' || 
    	forma.mesto.value == '' || 
    	forma.pismo.value == '' || 
    	forma.code.value == '')  
    {
     	alert(poruka); 
        return false;     
    }
    else
    return true; 
}  



function ValidacijaFormeZaposljavanje(poruka) 
{
	var forma = document.forms.upitnik;
    
    if (forma.ime_prezime.value == '' || 
    	forma.email.value == '' || 
    	forma.starost.value == '' || 
    	forma.strucna_sprema.value == '' || 
    	forma.radno_iskustvo.value == '' || 
    	forma.telefon.value == '' || 
    	forma.jezici.value == '' || 
    	forma.code.value == '')  
    {
     	alert(poruka); 
        return false;     
    }
    else
    return true; 
}  
  
function ValidacijaFormePretraga(poruka) 
{
    var forma = document.forms.pretraga;
    
    if (forma.words.value == '')  
    {
      alert(poruka); 
      return false;     
    }
    else
    return true; 
}
 
function prikazi_veliku_sliku(imageName,imageWidth,imageHeight,alt,posLeft,posTop) 
{  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\" title=\"'+alt+'\" />');  newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function popup(url) 
{
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';

 newwin=window.open(url,'Alpack d.o.o. B2B', params);
 if (window.focus) {newwin.focus()}
 return false;
}




