// JavaScript Document

function Paging(CurPage){
	document.f.CurPage.value=CurPage		
	document.f.submit()
}

function GetObj(id){
return document.getElementById(id)
}

function chk_empty(form_obj){
	switch(form_obj.type){
		case "text" :
		case "textarea" :
		case "password" :
		case "hidden" :
		case "file" :
			return (replaceChar(form_obj.value," ","")=="")
		case "select-one" :	
			return (form_obj.options.selectedIndex==0)
		case "select-multiple" :
			return (form_obj.options.selectedIndex==-1)
	}
}
	
function replaceChar(str,from,to)
{
var tmp=str.split(from);
str="";
for (var i=0;i<tmp.length;i++){
str+=tmp[i]+to;
}
str = str.substring(0,str.length-to.length);
return  str
}


// start banners functions and vars
	var dcrnd=Math.floor(Math.random()*9999999999);
	
	function set_new_random_param(){
		dcrnd=Math.floor(Math.random()*9999999999);
	}	


