//document.domain="epage2.com"; //document.write(''); //document.write('
Powered by AdConnect");
myPanel.render(document.body);
myPanel.show();
myPanel.hideEvent.subscribe(closePanel,myPanel);
}
function register() {
w = 600;
yc = 20 + YAHOO.util.Dom.getDocumentScrollTop();
xc = Math.round((document.body.clientWidth/2)-(w/2));
var myPanel = new YAHOO.widget.Panel("RegisterPanel", { width:"602px", visible:false, constraintoviewport:false, modal:false, x:xc, y:yc, zIndex:888 } );
myPanel.setHeader("Register");
myPanel.setBody("");
myPanel.setFooter("Powered by AdConnect");
myPanel.render(document.body);
myPanel.show();
myPanel.hideEvent.subscribe(closePanel,myPanel);
}
function sitelink(siteurl) {
w = 700;
yc = 20 + YAHOO.util.Dom.getDocumentScrollTop();
xc = Math.round((document.body.clientWidth/2)-(w/2));
var myPanel = new YAHOO.widget.Panel("SiteLinkPanel", { width:"700px", visible:false, constraintoviewport:false, modal:false, x:xc, y:yc, zIndex:888 } );
myPanel.setHeader("Site Link");
myPanel.setBody("");
myPanel.setFooter("Powered by AdConnect");
myPanel.render(document.body);
myPanel.show();
myPanel.hideEvent.subscribe(closePanel,myPanel);
}
function ShowPostPanel() {
w = 600;
xc = Math.round((document.body.clientWidth/2)-(w/2));
yc = 20 + YAHOO.util.Dom.getDocumentScrollTop();
var myPanel = new YAHOO.widget.Panel("PostPanel", { width:"602px", visible:false, constraintoviewport:false, modal:false, x:xc, y:yc, zIndex:888 } );
myPanel.setHeader("Post a Classified");
myPanel.setBody("");
myPanel.setFooter("Powered by AdConnect");
myPanel.render(document.body);
myPanel.show();
myPanel.hideEvent.subscribe(closePanel,myPanel);
}
/////////////////////////// PostAd step 1 ///////////////////////////////////
function ACpost1Callback(o) {
//var div = document.getElementById('accontainer');
//var insertData = "";
if (o !== undefined) {
//alert (o.responseText);
var cat = eval('(' + o + ')');
user = cat.User;
CONFIG = cat.CONFIG;
ShowPostPanel();
}
}
/////////////////////////// Reply to a moreinfo ///////////////////////////////////
function field_empty(field) {
if (field.value == null || field.value == "") return true;
return false;
}
/*
The email must contain at least an @ sign and a dot. Also, the @ must not be the first character of the email address, and the last dot must at least be one character after the @ sign.
*/
function validate_email(email) {
apos = email.indexOf("@");
dotpos = email.lastIndexOf(".");
if (apos<1 || dotpos-apos<2) return false;
else return true;
}
function validate_message(email,msg) {
var alertstr = "";
var valid = true;
if (email == null || email == "" || !validate_email(email)) {
alertstr += "Email : '"+email+"' is invalid\n";
valid = false;
}
if (msg == null || msg == "") {
alertstr += "Message : Must be longer.\n";
valid = false;
}
if (!valid) alert(alertstr);
return valid;
}
var sendMessageObject = {
startRequest:function(email,message) { YAHOO.util.Get.script("http://adconnect.com/adconnect/client.php?cspkey=975702a49f502ee074f562ec4898d21f&cmd=reply3&anum="+anum+"&mailfrom="+email+"&messagetext="+encodeURI(message), {
onSuccess: function(obj) {
var div = document.getElementById('ACMessageForm');
div.innerHTML = "Your message was sent.";
} ,
onFailure: function(obj) {
var div = document.getElementById('ACMessageForm');
div.innerHTML = "Your message was NOT sent.";
} ,
scope : this
}); }
};
var callbackMsg = {
success:sendMessageObject.handleSuccess,
failure:sendMessageObject.handleFailure,
timeout: 25000,
scope: sendMessageObject
};
var sendMessage = function() {
var email = document.getElementById('ACEmail').value;
var msg = document.getElementById('ACMessage').value;
if (!validate_message(email,msg)) return;
var message = encodeURI(msg);
// TBD: check the data for validity
// If OK, Start the transaction
sendMessageObject.startRequest(email,message);
}
function showSetLocation() {
getDataFromServer("showSetLocation","http://adconnect.com/adconnect/setlocationjs.php?cmd=none&cspkey=975702a49f502ee074f562ec4898d21f","showSetLocationCB");
}
function showSetLocationCB() {
DarkenPage();
var div = document.getElementById('setlocation');
div.style.visibility = 'visible'; // or visible
w = 600;
h = 500;
xc = Math.round((document.body.clientWidth/2)-(w/2))
yc = Math.round((document.body.clientHeight/2)-(h/2))
if (yc < 0) yc = 0;
ACpanel.style.left = xc + "px";
ACpanel.style.top = yc + "px";
ACpanel.style.display = "block";
}
function breadcrumb() {
var addfav = true;
var tpath = "";
//var result = "Category: ";
var result = "Home > ";
if (cmd.indexOf('cmd=search')==0) {
var arr = {};
parse_str(cmd,arr);
result += " Search: ""+arr.query+""";
path = "";
}
if (cmd.indexOf('cmd=My_Ads')==0) {
addfav = false;
result += " My Ads";
path = "";
}
if (cmd.indexOf('cmd=Fav')==0) {
addfav = false;
result += " Favorites";
path = "";
}
list = path.split("/");
for (i=0; i < list.length; i++) {
tpath += list[i];
if (tpath.indexOf('*')==0) continue;
result += ""+list[i].replace(/_/g," ")+"";
if ((i+1) != list.length) result += " > ";
tpath += "/";
}
result += " ";
if (user.isloggedin == false) addfav = false;
if (cmd.indexOf('Fav')>0) addfav = false;
if (addfav) result += " 



| "+theAd.liner+" | |
Ad ";
insertData += " | ";
insertData += " ";
var regexp = /\//g;
ptext = theAd.path.replace(regexp," \/ ");
if (ptext == "") ptext = "[From Network]";
insertData += " ";
if (theAd.pictures) {
insertData += "";
//if (theAd.location.length > 1) insertData += " ";
if (theAd.thumburl) insertData += "Location: "+theAd.location; insertData += "Category:"+ptext+" "; insertData += "Ad Age:"+duration(curTime - theAd.starttime,"long",1)+" "; insertData += "Time Left:"+duration(theAd.endtime - curTime,"long",1)+" "; insertData += "Ad Number:"+theAd.anum+" "; insertData += "Seller ID:"+theAd.userid+" "; insertData += "Member For:"+duration(curTime - theAd.membersince,"long",1)+" "; insertData += " "+theAd.liner+" ";
insertData += " ";
if ((theAd.buystatus == 'drop' || theAd.buystatus == 'fixed') && theAd.price > 0) {
curprice = getDropPrice(theAd.dropstartprice,theAd.endprice,theAd.dropstarttime,theAd.endtime);
if (curprice < theAd.dropstopprice ) curprice = theAd.dropstopprice;
if (theAd.buystatus == 'fixed') curprice = theAd.dropstartprice;
// PRO: 5/19/09 turned off the buy this link.
//insertData += ""+theAd.moreinfo+" Current Price ";
}
insertData += "$"+formatCurrency(curprice)+" ";
insertData += " ";
for (i = 0; i ";
insertData += "" } insertData += " "; } //insertData += " |
|


$"+formatCurrency(curprice)+"
$"+formatCurrency(curprice)+"";
// elCell.innerHTML = "$"+formatCurrency(curprice)+"
";
//elCell.innerHTML = "$"+formatCurrency(curprice)+"";
res = "