
		var screenSizeW,screenSizeH;
		
		alertSize();
		function alertSize() {
		  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;
		  }
		//  window.alert( 'Width = ' + myWidth );
		 // window.alert( 'Height = ' + myHeight );
		  screenSizeW=myWidth;
		  screenSizeH=myHeight;
		}
		
		function getScrollXY() {
		  var scrOfX = 0, scrOfY = 0;
		  if( typeof( window.pageYOffset ) == 'number' ) {
			//Netscape compliant
			scrOfY = window.pageYOffset;
			scrOfX = window.pageXOffset;
		  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
			//DOM compliant
			scrOfY = document.body.scrollTop;
			scrOfX = document.body.scrollLeft;
		  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
			//IE6 standards compliant mode
			scrOfY = document.documentElement.scrollTop;
			scrOfX = document.documentElement.scrollLeft;
		  }
		  return [ scrOfX, scrOfY ];
		}


/********** GENERAL */	
	/**	Get an element by ID */
		function ke_byID(id_value){
			return document.getElementById(id_value);
		}
		
	/**	Hide an element	*/
		function ke_hide(id_value){
			if (ke_byID(id_value)==undefined) alert(id_value+' is "undefined"');
			ke_byID(id_value).style.display='none';
		}
	/** Display an element */
		function ke_display(id_value){
			if (ke_byID(id_value)==undefined) alert(id_value+' is "undefined"');
			ke_byID(id_value).style.display='inline';
		}
	
	/**	Alternative Hide an element	*/
		function ke_Ahide(id_value){
			if (ke_byID(id_value)==undefined) alert(id_value+' is "undefined"');
			ke_byID(id_value).style.position='absolute';
			ke_byID(id_value).style.visibility='hidden';
		}
	/** Alternative Display an element */
		function ke_Adisplay(id_value){
			if (ke_byID(id_value)==undefined) alert(id_value+' is "undefined"');
			ke_byID(id_value).style.position='relative';
			ke_byID(id_value).style.visibility='visible';
		}
		
		
/********** SELECT.options FUNCTIONS */	
	/** Add option to a SELECT object */
		function ke_SelectAddOption(id_value,text_value,value){
			
						if (ke_byID(id_value)==undefined) alert(id_value+' is "undefined"');
						option=document.createElement('OPTION');
						ke_byID(id_value).options.add(option);
						option.text=text_value;
						option.value=value;
						
		}

	/** Delete option from a SELECT object */
		function ke_SelectDeleteOption(id_value,option_index){
			
						if (ke_byID(id_value)==undefined) alert(id_value+' is "undefined"');
						ke_byID(id_value).options[option_index]=null;
						
		}
		
	/** Empty a SELECT object */
		function ke_SelectEmpty(id_value){
			
						if (ke_byID(id_value)==undefined) alert(id_value+' is "undefined"');
						while (ke_byID(id_value).length>0) ke_SelectDeleteOption(id_value,0);
						
		}
		
		function openBig(id,img)
		{
			window.open('/preview.php?id='+id+'&img='+img,'bigpix','status=no, toolbar=no, menubar=no, location=no, resizeable=yes, width=700, height=660, focus=yes, directories=no, scrollbars=yes');
		}
		
		function no_return()
		{}
		
		
		function maximm(){
				left_x = ke_byID('home_columnleft').offsetHeight;
                center_x = ke_byID('home_columncenter').offsetHeight;
				right_x = ke_byID('home_columnright').offsetHeight;
				var arr_x = new Array();
				arr_x[0] = left_x;
				arr_x[1] = center_x;
				arr_x[2] = right_x;
				tempmax = Math.max(arr_x[0],arr_x[1],arr_x[2]);	
				alert('MAXIMUM'+tempmax);	
		}	
		
		function ajax_search(target,parent,value,file)
		{
				ke_byID(target).style.display=''; 
				ajax_get('/ajax/'+file+'?parent='+parent+'&value='+value, target);
		}
