function startup(){
	niftycorners();
	if(document.getElementById("rImage")) rotateImage('rImage');
}

function limitTextarea(obj, maxlength, statusid) {
		if(obj.value.length > maxlength) obj.value = obj.value.substring(0, maxlength);
		document.getElementById(statusid).innerHTML = maxlength - obj.value.length;
}

// Popup Functions
function popwin() {		
	var popW = 400, popH = 400;
	var w = screen.availWidth;
	var h = screen.availHeight;
	var popName = "myWin";
	
	page = popwin.arguments[0];
	
	if(popwin.arguments[1]) popW = popwin.arguments[1];
	if(popwin.arguments[2]) popH = popwin.arguments[2];
	if(popwin.arguments[3]) popName = popwin.arguments[3];
	
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	
	myWin = window.open(page,popName,"resizable=1,scrollbars=1,width="+popW+",height="+popH+",top="+topPos+",left="+leftPos)
	myWin.focus();
}

var popUpWin=0;
function NewWindow(URLStr, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+width+',height='+height+'');
}

function openWin(myURL, myHeight, myWidth){
		window.open(myURL, 'name', "scrollbars=yes,height=" + myHeight + ",width=" + myWidth + ",toolbar=no,resizable=yes");
}	

function  _CF_checkenewssub(_CF_this)
{
	if  (!_CF_hasValue(_CF_this.emailaddress, "TEXT" ))
	{
		if  (!_CF_onError(_CF_this, _CF_this.emailaddress, _CF_this.emailaddress.value, "You must enter your email address."))
		{
			return false;
		}
	}
	return true;
}


<!-- Word Counter from The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
   var submitcount=0;
   function checkSubmit() {

      if (submitcount == 0)
      {
      submitcount++;
      document.wordcount.submit();
      }
   }


function wordCounter(field, countfield, maxlimit) {
wordcounter=0;
for (x=0;x<field.value.length;x++) {
      if (field.value.charAt(x) == " " && field.value.charAt(x-1) != " ")  {wordcounter++}  // Counts the spaces while ignoring double spaces, usually one in between each word.
      if (wordcounter > 250) {field.value = field.value.substring(0, x);}
      else {countfield.value = maxlimit - wordcounter;}
      }
   }
//  End -->



