//detect pc, redir
ubrowser=navigator.userAgent;
searchfor="Mobile";

var1=(ubrowser.search(searchfor));

if (var1==-1){
	window.location="http://unido.maxwelldev.com/pc"
}






function shownote(d_div){
if(d_div.length < 1) { return; }
	document.getElementById('main_notes').style.display = "none";
	document.getElementById('addnote').style.display = "none";
	document.getElementById('detail').style.display = "block";
	document.getElementById(d_div).style.display = "block";
}

function showmain(){
	document.getElementById('main_notes').style.display = "block";
	document.getElementById('addnote').style.display = "none";
	document.getElementById('detail').style.display = "none";
}


function addnote(){
	document.getElementById('main_notes').style.display = "none";
	document.getElementById('detail').style.display = "none";
	document.getElementById('addnote').style.display = "block";
}

function checkCatField(){
	if(document.getElementById('catSelectField').value == "newCategory")
	{
		document.getElementById('catTextField').style.display = "block";
	}else{
		document.getElementById('catTextField').style.display = "none";
	}
}

function goCat(d){
str="http://unido.maxwelldev.com/cat.php?id=" + d;
window.location=str;
}


function donate(){
	document._xclick.submit();
}

function clinktasks(){
str="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=293287711&mt=8";
window.location=str;
}


function linkto(str){
	str="http://unido.maxwelldev.com/" + str;
	window.location=str;
}