function submitMobileSubscription()
{
	var mob_sub_url = 'mail.php?';
	
	var post_number = 0;
	var mobile = document.getElementById('id_mobile_subscribe_phone').value;
	var name = document.getElementById('id_mobile_subscribe_name').value;
	var city = document.getElementById('id_mobile_subscribe_city').value;
	
	var nr_validation = /^6[0-9]{7}$/i;
	var mymatch = nr_validation.exec(mobile);
	
	if(mymatch == null)
	{
		post_number++;
		document.getElementById('cellphone_td').style.border="1px red solid";
	}
	else 
	{
		document.getElementById('cellphone_td').style.border="0px";
	}
	
	
	if(document.getElementById('id_mobile_subscribe_city').value == '0')
	{
		post_number++;
		document.getElementById('city_td').style.border="1px red solid";
	}
	else 
	{
		document.getElementById('city_td').style.border="0px";
	}
	
	if(document.getElementById('id_mobile_subscribe_name').value == '' || document.getElementById('id_mobile_subscribe_name').value == 'Tavo vardas')
	{
		post_number++;
		document.getElementById('name_td').style.border="1px red solid";
	}
	else 
	{
		document.getElementById('name_td').style.border="0px";
	}
	
	
	if(post_number == 0)
	{
		mob_sub_url += 'mobile='+mobile+'&name='+name+'&city='+city;
		mob_sub_url = mob_sub_url;
		window.open(mob_sub_url, "mail","height=150,width=220,status=yes,toolbar=no,menubar=no,location=no"); 			
	}
	
	return false;
}
