function loginlink(){
	document.write("<A HREF=\"/login.html\" STYLE=\"font-family:arial,geneva,sans-serif;font-size:9px;color:#cccccc;\">log in</A>");
	document.write("<BR />");
}

function editlogout(x,y){
	document.write("<A HREF=\"/logout.html\" STYLE=\"font-size:9px;\">log out</A>&nbsp;|&nbsp;");
	document.write("<A HREF=\"/admin.html\" STYLE=\"font-size:9px;\">site administration</A>");
	if(y>0){
		document.write("&nbsp;|&nbsp;<span STYLE=\"font-size:9px;color:#cccccc;\">edit page</span>");
	}else{
		document.write("&nbsp;|&nbsp;<A HREF=\"/wysiwyg/index.html?url="+x+"\" STYLE=\"font-size:9px;\">edit page</A>");
	}
	document.write("<BR />");
}

function editlogout_alt(mid){
	document.write("<A HREF=\"/logout.html\" STYLE=\"font-size:9px;\">log out</A>&nbsp;|&nbsp;");
	document.write("<A HREF=\"/admin.html\" STYLE=\"font-size:9px;\">site administration</A>&nbsp;|&nbsp;");
	document.write("<A HREF=\"/admin.html?mode=prod&task=view&mid="+mid+"\" STYLE=\"font-size:9px;\">edit product</A>");
	document.write("<BR />");
}

function keyword_search(){
	if(document.getElementById('q').value.length > 3){
		//document.location='http://www.google.com/search?hl=en&q=site%3Arwwise.com+'+document.getElementById('q').value;
		document.search_form.submit();
	}
}

function set_opacity(id,pct){
	document.getElementById(id).style.opacity = (pct / 100);
	document.getElementById(id).style.MozOpacity = (pct / 100);
	document.getElementById(id).style.filter = 'alpha(opacity='+pct+')';
}
// Preload images
function newImage(arg) {
	rslt = new Image();
	rslt.src = arg;
	return rslt;
}


function get_blog(){
	//document.write("<script src=\"http://app.feeddigest.com/digest3/W9HJ1DD1OJ.js\" language=\"javascript\"></SCRIPT>");
	document.write("<script src='/show_blog.php' language='javascript' type='text/javascript'></SCRIPT>");
}
