function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
 	
var boja1='990000';
var boja2='ffcc00';
var boja3='cccccc';
var boja4='f0f0f0';

function oboji(sta,cim) {
 sta.style.backgroundColor=cim;
}

function meniOn(sta) {
sta.style.backgroundColor='#f0f0f0';
sta.style.borderStyle='solid';
sta.style.borderColor='#000000';
sta.style.borderWidth='1px';
sta.style.borderRightWidth='0px';
sta.style.borderLeftWidth='0px';
}

function meniOff(sta) {
sta.style.backgroundColor='#ffffff';
sta.style.borderStyle='';
sta.style.borderColor='';
sta.style.borderWidth='';
}

function posta()
{
var email= prompt('E-mail:',' ');
var subj= prompt('Ubaci subject pruke:',' ');
if ((subj==" ") || (subj==null))
 subj="Preporučujem vam SveZaWeb.dzaba.com OnLine!";
 window.location="mailto:"+email+"?subject="+subj;
}

function posalji() 
{
 window.location="mailto:mskoric@ptt.yu?subject=Prijava Za Informator "+document.addform.EmailAddress.value;
}

function submitForms() {
 if (isEmail()) {
  alert("\nSada ce se poslati vasa prijava. \n\n Hvala vam sto ste se pridruzili nama!");
  return true;
 }
 else 
  return false;
}


function isEmail() {
if (document.addform.EmailAddress.value == "") {
alert ("\n Polje E-Mail je prazno. \n\n Molim vas unesite vasu e-mail adresu.")
document.addform.EmailAddress.focus();
return false;
}
if (document.addform.EmailAddress.value.indexOf ('@',0) == -1 ||
document.addform.EmailAddress.value.indexOf ('.',0) == -1) {
alert ("\n E-mail polje zahteva znak \"@\" i  \".\". \n\n Molim vas unesite ponovo vasu e-mail adresu.")
document.addform.EmailAddress.select();
document.addform.EmailAddress.focus();
return false;
}
return true;
}
