if(parent.frames.length!=0)top.location='/thelinktotrenton/';

function mover(object,bgcolor,fcolor,area){
object.style.cursor = 'crosshair';
object.style.backgroundColor=bgcolor;
if(object.getElementsByTagName('a')[0]){
object.getElementsByTagName('a')[0].style.color = fcolor;
eval(area+".style.display = 'inline'");
}

}
function mout(object,bgcolor,fcolor,area){
object.style.cursor = 'default';
object.style.backgroundColor=bgcolor;
if(object.getElementsByTagName('a')[0]){
object.getElementsByTagName('a')[0].style.color = fcolor;
eval(area+".style.display = 'none'");
}


}
function mclk(object){
document.location.href = object.getElementsByTagName('a')[0].href
}
function mclkn(object){
window.open(object.getElementsByTagName('a')[0].href);
}

function getCookie(NameOfCookie)
{ if (document.cookie.length > 0) 
{ begin = document.cookie.indexOf(NameOfCookie+"="); 
if (begin != -1) 
{ begin += NameOfCookie.length+1; 
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(begin, end)); } 
}
return null; 
}

function setCookie(NameOfCookie, value, expiredays) 
{ var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) + 
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
} 

function checkdiscussionpost(){
if(document.forms[0].From.value=="" || document.forms[0].Message.value==""){
	alert('You left one or more fields blank.');
	return false;
}
if(getCookie('postdelay')){
	alert('Please wait 30 seconds before posting again.');
	return false;
}
else setCookie('postdelay',1,1/(24*60*2));
return true;
}

function checkforumpost(){
if(document.forms[0].Subject.value==""){
	alert('You left one or more fields blank.');
	return false;
}
return checkdiscussionpost();
}