function formInputClear(forma,formel,tekst){
	if(document.getElementById(forma).elements[formel].value==tekst){
		document.getElementById(forma).elements[formel].value="";
	}
}
function formInputFill(forma,formel,tekst){
	if(document.getElementById(forma).elements[formel].value==""){
		document.getElementById(forma).elements[formel].value=tekst;
	}
}


/*  background size script */
/*
var bvel;
function b_loadBack(){
	bvel = getBackSize();
	document.getElementById("bdy").className="b"+bvel;
}
window.onload = function() {
	b_loadBack();
}
window.onresize = function(){
	if(getBackSize()>bvel){
		b_loadBack();
	}
}
function velicinaProzora() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
  	ret = new Array();
  	ret[0] = myWidth;
  	ret[1] = myHeight;
  	return ret;
}
function getBackSize(){
	vel = velicinaProzora();
	if(vel[0]<=800 && vel[1]<=600){
		v = 1;
	}else if(vel[0]<=1024 && vel[1]<=768){
		v = 2;
	}else if(vel[0]<=1280 && vel[1]<=1024){
		v = 3;
	}else if(vel[0]<=1600 && vel[1]<=1200){
		v = 4;
	}else {
		v = 5;
	}

	return v;
}
*/