// JavaScript Document

function injectMemberlogin( id )
{
	HTML = document.getElementById(id).innerHTML;
	HTML += '<ul>';
	HTML += '	<li class="login_boxes">';
	HTML += '		<form name="login" action="cart/user/dologin" method="post" name="form">';
	HTML += '		<input type="text" size="20" name="email" value="enter e-mail" onfocus="this.form.email.select();" /><br />';
	HTML += '		<input type="password" size="20" name="password" value="enter password" onfocus="this.form.password.select();" /><input type="submit" name="submit_form" class="right_arrow" value="&raquo;" /><br />';
	HTML += '		<span class="forgot_password_span"><a href="/cart/user/forgot/">forgotten password?</a></span></form>';
	HTML += '		</li>';
	HTML += '</ul>';
	
	document.getElementById(id).innerHTML = HTML;
}


var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")
