
var ext = "cgi";

if (document.images) 
{
   img1 = new Image();
   img2 = new Image();
   img3 = new Image();
   img4 = new Image();
   img1.src = "/my3cents/images/white_tab_sel.gif";
   img2.src = "/my3cents/images/light_green_tab.gif";
   img3.src = "/my3cents/images/light_orange_sel.gif";
   img4.src = "/my3cents/images/light_grey_tab.gif";
}

/* Setup some global file variables */
var fileSubmitReferal = "/submitReferral.cgi";
var fileNewsReg = "/newsRegister.cgi ";
var fileCastVote = "/castVote.cgi";
var fileLogout = "/logout.cgi";
var fileDisplayLetter = "/displayLetter.cgi";
var fileSendLetter = "/sendLetter.cgi";
var fileLoginForm = "/loginForm.cgi";
var filePostOpinion1 = "/postOpinionStep1.cgi";
var fileAskQuestion = "/askStep1.cgi";
var wrap = "";
var fileCompanySearch = "/companySearch.cgi";
var fileAgSearch = "/agSearch.cgi";
var fileLegalLinks = "/legalLinks.cgi";
var fileGovLinks = "/govLinks.cgi";
var BBBComplaint = "http://welcome.bbb.org/";
var NFComplaint = "http://www.fraud.org/welcome.htm";
var FraudCC = "/fraud-credit-card.cgi";
var FraudDebt = "/fraud-debt-collection.cgi";
var FraudIdTheft = "/fraud-identity-theft.cgi";
var FraudTelemarket = "/fraud-telemarketing.cgi";
var fileNewUser = "/newuser.cgi";
var fileLoginForm = "/loginForm.cgi";
var fileSearch = "/search.cgi";
var fileCatList = "/categoryList.cgi";
var fileCompanyRegister = "/companyRegister.cgi";
var fileCompLogin = "/compLogin.cgi";
var fileCorporateServices = "/corporateServices.cgi";
var imageComplaint = "/my3cents/images/complaint.gif";
var imageCompliment = "/my3cents/images/compliment.gif";
var imageInformative = "/my3cents/images/informative.gif";
var imageQuestion = "/my3cents/images/question.gif";
var imageBlankStar = "/my3cents/images/blankstar2.gif";
var imageStar = "/my3cents/images/b_star.gif";
var imageNeutral = "/my3cents/images/neutral.gif";
var imageSuperComplaint = "/my3cents/images/supercomplaint.gif";
var imageSuperCompliment = "/my3cents/images/supercompliment.gif";
var fileOrderServices = "/orderServices.cgi";
var fileCreditCardReviews = "/credit-card-reviews.cgi";
var fileJobSchmob = "http://www.jobschmob.com";
var fileCommunity = "http://community.my3cents.com";
var fileBlog = "/index.cgi?tab=3";
var fileTopReviews = "/topRatedReviews.cgi";

var now=new Date();
var month=now.getMonth() + 1; 

/* Some other globals... */
var homepage = 0;
var clr = "";
var li=0;
var undef;
var id;
var uid;
var url="";
var pref;
var navbar="<FONT COLOR=#04359b>-</FONT>";
var x43;
var x;
var choice="";
var orderID = "";
var isNetscape = (navigator.appName == "Netscape");
var affiliateMode = "";
var last_cid = "";

var setB = "";

var search_box = "";


function getSearchBox2(){

search_box = '<form action="http://www.my3cents.com/gSearch.cgi" id="cse-search-box" style="margin:5px;">' + 
  '<div><table><tr><td nowrap>' + 
    '<input type="hidden" name="cx" value="partner-pub-9756519274360254:8wwkal-87fg" />' + 
    '<input type="hidden" name="cof" value="FORID:10" />' + 
    '<input type="hidden" name="ie" value="ISO-8859-1" />' + 
    '<input type="text" name="q" size="29" /> ' + 
    '<input type="submit" name="sa" value="Search" />' + 
  '</td></tr></table></div>' + 
'</form>' + 
'<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>';


search_line = search_box;

return search_line;

}

function getSearchBox(color, size, id, button){

var font_color = "";

if(color == "ffffff"){
  font_color = "000000";
}else{
  font_color = "ffffff";
}

search_box = '<!-- SiteSearch Google -->' +
	'<form method="get" action="http://www.my3cents.com/gSearch.cgi" target="_top" style="margin:3px;">' +
	'<table border="0" bgcolor="#' + color + '" cellpadding=0 cellspacing=0 border=0>' +
	'<tr><td nowrap="nowrap" valign="top" align="left" height="32">' +
	'</td>' +
	'<td nowrap="nowrap">' +
	'<input type="hidden" name="domains" value="My3cents.com"></input>' +
	' &nbsp;<input type="text" name="q" size="' + size + '" maxlength="255" value=""></input>' +
	' <input type="submit" name="sa" value="Google Search"></input>' +
	'</td></tr>' +
	'<tr>' +
	'<td>&nbsp;</td>' +
	'<td nowrap="nowrap">' +
	'<table cellpadding=0 cellspacing=0 border=0>' +
	'<tr>' +
	'<td>' +
	'<input type="radio" name="sitesearch" value=""></input>' +
	'<font size="-1" color="#' + font_color + '">Web</font>' +
	'</td>' +
	'<td>' +
	' &nbsp; <input type="radio" name="sitesearch" value="My3cents.com" checked="checked"></input>' +
	'<font size="-1" color="#' + font_color + '">My3cents.com</font>' +
	'</td>' +
	'</tr>' +
	'</table>' +
	'<input type="hidden" name="client" value="pub-9756519274360254"></input>' +
	'<input type="hidden" name="forid" value="1"></input>' +
	'<input type="hidden" name="ie" value="ISO-8859-1"></input>' +
	'<input type="hidden" name="oe" value="ISO-8859-1"></input>' +
	'<input type="hidden" name="safe" value="active"></input>' +
	'<input type="hidden" name="cof" value="GALT:#04359B;GL:1;DIV:#FFFFFF;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:04359B;LC:04359B;T:000000;GFNT:04359B;GIMP:04359B;LH:30;LW:100;L:http://www.my3cents.com/my3cents/images/logo.gif;S:http://www.my3cents.com;LP:1;FORID:11"></input>' +
	'<input type="hidden" name="hl" value="en"></input>' +
	'</td></tr></table>' +
	'</form>' +
	'<!-- SiteSearch Google -->';
	
	

 search_box = '<form action="http://www.my3cents.com/gSearch.cgi" id="' + id + '" style="margin-left:5px;margin-top:5px;">' + 
  '<div><table><tr><td nowrap>' + 
    '<input type="hidden" name="cx" value="partner-pub-9756519274360254:8wwkal-87fg" />' + 
    '<input type="hidden" name="cof" value="FORID:10" />' + 
    '<input type="hidden" name="ie" value="ISO-8859-1" />' + 
    '<input type="text" name="q" size="' + size + '" /> ' + 
    '<input type="submit" name="sa" value="' + button + '" />' + 
  '</td></tr></table></div>' + 
'</form>';
	
  return search_box;

}

function reviewSearch(){
document.write('<font size=3><b>Not what you were looking for?</b></font><br>' + getSearchBox('ffffff', '20', 'cse-search-box', 'Search Reviews') + '<br>')
return;
}

function inc_nav(){


	//setSearchBox('04359b', '20');

	document.write('<table height="22" bgcolor=#04359b style="margin:0;" cellpadding="0" cellspacing="0" BORDER="0"><tr height="22">');
	document.write('<td nowrap height="22" valign="top" width=220>' + getSearchBox('04359b', '35', 'cse-search-box', 'Search') + '</td><td height="22" valign="top" nowrap bgcolor=#FFFFFF>');
	document.write('<img src="/images/corner_new2.gif" border=0>');


var nav = '</td>' +
		'<td nowrap bgcolor="#FFFFFF" height="22">' +
		'<FORM NAME="navSelect" style="margin:0;">' +
		'<TABLE HEIGHT="22" WIDTH="70%" BORDER="0" BORDERCOLOR="CCCCCC" CELLSPACING="3" CELLPADDING="5" style="margin:0;" BORDER="0">' +
		'<TR VALIGN="TOP" ALIGN="LEFT" HEIGHT="22">' +
		'<TD HEIGHT="22">' +
		'<SELECT NAME="services" onChange="go_Services(self.document.navSelect.services.selectedIndex);" >' +
			'<OPTION SELECTED>My Consumer Tools</OPTION>' +
			'<OPTION>- - - - - - - - - - - - - </OPTION>' +
			'<OPTION>Write a Review</OPTION>' +	
			'<OPTION>Ask a Question/Get Advice</OPTION>' + 
			'<OPTION>Company Contact Info</OPTION>' +
			'<OPTION>Contact Attorney General</OPTION>' +
			'<OPTION>Legal Help Sites</OPTION>' +
			'<OPTION>Government Agencies</OPTION>' +
			'<OPTION>Contact the BBB</OPTION>' +
			'<OPTION>Contact the NFIC</OPTION>' +
			'<OPTION>Credit Card Fraud Advice</OPTION>' +
			'<OPTION>Help on Debt Collection</OPTION>' +
			'<OPTION>Identity Theft - Get Help</OPTION>' +
			'<OPTION>Handling Telemarketers</OPTION>' +
			'<OPTION>Consumer News Blog</OPTION>' +
			'<OPTION>Top Rated Reviews</OPTION>' +
		'</SELECT>' +
		'</TD>' +
		'<TD HEIGHT="22">' +
		'<SELECT NAME="catSearch" onChange="go_Search(self.document.navSelect.catSearch.selectedIndex);">' +
			'<OPTION SELECTED>Reviews By Category</OPTION>' +
			'<OPTION>- - - - - - - - - - - - - </OPTION>' +
			'<OPTION>Phone/Cable/Internet</OPTION>' +
			'<OPTION>Stores/Products</OPTION>' +
			'<OPTION>Automotive</OPTION>' +
			'<OPTION>Travel</OPTION>' +
			'<OPTION>Computers</OPTION>' +
			'<OPTION>Food</OPTION>' +
			'<OPTION>Health</OPTION>' +
			'<OPTION>Delivery</OPTION>' +
			'<OPTION>Financial</OPTION>' +
			'<OPTION>Miscellaneous</OPTION>' +
			'<OPTION>Job Related</OPTION>' +
		'</SELECT>' +
		'</TD>' +
		'<TD HEIGHT="22">' +
		'<SELECT NAME="login" onChange="go_Login(self.document.navSelect.login.selectedIndex);">' +
			'<OPTION SELECTED>My Account</OPTION>' +
			'<OPTION>- - - - - - - - - - - - - </OPTION>' +
			'<OPTION>Join My3cents!</OPTION>' +
			'<OPTION>Login</OPTION>' +
			'<OPTION>My Profile/Settings</OPTION>' +
			'<OPTION>My Recent Posts</OPTION>' +
			'<OPTION>My Blog</OPTION>' +
			'<OPTION>My Inbox</OPTION>' +
			'<OPTION>Logout</OPTION>' +
		'</SELECT>' +
		'</TD>' +
		'</TR>' +
		'</TABLE>' +
		'</FORM>' +
	'</td>' +
	'</tr>' +
	'</table>' +
	'<BR>';

	document.write(nav);

	return;
}





function inc_bar(){

var bar1 = '<TABLE WIDTH="100%" BGCOLOR="#04359b" CELLPADDING="0" CELLSPACING="0" style="margin:0;" BORDER="0" height=23>' +
		'<TR>' +
		'<TD WIDTH=31%>' +
		'<TABLE ALIGN="LEFT" CELLPADDING="1" CELLSPACING="0" BORDER="0">' +
		'<TR>' +
		'<TD valign=bottom>' +
		'<FONT COLOR=WHITE>' +
		'<FONT style="font-size:13pt;"><b>&nbsp;Search our site for...</b></FONT>' +
		'</FONT>' +
		'</TD>' +
		'</TR>' +
		'</TABLE>' +
		'</TD>';

document.write(bar1);


if (navigator.appName == "Netscape"){
//do nothing
}else{
document.write("<TD ALIGN=LEFT>");
document.write("<FONT COLOR=#04359b>-</FONT>");
document.write("</TD>");
}



var bar2 = '<TD>' +
		'<TABLE WIDTH="100%" ALIGN="RIGHT" CELLSPACING="0" CELLPADDING="2" BORDER="0">' +
		'<TR>' +
		'<TD ALIGN=right>';

document.write(bar2);

var community_link = '';

if(li==1){
  community_link = '  &nbsp; &nbsp; <a href="http://community.my3cents.com"><font class="whtlinkbar">Community</font></a>';
}

var bar3 = '<a href="/getStarted.cgi?ref=2"><font class="whtlinkbar">Write a Review</font></a> &nbsp; &nbsp; <a href="/topReviewsCatalog.cgi"><font class="whtlinkbar">Top Reviews</font></a> &nbsp; &nbsp; <a href="/companyReportSearch.cgi"><font class="whtlinkbar">Company Reports</font></a> &nbsp; &nbsp; <a href="/localSearch.cgi"><font class="whtlinkbar">Local Reviews</font></a>' + community_link + '  &nbsp; </TD>' +
		'</TR>' +
		'</TABLE>' +
		'</TD>' +
		'</TR>' +
		'</TABLE>';

document.write(bar3);

}



function inc_top(flag1, flag2, html, search, bypass){
var adSection = "";
/* Holiday logo
<IMG SRC="/my3cents/images/holiday2006_clear.gif" BORDER="0" alt="Happy Holidays From My3cents.com!" style="position:relative;left:-10px; margin-left:-10px;">
<IMG SRC="/my3cents/images/logo.gif" BORDER="0" alt="Welcome to My3cents!">
*/

/* New way */
 var top = '<TABLE WIDTH="100%" style="padding-bottom: 0px;" CELLPADDING="0" CELLSPACING="0" BORDER="0">' +
	'<TR VALIGN="TOP">' +
	'<TD ALIGN="LEFT" VALIGN="TOP" >' +
	'<A HREF="http://www.my3cents.com" ><IMG SRC="/my3cents/images/logo.gif" BORDER="0" alt="Welcome to My3cents!"></A>' +
	'</TD><TD align="right" valign=top>' +
	'<table width=100% cellpadding=1><tr><td valign=top align=right><form style="padding:3px;text-align:right;margin-bottom:20px;" action="http://www.feedburner.com/fb/a/emailverify" method="post" target="popupwindow" onsubmit="window.open(\'http://www.feedburner.com/fb/a/emailverifySubmit?feedId=1233987\', \'popupwindow\', \'scrollbars=yes,width=550,height=520\');return true"><b style="margin-top:1px;">Subscribe To Our <a href="/newsletterSignup.cgi"><b>Consumer Tips</b></a> Newsletter <a href="/newsletterSignup.cgi"><img src="/images/feedburner_small.png" border=0></a></b><br><br><b>Email: <input type="text" style="width:140px" name="email" value=""/> <input type="hidden" value="http://feeds.feedburner.com/~e?ffid=1233987" name="url"/><input type="hidden" value="My3cents Consumer Newsletter" name="title"/><input type="hidden" name="loc" value="en_US"/><input type="submit" value="Subscribe" /></form></td></tr></table>' +
/* Newsletter	'<table width=100% cellpadding=1><tr><td valign=center align=right><h3>Have a favorite local restaurant?<br>Know a good repair shop?</h3><input type=button value="Recommend a Local Business" onClick="document.location=\'/getStarted.cgi?rec=1\';"><br><br></td></tr></table>' +   */
	'</TD></TR></TABLE>';
//new top
 top_out = '<TABLE WIDTH="100%" style="margin:0;" CELLPADDING="0" CELLSPACING="0" BORDER="0">' +
	'<TR VALIGN="TOP">' +
	'<TD ALIGN="LEFT" VALIGN="TOP" >' +
	'<A HREF="http://www.my3cents.com" ><IMG SRC="/my3cents/images/logo.gif" BORDER="0" alt="Welcome to My3cents!"></A>' +
	'</TD><TD align="right" valign=top>' +
	'<table width=100% cellpadding=1><tr><td valign=top align=right><b style="margin-top:1px;">Subscribe To Our <a href="/newsletterSignup.cgi"><b>Consumer Tips</b></a> Newsletter <a href="/newsletterSignup.cgi"><img src="/images/feedburner_small.png" border=0></a></b><td></tr></table>' +
	'</TD></TR></TABLE><br>';


if(html != ''){
  top = '<TABLE WIDTH="100%" style="margin:0;" CELLPADDING="0" CELLSPACING="0" BORDER="0">' +
	'<TR VALIGN="TOP">' +
	'<TD ALIGN="LEFT" VALIGN="TOP" >' +
	'<A HREF="http://www.my3cents.com" ><IMG SRC="/my3cents/images/logo.gif" BORDER="0" alt="Welcome to My3cents!"></A>' +
	'</TD><TD align="right" valign=top>' +
	html +	'</TD></TR></TABLE><br>';
}

if(search == 'X'){

 adSection = '<table width="100%" cellpadding=5 cellspacing=0 border=0 bgcolor="#F5F5F5" style="margin-bottom:10px;">' + 
             '<tr><td align=center valign=left>' + 
             '<iframe id="iframe" src="/ads/header728.htm" width=728 height=90 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>' + 
             '</td><td width=145 align=right valign=top id="account">' + html +
             '</td></tr></table>';

  top = '<table border=0 cellpadding=0 cellspacing=0 width="100%" id="navtable">' +
        '<tr><td id="navigation" valign="bottom" nowrap><a href="" onClick="return dropdownmenu(this, event, menu1, \'280px\')" onMouseout="delayhidemenu()">Consumer Tools</a><a href="" onClick="return dropdownmenu(this, event, menu2, \'280px\')" onMouseout="delayhidemenu()">Reviews By Category</a><a href="/companyReportSearch.cgi">Company Reports</a><a href="/localSearch.cgi">Local Reviews</a><a href="http://community.my3cents.com">Community</a></td>' +
        '</tr></table>' +
        '<TABLE WIDTH="100%" style="margin:0;border-right: 1px solid #aaaaaa;border-left: 1px solid #aaaaaa;border-top: 1px solid #aaaaaa;padding: 20px 10px 2px 5px;" CELLPADDING="0" CELLSPACING="0" BORDER="0">' +
	'<TR VALIGN="TOP">' +
	'<TD ALIGN="LEFT" VALIGN="top">' +
	'<A HREF="http://www.my3cents.com" ><IMG SRC="/my3cents/images/logo.gif" BORDER="0" alt="Welcome to My3cents!"></A>' +
	'</TD><TD align="right" valign=center id="headerText">' + 
	'<b>Subscribe To Our <a href="/newsletterSignup.cgi"><b>Consumer Tips</b></a> Newsletter</b> <a href="/newsletterSignup.cgi"><img src="/images/feedburner_small.png" border=0></a></b><br><br>' +
	getSearchBox('ffffff', '38', 'cse-search-box', 'Search Reviews') +	'</TD></TR></TABLE>';

}

if(search == 'H'){
  top = '<table border=0 cellpadding=0 cellspacing=0 width="100%" id="navtable">' +
        '<tr><td id="navigation" valign="bottom" nowrap><a href="" onClick="return dropdownmenu(this, event, menu1, \'280px\')" onMouseout="delayhidemenu()">Consumer Tools</a><a href="" onClick="return dropdownmenu(this, event, menu2, \'280px\')" onMouseout="delayhidemenu()">Reviews By Category</a><a href="/companyReportSearch.cgi">Company Reports</a><a href="/localSearch.cgi">Local Reviews</a><a href="http://community.my3cents.com">Community</a></td>' +
        '<td id=account align=right valign=top><a href="/newuser.cgi">Register</a> | <a href="/loginForm.cgi">Login</a> | <a href=\"\" onClick=\"return dropdownmenu(this, event, myaccount, \'230px\')\" onMouseout=\"delayhidemenu()\">Settings</a></td></tr></table>' +
        '<TABLE WIDTH="100%" style="margin:0;border-top: 1px solid #aaaaaa;padding: 20px 10px 2px 5px;" CELLPADDING="0" CELLSPACING="0" BORDER="0">' +
	'<TR VALIGN="TOP">' +
	'<TD ALIGN="LEFT" VALIGN="top">' +
	'<A HREF="http://www.my3cents.com" ><IMG SRC="/my3cents/images/logo.gif" BORDER="0" alt="Welcome to My3cents!"></A>' +
	'</TD><TD align="right" valign=center id="headerText">' + 
	'<b>Subscribe To Our <a href="/newsletterSignup.cgi"><b>Consumer Tips</b></a> Newsletter</b> <a href="/newsletterSignup.cgi"><img src="/images/feedburner_small.png" border=0></a></b><br><br>' +
	getSearchBox('ffffff', '38', 'cse-search-box', 'Search Reviews') +	'</TD></TR></TABLE><br>';

}

if(bypass == 'X'){
  top = "";
}

/*
 adSection = '<table width="100%" cellpadding=0 cellspacing=0 border=0 bgcolor="#f1f1f1" style="margin-bottom:15px;">' + 
             '<tr><td align=center valign=center>' + 
             '<iframe id="iframe" src="/ads/header728.htm" width=728 height=90 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>' + 
             '</td></tr></table>';
*/


document.write(top);
//document.write(adSection);

if(flag1 != 'N'){ 
inc_bar();
}

if(flag2 != 'N'){
inc_nav();
}



return;

}



function inc_forms(){

document.write('<FORM NAME="myProfile" METHOD="post" ACTION="/myProfile.cgi" ENCTYPE="application/html-form-urlencoded" TARGET="_top">');

document.write('<INPUT TYPE="hidden" NAME="userid" VALUE="' + id + '">');
document.write('<INPUT TYPE="hidden" NAME="li" VALUE="' + li + '">');

document.write('<input type=hidden name=wrapper value="">');
document.write('</FORM>');


document.write('<FORM NAME="companyProfile" METHOD="post" ACTION="/companyProfile.cgi" ENCTYPE="application/html-form-urlencoded" TARGET="_top">');
document.write('<INPUT TYPE="hidden" NAME="userid" VALUE="' + id + '">');
document.write('<INPUT TYPE="hidden" NAME="li" VALUE="' + li + '">');
document.write('<input type=hidden name=wrapper value="">');
document.write('</FORM>');

document.write('<FORM NAME="advisorProfile" METHOD="post" ACTION="/advisorProfile.cgi" ENCTYPE="application/html-form-urlencoded" TARGET="_top">');
document.write('<INPUT TYPE="hidden" NAME="userid" VALUE="' + id + '">');
document.write('<INPUT TYPE="hidden" NAME="li" VALUE="' + li + '">');
document.write('<input type=hidden name=wrapper value="">');
document.write('</FORM>');


document.write('<FORM NAME="companyRsp" METHOD="post" ACTION="/addResponseForm.cgi" ENCTYPE="application/html-form-urlencoded" TARGET="_top">');
document.write('<INPUT TYPE=hidden NAME=id VALUE="">');
document.write('<INPUT TYPE=hidden NAME=email VALUE="">');
document.write('<INPUT TYPE="hidden" NAME="userid" VALUE="' + id + '">');
document.write('<INPUT TYPE="hidden" NAME="li" VALUE="' + li + '">');
document.write('<input type=hidden name=wrapper value="">');
document.write('</FORM>');

}




//Modify some style to accommodate Netscape
if(navigator.appName == "Netscape"){
	document.write('<STYLE>.small { font-size: 8pt; font-family: Verdana,Arial,Helvetica,sans-serif; }</STYLE>');
	document.write('<STYLE>.smallcats { font-size: 8pt; font-family: Verdana,Arial,Helvetica,sans-serif;}</STYLE>');
}





function postAd(msg){
	document.write(msg);
}



// Used for Refer-a-friend form 
function submitReferral(){
	var url;
	url = fileSubmitReferal + '?id=' + document.referralSubmit.id.value;
	url = url + '&email=' + document.referralSubmit.referemail.value;
	var w=250;
	var h=120;
	var code;
	code = "window.open(url,'castReferral', 'scrollbars=auto,resizable=yes,";
	code = code + "width=" + w + ", height=" + h + "');";
	eval(code);
}




function newsletterSignup(){
	var code;
	var url;
	
	url = fileNewsReg + '?email=' + document.frmNewsReg.email.value;








	code = "window.open(url,'castVote', 'scrollbars=1,resizable=yes,width=300,height=150');";
	eval(code);
}



//Handles all voting functionality
function castVote(type, id, display){
	var now=new Date();
	var month=now.getMonth() + 1; 
	var theHour = now.getHours();
	var theMinutes = now.getMinutes();
	var theDate = month + "/" + now.getDate() + "/" + now.getFullYear() + theHour;
	var url;       


	if(display==undef){
		display = "";
	}
	if(id==undef){
		id = "";
	}
	if(display=="X"){
		url = fileCastVote + '?id=' + id;
		url = url + '&type=' + type;
		url = url + '&display=' + display;
	}else{



		if(id){
			url = fileCastVote + '?id=' + id;
		}else{
			url = fileCastVote + '?id=' + document.Vote.id.value;
			url = url + '&userid=' + document.Vote.userid.value;
		}
		url = url + '&vote=' + choice;
		url = url + '&date=' + theDate;
		url = url + '&type=' + type;
		url = url + '&display=' + display;
	}



	var w=300;
	var h=300;
	var code;
	code = "window.open(url,'castVote', 'scrollbars=1,resizable=yes,width=300,height=300');";
	eval(code);
}






function showVote(url){
	window.open(url,"showVote",'scrollbars=auto,resizable=yes,width=300,height=300');
}





// Opens a small window to show numerous information sections of the site
function showComments(url){
	code = "myComWin=window.open(url,'showComment','scrollbars=1,resizable=yes,width=295,height=400');myComWin.focus();";
	eval(code);
}






function openWindow(url,w,h){
	if(!w)	{
		w = 650;
		h = 450;
		}




		var code;
		code = "my_Win=window.open(url,'showWin','scrollbars=1,resizable=yes,top=150,left=150,";
		code = code + "width=" + w + ",height=" + h + "');my_Win.focus();";




		eval(code);
		
}




//Used all over the place to write out the subheading bars...
function writeBar(width,color,text,mode,subtext){
	var showUser = "<font class=small>You are logged on as <b>" + uid + "</b></font>";
      showUser = "";
	width="20%";



	if(affiliateMode=="N"){
		mode = 0;
	}




	//Temp solution for color change
	if(color=="#7eda47"){
		color = "#58D010";
	}
	if(color=="#eca61d"){
		color = "#FBA035";
        }
	if (mode==0){
		showUser="<font color=#FFFFFF>-</font>";
	}
	if (mode==2){
		showUser="<font class=small>Provided by </font><a href='javascript:top.location=" + '"http://www.my3cents.com"' + ";' class=small>My3cents.com</a> ";
		subtext = "<font color=#FFFFFF>-</font>";
	}
	if (subtext == undef){
		subtext = "<font color=#FFFFFF>-</font> ";
	}
	if (isNetscape){
		document.write("<TABLE WIDTH=100% BGCOLOR=" + color + " BORDER=0 ALIGN=center CELLSPACING=0 CELLPADDING=0>");
	}else{
		document.write("<TABLE WIDTH=100% BGCOLOR=" + color + " BORDER=0 ALIGN=center CELLSPACING=0 CELLPADDING=0 style=margin:5px;>");
	}



	document.write("<TR>");
        document.write("<TD VALIGN=top>");
      	document.write("<TABLE WIDTH=100% BGCOLOR=#ffffff BORDER=0 ALIGN=center CELLSPACING=0 CELLPADDING=4>");
        document.write("<TR>");
        document.write("<TD CLASS=tblheader NOWRAP WIDTH=" + width + " BGCOLOR=" + color + "><b>" + text + "</b></TD>");
        document.write("<TD BGCOLOR=#FFFFFF ALIGN=CENTER>" + subtext + "</TD>");
        document.write("<TD BGCOLOR=#FFFFFF ALIGN=RIGHT>" + showUser + "</TD>");
        document.write("</TR>");
        document.write("<TR BGCOLOR=" + color + ">");
		
	if(!isNetscape){
		document.write('<TD><TD><TD>');
	}
		
        document.write("</TR>");
        document.write("</TABLE>");
        document.write("</TD>");
       	document.write("</TR>");
	document.write("</TABLE>");








}




function delete_cookie ( cookie_name )
{
  var cookie_date = new Date ( );  // current date & time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = cookie_name += "=; domain=.my3cents.com; expires=" + cookie_date.toGMTString();
}

function delete_cookie2 ( cookie_name )
{
  var cookie_date = new Date ( );  // current date & time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}


function logout(){
	document.cookie = "";
	delete_cookie("m3c");
	delete_cookie2("m3c");
	delete_cookie("my3centsID");
	document.location = fileLogout + "?session=" + uid;
}





/* OUT 
//Set a cookie for login...
function setCookie(tag,name)
{
	var the_cookie = tag + name;
	var the_date = new Date("December 31, 2099");
	var the_cookie_date = the_date.toGMTString();
	the_cookie = the_cookie + ";expires=" + the_cookie_date; 
	document.cookie = the_cookie + ";" + document.cookie;
}
*/


//Set a cookie for login...
function setCookie(tag,name,expires)
{
	var the_date = new Date("December 31, 2099");
	var the_cookie_date = the_date.toGMTString();
	the_cookie_date = ";expires=" + the_cookie_date;


	// If user does not want to be remembered, default to session cookie only
	if(expires == 1){
		the_cookie_date = "";
	}


	var the_cookie = tag + "=" + name;
	the_cookie = the_cookie + the_cookie_date; 
	document.cookie = the_cookie + ";" + "domain=.my3cents.com;";
}




//Get the cookie value
function getCookie(tag)
{
	var name = tag;
        if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(name);
		if (offset != -1) {
			offset += name.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1) 
				end = document.cookie.length;
			return document.cookie.substring(offset, end);
		}
	}
}




//Check if cookie exists
function checkCookie(){
  alert('check');
  document.forms[0].elements[0].value = getCookie('m3c');
  if (document.forms[0].elements[0].value == "undefined"){
    document.forms[0].elements[0].value = getCookie('m3c=');
      if (document.forms[0].elements[0].value == "undefined"){
	   document.forms[0].elements[0].value = "";
      }
  }
}




// Setup some user variables...
var tmpid;
id = getCookie('m3c=');

if(id==undef){
	//id = getCookie('m3c');
  	var cookie_date = new Date ( );  // current date & time
  	cookie_date.setTime ( cookie_date.getTime() - 1 );
  	document.cookie = "m3c; expires=" + cookie_date.toGMTString();

	document.cookie = '';
	id = "Anonymous";
	uid = "Anonymous";
	li = 0;
}else{
	tmpid = id.split("7848IE8X754Bmy");
	tmpid = tmpid[0].split("@");
	uid = tmpid[0];
	li = 1;


      if(uid=="Anonymous"){
		document.cookie = '';
	}
}


// Some form validation logic...
function validate(overide){



	if(overide=='X'){
		document.submitComplaint.submit();
		return true;
	}
	if(document.submitComplaint.msgtype.value==''){
		alert("You must specify a Messages Type...");
		document.submitComplaint.msgtype.focus();
		return false;
	}
	if(document.submitComplaint.type.value==''){
		alert("You must specify a Type...");
		document.submitComplaint.type.focus();
		return false;
	}
	if(document.submitComplaint.category.value==''){
		alert("You must specify a Category...");
		document.submitComplaint.category.focus();
		return false;
	}
	if(document.submitComplaint.company.value==''){
		alert("You must specify a Company...");
		document.submitComplaint.company.focus();
		return false;
	}



	if(document.submitComplaint.title.value==''){
		alert("You must specify a Title/Topic...");
		document.submitComplaint.title.focus();
		return false;
	}


	if(document.submitComplaint.complaint.value==''){
		alert("You must specify your story...");
		document.submitComplaint.complaint.focus();
		return false;
	}



	document.submitComplaint.submit();


	return true;
}




function validateLetter(send,overide){




	if(overide=='X'){
		if(send==2){
			document.letter.send.value="Yes";
			document.letter.target="_top";
			document.letter.submit();
			return true;
		}else{
			document.letter.send.value="No";
			document.letter.submit();
			return true;
		}
	}



	if(document.letter.msgtype.value==''){
		alert("You must specify a Messages Type...");
		document.letter.msgtype.focus();
		return false;
	}




	if(document.letter.type.value==''){
		alert("You must specify a Type...");
		document.letter.type.focus();
		return false;
	}



	if(document.letter.location.value==''){
		alert("You must specify a Location...");
		document.letter.location.focus();
		return false;
	}




	if(document.letter.line1.value==''){
		alert("You must specify your name");
		document.letter.line1.focus();
		return false;
	}


	if(document.letter.letter.value==''){
		alert("You must enter content for your letter...");
		document.letter.letter.focus();
		return false;
	}



	if(send==2){
		document.letter.send.value="Yes";
		document.letter.target="_top";
		document.letter.submit();
		return true;
	}else{


		document.letter.send.value="No";
		document.letter.submit();
		return true;
	}




	document.letter.submit();



	return true;
}




function printLetter(override){
	document.letterSubmit.action=fileDisplayLetter;
	document.letterSubmit.target="top";
	document.letterSubmit.submit();
	return true;
}





function sendLetter(override){
	document.letterSubmit.action=fileSendLetter;
	//document.letterSubmit.target="_top";
	document.letterSubmit.submit();
	return true;
}





function validateNewUser(){








	if(document.frmLoginCreate.userid.value==''){
		alert("You must specify a userid...");
		document.frmLoginCreate.userid.focus();
		return false;
	}



	if(document.frmLoginCreate.zip.value==''){
		alert("You must enter your zip...");
		document.frmLoginCreate.zip.focus();
		return false;
	}




	if(document.frmLoginCreate.handle.value==''){
		alert("You must enter a handle/nickname...");
		document.frmLoginCreate.handle.focus();
		return false;
	}








	document.frmLoginCreate.submit();
	return true;
}



function vli(url,wrapper){
	var tmp_url;

        /* MDS new code to jump to quick login for new review authors */
        if((url.indexOf("Opinion") >= 0 || url.indexOf("opinion") >= 0) && (li==0)){
          top.location="/getStarted.cgi?ref=2";
          return;
        }


	if(wrapper==undef){
		wrapper = "";
	}
	if(li==1){
		document.location=url;
	}else{


		if(wrapper == "X"){
			alert('You must be logged in to use this feature.');
			wrapper = "";
			return;
		}
		tmp_url = "88389" + url;
		if(wrapper != ""){
		document.location=fileLoginForm + "?url=" + tmp_url;
		}else{
		top.location=fileLoginForm + "?url=" + tmp_url;
		}
	}
	return;
}




function go_Services(index){


	var my_url;



	if (index==2){
		my_url = filePostOpinion1;
		vli(my_url);
		/* top.location=my_url; */
		self.document.navSelect.services.selectedIndex=0;
	}



	if (index==3){
		my_url = fileAskQuestion;
		vli(my_url);
		/* top.location=my_url; */
		self.document.navSelect.services.selectedIndex=0;
	}

	if (index==4){
		top.location=fileCompanySearch;
		self.document.navSelect.services.selectedIndex=0;
	}



	if (index==5){
		my_url = fileAgSearch;
		vli(my_url);
		/* top.location=my_url; */
		self.document.navSelect.services.selectedIndex=0;
	}








	if (index==6){
		my_url = fileLegalLinks;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}
	if (index==7){
		my_url = fileGovLinks;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}




	if (index==8){
		my_url = BBBComplaint;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}
	if (index==9){
		my_url = NFComplaint;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}

	if (index==10){
		my_url = FraudCC;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}
	if (index==11){
		my_url = FraudDebt;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}

	if (index==12){
		my_url = FraudIdTheft;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}
	if (index==13){
		my_url = FraudTelemarket;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}

	if (index==14){
		my_url = fileBlog;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}
	
	if (index==15){
		my_url = fileTopReviews;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}

	if (index==16){
		my_url = fileCommunity;
		top.location=my_url;
		self.document.navSelect.services.selectedIndex=0;
	}
	

}






function go_Login(index){




	if (index==2){
		top.location=fileNewUser;
	}








	if (index==3){
		top.location=fileLoginForm;
	}








	if (index==4){
		if(id=='Anonymous'){
			alert('Please login first!');
		}
		else{
			//document.myProfile.userid.value=id;
			//document.myProfile.li.value=li;
			//document.myProfile.submit();
			document.location="/myProfile.cgi";
		}
	}



	if (index==5){
		if(id=='Anonymous'){
			alert('Please login first!');
		}
		else{
			document.location="/userComments.cgi?uid=" + uid;
		}
	}


	if (index==6){
		if(id=='Anonymous'){
			alert('Please login first!');
		}
		else{
			document.location="/userBlog.cgi";
		}
	}

	if (index==7){
		if(id=='Anonymous'){
			alert('Please login first!');
		}
		else{
			document.location="/inbox.cgi";
		}
	}

	if (index==8){
		logout();
	}
}



function go_Search(index){
	if (index==2){
		top.location=fileCatList + '?category=SERVICES';
	}
	if (index==3){
		top.location=fileCatList + '?category=CONSUMER';
	}
	if (index==4){
		top.location=fileCatList + '?category=AUTO';
	}
	if (index==5){
		top.location=fileCatList + '?category=TRAVEL';
	}
	if (index==6){
		top.location=fileCatList + '?category=COMPUTER';
	}
	if (index==7){
		top.location=fileCatList + '?category=FOOD';
	}




	if (index==8){
		top.location=fileCatList + '?category=HEALTH';
	}
	if (index==9){
		top.location=fileCatList + '?category=DELIVERY';
	}
	if (index==10){
		top.location=fileCatList + '?category=FINANCE';
	}
	if (index==11){
		top.location=fileCatList + '?category=MISC';
	}
	if (index==12){
		top.location=fileJobSchmob;
	}


}





function go_Company(index){
	if (index==2){
		top.location=fileCompanyRegister;
	}
	if (index==3){
		top.location=fileCompLogin;
	}
	if (index==4){
		if(id=='Anonymous'){
			alert('Please login first!');
		}
		else{
			document.companyProfile.userid.value=id;
			document.companyProfile.li.value=li;
			document.companyProfile.submit();
		}
	}
	if (index==5){
		top.location=fileCorporateServices;
	}








}




function emotion(type){
	if(type==1){
		document.images['icon'].src=imageComplaint;
	}
	if(type==2){
		document.images['icon'].src=imageCompliment;
	}
	if(type==3){
		document.images['icon'].src=imageInformative;
	}
	if(type==4){
		document.images['icon'].src=imageQuestion;
	}
}




function submitSearch(){


	if(document.search.criteria.value==""){
		return false;
	}else{
		return true;
	}


}



function checkForm(form){


	if(form=='contactus'){
		if(document.contactUs.realname.value==''){
			alert("Please specify your name...");
			document.contactUs.realname.focus();
			return false;
		}
		if(document.contactUs.email.value==''){
			alert("Please specify your email...");
			document.contactUs.email.focus();
			return false;
		}
		if(document.contactUs.message.value==''){
			alert("Please specify a message...");
			document.contactUs.message.focus();
			return false;
		}
		document.contactUs.submit();
		return true;
	}


	if(form=='partner'){
		if(document.partnerSubmit.website.value==''){
			alert("Please specify your website...");
			document.partnerSubmit.website.focus();
			return false;
		}
		if(document.partnerSubmit.name.value==''){
			alert("Please specify your name...");
			document.partnerSubmit.name.focus();
			return false;
		}
		if(document.partnerSubmit.email.value==''){
			alert("Please specify a email address...");
			document.partnerSubmit.email.focus();
			return false;
		}


		document.partnerSubmit.submit();
		return true;
	}
}








var tid1;
var tid2;
var tid3;
var tid4;
var compVote = 0;;







function setStatic(index){
	compVote = index;
	lightStars(index);
}










function clearAll(){
	if(compVote==0){
		document.images['star1'].src=imageBlankStar;
		document.images['star2'].src=imageBlankStar;
		document.images['star3'].src=imageBlankStar;
		document.images['star4'].src=imageBlankStar;
		document.images['mood'].src=imageNeutral;
	}
}
































function clearStars(index){
	if(compVote==0){
		if(index==1){
			tid1 = setTimeout("clearAll()", 4000)
		}
		if(index==2){
			tid2 = setTimeout("clearAll()", 4000)
		}
		if(index==3){
			tid3 = setTimeout("clearAll()", 4000)
		}
		if(index==4){
			tid4 = setTimeout("clearAll()", 4000)
		}
	}
}
























function lightStars(index){








	if(compVote==0){








		if(index==1){
			window.clearTimeout(tid1);
			document.images['star1'].src=imageStar;
			document.images['star2'].src=imageBlankStar;
			document.images['star3'].src=imageBlankStar;
			document.images['star4'].src=imageBlankStar;
			document.images['mood'].src=imageSuperComplaint;
		}
		if(index==2){
			window.clearTimeout(tid2);
			document.images['star1'].src=imageStar;
			document.images['star2'].src=imageStar;
			document.images['star3'].src=imageBlankStar;
			document.images['star4'].src=imageBlankStar;
			document.images['mood'].src=imageComplaint;
		}
		if(index==3){
			window.clearTimeout(tid3);
			document.images['star1'].src=imageStar;
			document.images['star2'].src=imageStar;
			document.images['star3'].src=imageStar;
			document.images['star4'].src=imageBlankStar;
			document.images['mood'].src=imageCompliment;
		}
		if(index==4){
			window.clearTimeout(tid4);
			document.images['star1'].src=imageStar;
			document.images['star2'].src=imageStar;
			document.images['star3'].src=imageStar;
			document.images['star4'].src=imageStar;
			document.images['mood'].src=imageSuperCompliment;
		}
	}
	return true;
}




if(setB == "X"){
  setCookie("retB=","X");
  document.location = "/login.asp";
}








if(getCookie("retB=") == "X"){
	document.location="/login.asp";
}








function orderServices(){








	var url;








	if(orderID==""){
		alert('Please select one of your reviews/letters below first');
	}else{
		url = fileOrderServices + '?id=' + orderID;
		top.location = url;
		return;
	}








}






function checkLogin(){


		if(id=='Anonymous'){
			document.location=fileLoginForm;
		}
		else{
			//document.myProfile.userid.value=id;
			//document.myProfile.li.value=li;
			//document.myProfile.submit();
			document.location="/myProfile.cgi";
		}


}


function update(msg, page){
//Use AJAX to send update msg to server

// Only if logged in
if(li==1 || page == 1){

var xmlReq = null 

if (typeof window.ActiveXObject != 'undefined' ) 
{ 
	xmlReq = new ActiveXObject("Microsoft.XMLHTTP"); 
	//doc.onreadystatechange = displayState; 
} 
else 
{ 
   	xmlReq = new XMLHttpRequest(); 
 	//doc.onload = displayState; 
}

var str = msg;

var url = "";

if(page == 1){
	url = "/castReviewVote.cgi";
}else if(page == 2){
	url = "/maintainTrust.cgi";
}else if(page == 3){
	url = "/userReward.cgi";
}else if(page == 4){
	url = "/maintainBlock.cgi";
}



xmlReq.open("POST",url,true); 

xmlReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 

xmlReq.send(str);

// Send a confirm message if necessary
if(page == 1){
	alert('Your vote has been successfully cast!');
}else if(page == 2 || page == 4){
	if(page == 4){
		alert('Your block list has been updated!');
	}else{
		alert('Your trust list has been updated!');
	}

	var sURL = window.location.href;
	window.location.replace( sURL );
}

}
else
{
	alert('You must be logged in to use this feature.');
}

}


function forward(msg){
//Use AJAX to send mail

var xmlReq = null 

if (typeof window.ActiveXObject != 'undefined' ) 
{ 
	xmlReq = new ActiveXObject("Microsoft.XMLHTTP"); 
	//doc.onreadystatechange = displayState; 
} 
else 
{ 
   	xmlReq = new XMLHttpRequest(); 
 	//doc.onload = displayState; 
}

var str = msg;
var new_bit = "2";


var url = "";

url = "/forwardReview" + new_bit + "." + ext;

xmlReq.open("POST",url,true); 

xmlReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 

xmlReq.send(str);

// Send a confirm message if necessary

alert('Your e-mail has been successfully sent!');

}

function printEmailForm(id, type, placement){
	var emailForm = '';
	emailForm = emailForm + '<br><br><form name="f">';
	emailForm = emailForm + '<table bgcolor=#CAF0C2 cellpadding=5 border=1><tr><td>';
	emailForm = emailForm + '<table>';
	emailForm = emailForm + '<tr><td nowrap><b>To E-mail: </b><br><input type="text" name="to" size=30></td></tr>';
	emailForm = emailForm + '<tr><td nowrap><b>From (Your name):</b><br><input type="text" name="from" size=30></td></tr>';
	emailForm = emailForm + '<tr><td nowrap><b>Your E-mail:</b><br><input type="text" name="from_e" size=30></td></tr>';
	emailForm = emailForm + '<tr>';
	emailForm = emailForm + '<td><b>Subject:</b><br><input type="text" name="subject" size="30"></td>';
	emailForm = emailForm + '</tr><tr><td colspan="2" align="right">';
	emailForm = emailForm + '<input type="button" value="Send E-mail" onClick="forward(\'r=\' + document.f.to.value + \'&s=\' + document.f.subject.value + \'&f=\' + document.f.from.value + \'&fe=\' + document.f.from_e.value + \'&id=' + id + '&type=' + type + '\'); document.getElementById(\'e' + placement + '\').className=\'Collapse\';"> <input type=button value="Cancel" onClick="document.getElementById(\'e' + placement + '\').className=\'Collapse\';">';
	emailForm = emailForm + '</td></tr></table>';
	emailForm = emailForm + '</td></tr></table></form>';
	return emailForm;
}


function loadAvatars() {
	var address = document.getElementsByTagName('address');
	var def_avatar = "http://www.my3cents.com/my3cents/images/blank.gif";
	for (var i = 0; i < address.length; i++){ 
		address[i].innerHTML = "<img src=\"http://www.gravatar.com/avatar.php?gravatar_id=" + address[i].innerHTML + "&default=" + def_avatar + "&size=50\" border=0 style=\"float:left;padding:1px;\" />";
		address[i].className = "";
		//address[i].replace(address[i], "<img src=\"http://www.gravatar.com/avatar.php?gravatar_id=" + address[i].innerHTML + "&size=50\" />")
	}
}

function bookmark(){
  var url = document.location;
  var title = document.title;
  if (window.sidebar) { // Mozilla Firefox Bookmark
	window.sidebar.addPanel(title, url,"");
  }else if( window.external ) { // IE Favorite
	window.external.AddFavorite( url, title); 
  } else {
    	alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

function print(){
var undef;
var title = document.title;
var review1 = document.getElementById("reviewId1").innerHTML;
var review2 = "";
var browserName=navigator.appName; 

if(document.getElementById('reviewId2') == undef){
}else{
  review2 = document.getElementById("reviewId2").innerHTML;
}

document.writeln("<HTML><HEAD><STYLE>BODY{Margin-left: 16px;color: #000000;font-size: 10pt;font-family: Arial;A{color: BLUE;Font-Size: 10pt;font-family: Arial;TD{color: #000000;font-size: 10pt;font-family: Arial;TH{color: #000000;font-size: 8pt;font-family: Arial;</STYLE>");
document.writeln("<BODY>");
document.writeln("<TABLE WIDTH=100% BORDER=0 cellspacing=5><TR><TD align=left><img src='/my3cents/images/logo.gif'></TD><TD align=right><input type=button value=' Print Page ' onClick='window.print();history.go(-1);'></TD></TR><TR><TD COLSPAN=2>");
document.writeln("<h2>" + title + "</h2>");
document.writeln(review1 + review2);
document.writeln("<BR><BR><i>Source: " + document.location);
document.writeln("<BR>Copyright &copy; My3cents.com</i>");
document.writeln("</BODY></HTML>");
if (browserName=="Microsoft Internet Explorer"){
window.location.reload( false );
}
return;

}


function go(o){
  var url = o.innerHTML;
  var newURL = url.replace("&amp;", "&");
  document.location = newURL;
  return;
}

function jumpToProductReviews(val){

var tmpVal;
var tmpURL;

if(val != ''){
tmpVal = val.split("|");
tmpURL = "/productReview.cgi?compid=" + tmpVal[0] + "&product=" + tmpVal[1];
document.location = tmpURL;
}

return;

}


function toggle(col){
  var elem = "";
  elem = "m" + col;
  var buttonObj = document.getElementById(elem);
  if(col == 1){
  	buttonObj.style.background="#6B8FFB";
  }else if(col == 2){
  	buttonObj.style.background="#7ED06D";  
  }else if(col == 3){
  	buttonObj.style.background="#FBA24A";  
  }else if(col == 4 || col == 5){
  	buttonObj.style.background="#AAAAAA";  
  }
}

function toggle_off(col){
  var elem = "";
  elem = "m" + col;
  var buttonObj = document.getElementById(elem);
  if(col == 1){
  	buttonObj.style.background="#D2E4FC";
  }else if(col == 2){
  	buttonObj.style.background="#CAF0C2";  
  }else if(col == 3){
  	buttonObj.style.background="#FFCC99";  
  }else if(col == 4 || col == 5){
  	buttonObj.style.background="#E6E6E6";  
  }
}

function loadTopAd(){
var ad = document.getElementById('adSlot').innerHTML;
document.getElementById('topAd').innerHTML = ad;
}
