 //----------------------------------------------------------------------------

 function loadurl(url,conteiner){	
			//no time variable 
		 	if ( url.toLowerCase().indexOf("time=") == -1 ){
			
				if ( url.indexOf("?") == -1 ) {	
					url = url + "?time=" + uncache();
				}else{
					url = url + "&time=" + uncache();
				}
				
			} 
			 
	 
			 $.ajaxSetup( {
					cache : false
			  }); 
			  
			  if ( conteiner ) {
				$('#'+conteiner).load(url);
			  }else{
				$('#content').load(url);
			  }
}

//----------------------------------------------------------------------------
$.maxZIndex = $.fn.maxZIndex = function(opt) {
    /// <summary>
    /// Returns the max zOrder in the document (no parameter)
    /// Sets max zOrder by passing a non-zero number
    /// which gets added to the highest zOrder.
    /// </summary>    
    /// <param name="opt" type="object">
    /// inc: increment value, 
    /// group: selector for zIndex elements to find max for
    /// </param>
    /// <returns type="jQuery" />
    var def = { inc: 10, group: "*" };
    $.extend(def, opt);    
    var zmax = 0;
    $(def.group).each(function() {
        var cur = parseInt($(this).css('z-index'));
        zmax = cur > zmax ? cur : zmax;
    });
    if (!this.jquery)
        return zmax;

    return this.each(function() {
        zmax += def.inc;
        $(this).css("z-index", zmax);
    });
}
   
//----------------------------------------------------------------------------
function writit(id,text)
{
	if (document.getElementById){
		x = document.getElementById(id);
		x.innerHTML = text;}
	else if (document.all){
		x = document.all[id];
		x.innerHTML = text;}
}

//----------------------------------------------------------------------------

	function uncache(){
				var d = new Date();
				var time = d.getTime();
				return time;
				
			} 
