function openMySlot(p_sProfileId, p_sPassword, p_sSessionId){
	
	var formElement = document.createElement("form");
	formElement.setAttribute("id" , "postForm");
	formElement.setAttribute("method","post");
	formElement.setAttribute("action","http://www.wakeupyourphone.com/mySLOT/index.php");
	formElement.setAttribute("target","_self");
	
	var pass=document.createElement('input');
	pass.setAttribute('type','text');
	pass.setAttribute('name','pass');
	pass.setAttribute('value',p_sPassword);		
	
	var profile=document.createElement('input');
	profile.setAttribute('type','text');
	profile.setAttribute('name','profile_id');
	profile.setAttribute('value',p_sProfileId);

	var session=document.createElement('input');
	session.setAttribute('type','text');
	session.setAttribute('name','session_id');
	session.setAttribute('value',p_sSessionId);

	formElement.appendChild(pass);
	formElement.appendChild(session);
	formElement.appendChild(profile);
	
	document.body.appendChild(formElement);
	
	if (document.getElementById("postForm")) {
		document.getElementById("postForm").submit();
	}
}

function openMySlotInNewWindow(p_sProfileId, p_sPassword, p_sSessionId){
	
	var formElement = document.createElement("form");
	formElement.setAttribute("id" , "postForm");
	formElement.setAttribute("method","post");
	formElement.setAttribute("action","http://www.wakeupyourphone.com/mySLOT/index.php");
	formElement.setAttribute("target","_blank");
	
	var pass=document.createElement('input');
	pass.setAttribute('type','text');
	pass.setAttribute('name','pass');
	pass.setAttribute('value',p_sPassword);		
	
	var profile=document.createElement('input');
	profile.setAttribute('type','text');
	profile.setAttribute('name','profile_id');
	profile.setAttribute('value',p_sProfileId);		

	var session=document.createElement('input');
	session.setAttribute('type','text');
	session.setAttribute('name','session_id');
	session.setAttribute('value',p_sSessionId);

	formElement.appendChild(pass);
	formElement.appendChild(session);
	formElement.appendChild(profile);
	
	document.body.appendChild(formElement);
	
	if (document.getElementById("postForm")) {
		document.getElementById("postForm").submit();
	}
}

function sayhello()
{
	alert("HELLO!");
}