<!--  
 
/**********************************************************************************************
	Print Window	
***********************************************************************************************/

function printpage() {
window.print();  
}

/**********************************************************************************************
	Pop Window	
***********************************************************************************************/

function popCommon(page) {
	var newWindow =	window.open(page,"COMMON","toolbar=no,menubar=no,scrollbars=yes,resizable=no,HEIGHT=380,width=540")
}

/**********************************************************************************************
	Terms & Conditions Pop Window	
***********************************************************************************************/
 
function popAgree(){
window.open('/cb/inc/aspx/terms.aspx','TERMS','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=550,height=300')
}


/**********************************************************************************************
	Favorite List	
***********************************************************************************************/

function addbookmark(urlAddress,pageName){
  if (window.external){
   window.external.AddFavorite(urlAddress,pageName)
  }
  else { 
   alert("Sorry! Your browser doesn't support this function.");
  }
 }
 
/**********************************************************************************************
	numbers only
***********************************************************************************************/
function numbersonly(myfield, e, dec)
{
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==13) || (key==27) )
   return true;

// numbers
else if ((("0123456789").indexOf(keychar) > -1))
   return true;

// decimal point jump
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   return false;
   }
else
   return false;
}

/**********************************************************************************************
	character limit
***********************************************************************************************/

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}
/**********************************************************************************************
	rotateSponsor
***********************************************************************************************/

	function sponsor1() {
        this.src = ''
	}
	
	images = new Array()
	for(var i=1; i<=5; i++) { images[i] = new sponsor1() }

	images[1].src = "img/sp_1.gif"
	images[2].src = "img/sp_1.gif"
	images[3].src = "img/sp_1.gif"
	images[4].src = "img/sp_1.gif"
	images[5].src = "img/sp_1.gif"

	var n = Math.random() + ''
		n = parseInt(n.charAt(5))
	
	if(n >5) {
       n = n - 5
	}
	else if(n==0) {
       n = n + 5
	}
	
	n += ""

	var image = images[n]
	var sponsor1 = ""
	sponsor1 += '<img src="' + image.src + '" width=215 height=75 alt="""" vspace=5 border=0>'



//-->
