
function Auction_Bid(code, image) {
day=new Date();
id=day.getTime();
var path="/hosting/sm/smshop.nsf/Auction_Bid?Openform&Item=";
var newurl=path + code +"&P="+image;
eval("page" + id + " = window.open(newurl, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=545,top=1,left=17');");
}

function profile(URL) {
day=new Date();
id=day.getTime();
var path="/hosting/sm/register.nsf/Common_DisplayMyProfile/";
var end="?OpenDocument";
var newurl=path + URL + end;
eval("page" + id + " = window.open(newurl, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=545,top=1,left=17');");
}
function profilename(URL) {
day=new Date();
id=day.getTime();
var path="/hosting/sm/register.nsf/NamesOnly/";
var end="?OpenDocument";
var newurl=path + URL  + end;
eval("page" + id + " = window.open(newurl, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=545,top=1,left=17');");
}

function smessage(URL) {
day = new Date();
id = day.getTime();
var path="/hosting/sm/smessaging.nsf/messagesID/";
var end ="?EditDocument";
var newurl=path + URL + end;
eval("page" + id + " = window.open(newurl, '" + id + "', ',_self,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=460,height=350,top=50,left=170');");
}

function newmessage(URL, Name) {
day = new Date();
id = day.getTime();
var path="/hosting/sm/smessaging.nsf/Message?OpenForm&To=";
var newurl=path + URL + "&TN=" + Name;
eval("page" + id + " = window.open(newurl, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=460,height=350,top=50,left=170');");
}

function newreference(URL) {
day = new Date();
id = day.getTime();
var path="/hosting/sm/register.nsf/ReferenceNew?OpenForm&For=";
var newurl=path + URL;
eval("page" + id + " = window.open(newurl, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=550,top=5,left=50');");
}

function image(profile, image) {
day=new Date();
id=day.getTime();
var path="/hosting/sm/register.nsf/Common_DisplayProfileImage?OpenForm&Profile=";
var newurl=path + profile + "&Image="+image;
eval("page" + id + " = window.open(newurl, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=550,top=4,left=5');");
}

var message="This function has been 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")