function alertUser(cid)
{
	var alertHTML = '<table class="inside" border="0" cellpadding="0" cellspacing="0">'
+'<tr>'
        +'<td>'
                +'<table class="dragHandle" border="0" cellpadding="0" cellspacing="0" width="100%">'
                +'<tr>'
                        +'<td width="19"><img width="19" src="LOTN_inside/images/topLeft.gif" /></td>'
                        +'<td width="100%" class="Insidetop"><div align="center" id="title_callAlert">'
                                +'<table border="0" cellpadding="0" cellspacing="0">'
                                +'<tr>'
                                        +'<td width="10"></td>'
                                        +'<td>Incoming Call</td>'
                                        +'<td width="10"></td>'
                                +'</tr>'
                                +'</table>'
                                +'</div>'
                        +'</td>'
                        +'<td width="19"><img width="19" src="LOTN_inside/images/topRight.gif" /></td>'
                +'</tr>'
                +'</table>'
        +'</td>'
+'</tr>'
+'<tr>'
        +'<td>'
                +'<table border="0" cellpadding="0" cellspacing="0" width="100%">'
                +'<tr>'
                        +'<td width="13" class="Insideleft"><img src="LOTN_inside/images/left.gif" width="13" /></td>'
                        +'<td valign="top" bgcolor="white">'
                                +'<table height="100%" border="0" cellspacing="0" cellpadding="0">'
                                +'<tr>'
                                        +'<td valign="top">'
                                                +'<div align="left" id="inside_callAlert">You have an incoming call from '+cid+'.<br />Would you like to accept this call?<br />'
						+'<input type="submit" onclick="alertAnswer(\'yes\')" value="Yes">&nbsp;<input type="submit" onclick="alertAnswer(\'no\');" value="No"></div>'
                                        +'</td>'
                                +'</tr>'
                                +'</table>'
                        +'</td>'
                        +'<td width="12" class="Insideright"><img src="LOTN_inside/images/right.gif" width="12" /></td>'
                +'</tr>'
                +'</table>'
        +'</td>'
+'</tr>'
+'<tr>'
        +'<td>'
                +'<table border="0" cellpadding="0" cellspacing="0" width="100%">'
                +'<tr>'
                        +'<td width="13"><img src="LOTN_inside/images/botLeft.gif" width="13" /></td>'
                        +'<td width="100%" class="Insidebottom"></td>'
                        +'<td width="19"><img src="LOTN_inside/images/botRight.gif" width="19" /></td>'
                +'</tr>'
                +'</table>'
        +'</td>'
+'</tr>'
+'</table>';

	document.getElementById('callAlert').innerHTML = alertHTML;
}

function alertAnswer(answer)
{
	if (answer == 'yes')
	{
		acceptCall();
		showCallerId("Call From "+callingID);
	} else {
		declineCall();
	}
	
	document.getElementById('callAlert').innerHTML = '';
}
