/*********************************************************************************************************
								FRAMEWORK
*********************************************************************************************************/
	FRAMEWORK_NAME = "Framework";
	FRAMEWORK_VERSION = "3.0.2";
	FRAMEWORK_AUTHOR = "Бутков Антон";
	FRAMEWORK_COMPANY = "AmorPro Development";
	FRAMEWORK_CONTACT = "amorpro@mail.ru";
	FRAMEWORK_DESCRIPTION =	"Модуль обеспечивающий кросбраузерные вызовы.";
	IS_IE = IsIE();
	function Element( id ){
		if( Exists( id ) ){
			return document.getElementById( id );
		}
		else{
			Log( "Не существует: " + id );
			return null;
		}
	}
	function EventIsEmpty( ElementEvent )	{
		return ( ElementEvent == undefined );
	}
	function Exists( id ){
		return ( document.getElementById( id ) != null );
	}
	function GetValue( id ){
		if ( IsInput( id ) ){
			result = Element( id ).value;
		}
		else{
			if ( IS_IE ){
				result = Element( id ).innerText;
			}
			else{
				result = Element( id ).textContent;
			}
		}
		return result;
	}		
	function Hide( id ){
		Element( id ).style.display = "none";
	}		
	function IsIE()	{
		var ver = navigator.appVersion;
		return ( ver.indexOf( 'MSIE' ) != -1 );
	}	
	function IsInput( id )	{
	
		if ( Exists( id ) ){
			return ( typeof( Element( id ).value ) != "undefined" );
		}
		else{
			return false;
		}
	}	
	function Log( text ){
		window.alert( text );
	}
	function SetValue( id, value ){
		if (IsInput( id )){
			Element( id ).value = value;
		}
		else{
			if ( IS_IE ){
				Element( id ).innerText = value;
			}
			else{
				Element( id ).textContent = value;
			}
		}	
	}
	function Show( id ){
		Element( id ).style.display = "block";	
	}		
	function SubmitForm( id ){
	
		Element( id ).submit(); 
	}
