
function EmailForm()
{
   var email = document.emailform.email.value;
   
   // check length...
   if(email.length == 0)
   {
   		alert("The email has not been enter correctly!");
   		return false;
   }
   
   // validate email field....
   var atpos = email.indexOf("@");
   if(atpos < 1)
   {
   		alert("The email has not been enter correctly!");
   		return false;
   }
   
   // Store email...
   
   var url = "email.php?" + email;   
   document.getElementById("email_frame").src = url;
   return true;
}

function UnlockDownload(android, bb1, bb2, winmobil6)
{
	// add url to link....
	islock = false;			
	    
//    document.getElementById("iphone_link").href = iphone;
    document.getElementById("android_link").href = android;		
    document.getElementById("bb_link1").href = bb1;		
    document.getElementById("bb_link2").href = bb2;	
    document.getElementById("winmobil6_link").href = winmobil6;	
    document.getElementById("emaildiv").innerHTML = '<span class="small">You may now download any version:</span><p>';
}

function ValidLock()
{
	if(islock)
	{
		alert("Please, to download these files, send us your email for receiving our free updates notice.\nThank you!");
		document.emailform.email.focus();
	   return false;
	}

	return true;
}

