function tellafriendthis(strid) {
window.location = 'tellafriend.cfm?id=' + strid;
}

function votenominee(strid) {
window.location = 'vote.cfm?id=' + strid;
}

function popWin(zurl,win_title) {
window.open(zurl,win_title,'width=440, scrollbars=yes');
}


function saveandleave(pagecode,page) {
if (pagecode == 'search') {
document.forms.searchform.submit();
return;
} else {
window.location = page;
}
}

function gotodetail(i) {
	document.forms.gallerydetail.action = 'nominee_detail.cfm?id=' + i.toString();
	document.forms.gallerydetail.id.value = i;
	document.forms.gallerydetail.submit();
}
function gotogallery(i) {
	document.forms.gallerydetail.action = 'nominee_index.cfm';
	document.forms.gallerydetail.page.value = i;
	document.forms.gallerydetail.submit();
}

/*set search box value onfocus or on blur if nothing is entered*/
function setsearchtext(myinput){
	if(myinput.value == ''){
		myinput.value = "Search All Nominees";	
	} else if (myinput.value == 'Search All Nominees'){
		myinput.value = "";
	}
}

function gotopage(p) {
	document.forms.gallery.page.value = p;
	document.forms.gallery.submit();
}

function isNumeric(val){
	return(parseFloat(val,10)==(val*1));
}

function pagejump(mypage){
	window.location = mypage;
	}