<!--
function display_page(url,w,h) {
	newwindow=window.open(url,'name','scrollbars=1,height='+h+',width='+w);
	if (window.focus) {newwindow.focus()}
	return false;
}
function forgot_function()
{
	$("index-wrap").style.MozOpacity=0.3;
	$("index-wrap").style.filter='alpha(opacity=30)';
	$("forgot").style.display='block';
	$("forgot").style.position='absolute';
	$("forgot").style.left='25%';
	$("forgot").style.top='78px';
	$("user").value='';
	$("e-mail").value='';
	$("forgot_success").style.display='none';
}

function submit_function()
{	
	var username=$("user").value;
	var captcha=$("captcha").value;
	var email=$("e-mail").value;
	if (captcha=='') captcha='1';
	var params="a="+username+"&b=send&c="+captcha+"&d="+email;
	if ((username=='')||(email=='')) 
		alert('You must fill both fields!');
	else
	{  
		new Ajax.Request('for-got.php', {method: 'post', postBody:params, asynchronous: false,
			 onSuccess: function(transport) { /*alert('DONE:' + transport.responseText);*/ },
			 onFailure: function(transport) { /*alert('ERR:' + transport.responseText);*/ }
			 
			 });
		$("forgot_success").style.position='absolute';
		$("forgot_success").style.left='25%';
		$("forgot_success").style.top='78px';
		$("forgot").style.display='none';
		$("forgot_success").style.display='block';
	}
}

function cancel_function()
{

  	$("forgot").style.display='none';
  	$("index-wrap").style.MozOpacity=1;
  	$("index-wrap").style.filter='alpha.opacity=100';
	$("forgot_success").style.display='none';
}

function subscribe()
{
	var email=$("newsletter").value;
	var params="?mail="+email+'&lang=1';
	if (email=='')
		alert('You must fill email field!');
	else
	{  
		new Ajax.Request('subscribe.php'+params, 
			{method: 'post', 
			 asynchronous: false,
			 onSuccess: function(transport) {alert(transport.responseText);}});
		//alert('Your email was sent');
		//$('newsletter').value='';
	}
}


function finoform_includeNow(url){
	var req;
	
	var axO=['Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.4.0',
		'Msxml2.XMLHTTP.3.0', 'Msxml2.XMLHTTP', 'Microsoft.XMLHTTP'], i;
	for(i=0;i<axO.length;i++)
		try{
			req = new ActiveXObject(axO[i]);
			break;
		}catch(e){}
	if(!req && typeof XMLHttpRequest != 'undefined')
		req = new XMLHttpRequest();
	
	req.open('GET', url, false);
	req.send(null);
	
	var html_doc = document.getElementsByTagName('head').item(0);
    var js = document.createElement('script');
    js.setAttribute('language', 'javascript');
    js.setAttribute('type', 'text/javascript');
	try{
		js.innerHTML = req.responseText;
		html_doc.appendChild(js);
	}
	catch(e){
		document.write("<script type='text/javascript'>\n"+ req.responseText + "\n</script>\n");
    }
	//eval(req.responseText);
	
	return false;
}

// -->
