<!--
	var sDefaultControl = '';

	function setDefaultControl( sControl )
	{
		sDefaultControl = sControl;
	}
		
	function setFormFocus()
	{
		if( sDefaultControl != '' )
			for( var nFormIndex = 0; nFormIndex < document.forms.length; nFormIndex++ )
			{
				var sFormName = document.forms[ nFormIndex ].name;
				
				for( var nElementsIndex = 0; nElementsIndex < document.forms[ sFormName ].elements.length; nElementsIndex++ )
					if( document.forms[ sFormName ].elements[ nElementsIndex ].name == sDefaultControl )
				    	document.forms[ sFormName ].elements[ nElementsIndex ].focus();
			}
	}   
		
	function findFormControl( name )
	{
		for( var nFormIndex = 0; nFormIndex < document.forms.length; nFormIndex++ )
		{
			var sFormName = document.forms[ nFormIndex ].name;
			
			for( var nElementsIndex = 0; nElementsIndex < document.forms[ sFormName ].elements.length; nElementsIndex++ )
			{
				var sElementName = document.forms[ sFormName ].elements[ nElementsIndex ].name;

				if( sElementName == name )
				{
			    	return document.forms[ sFormName ].elements[ nElementsIndex ];
			    }
			    else
			    {
					var aElementNamingArray = sElementName.split( ':' );
					if( aElementNamingArray[ aElementNamingArray.length - 1 ] == name )
					{
						return document.forms[ sFormName ].elements[ nElementsIndex ];
					}
			    }
			}
		}	
		return null;
	}
	
	function openFlash( src, width, height )
	{
		var lWidth 			= width;
		var lHeight 		= height;
				
		var now = new Date();
		
		var oWindow = openPopup( '', 'EcardPreview' + now.getTime(), lWidth, lHeight );
		
		oWindow.focus();
			
		oWindow.document.writeln( '<html>');
		oWindow.document.writeln( '	<head>');
		oWindow.document.writeln( '		<title>Mekorma</title>');
		oWindow.document.writeln( '		<style>');
		oWindow.document.writeln( '		<!--');
		oWindow.document.writeln( '			.copyright');
		oWindow.document.writeln( '			{');
		oWindow.document.writeln( '				FONT-FAMILY: arial, helvetica, sans-serif;');
		oWindow.document.writeln( '				FONT-SIZE: 10px;');
		oWindow.document.writeln( '			}');
		oWindow.document.writeln( '		//-->');
		oWindow.document.writeln( '		</style>');
		oWindow.document.writeln( '	</head>');
		oWindow.document.writeln( '	<body bgcolor="#ffffff" marginheight="0" topmargin="0" marginwidth="0" leftmargin="0">');
		oWindow.document.writeln( '	<center>');
		oWindow.document.writeln( '     <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="100%" HEIGHT="100%" NAME="sw" ID="sw">');
		oWindow.document.writeln( '     <PARAM NAME="Play" VALUE="true">');
		oWindow.document.writeln( '     <PARAM NAME="Loop" VALUE="true">');
		oWindow.document.writeln( '     <param NAME="Quality" VALUE="high">');
		oWindow.document.writeln( '     <param NAME="scale" VALUE="showall">');
		oWindow.document.writeln( '     <PARAM NAME="MENU" VALUE="FALSE">');
		oWindow.document.writeln( '     <PARAM NAME="SRC" VALUE="' + src + '">');
		oWindow.document.writeln( '     <EMBED  SRC="' + src + '" MENU="FALSE" scale="showall" WIDTH="100%" HEIGHT="100%" type="application/x-shockwave-flash" movie="'+ src +'.swf" quality="best" play="true" loop="true"></embed>');
		oWindow.document.writeln( '     </OBJECT>');
		oWindow.document.writeln( '		<script language="javascript" src="/jscript/library.js"></script>' );
		oWindow.document.writeln( '	</body>');
		oWindow.document.writeln( '</html>');
	}
    
    function openWindow( url, name, width, height, center )
    {
    	openPopup( url, name, width, height, center )
    }

	function openPopup( url, name, width, height, center )
	{
		var oWindow;
				
		if( center )
		{
			oWindow = window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height + ',top=' + (( screen.height - height )/2) + ',left=' + (( screen.width - width )/2 ) );
		}
		else
		{
			oWindow = window.open( url, name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + width + ',height=' + height );
		}
		
		return oWindow;
	}
	
//-->