
var url=location.href;

hash=url.indexOf('#')

if(hash!=-1){url=url.substring(0,hash);}


if(url.indexOf('?')==-1){

	url=url+'?';



}else{

	reco=url.indexOf('&recom')


if(reco==-1){url=url+'&';}

else{
	url=url.substring(0,reco+1);
}


	}

image1 = new Image();

image1.src = "/images2/rec2_over.png";

image2 = new Image();

image2.src = "/images2/rec_t2_over.png";


var got=1;

function targetBlank (url) {
	if(got==1){
		blankWin = window.open(url,'_blank','menubar=yes,toolbar=yes, location=yes, directories=yes, fullscreen=no, titlebar=yes, hotkeys=yes, status=yes, scrollbars=yes, resiza ble=yes');}
}

function targ (url) {
	if(got==1){
		location.href=""+url;}
}



function openCentre(a,b,c,d,e,f,g) {
	//where a=href > in single quotes, b=width of window you want > a number, c=height of window > a number, d=name of window > in single quotes, e=adjust centring horizontally > a number, f=status bar > 1 or 0


if (navigator.appVersion.substring (0,1) > 3)
	{    var x1 = screen.availWidth - 10;
	var y1 = screen.availHeight-30;}
	else{var x1 = 800;
	var y1 = 600;}

	var x = (x1/2);
	var y = (y1/2);

	var adb= (b/2)+e;
	var adc= c/2;

	win=window.open(a,d,'toolbar=no,status=no,Width='+b+',Height='+c+',directories=no,scrollbars='+g+',status='+f+',location=no,resizable=yes,menubar=no,screenx='+(x-adb)+',screeny='+(y-adc)+',left='+(x-adb)+',top='+(y-adc));

if (window.focus) {win.focus()}

}

function close_it(){parent.opener.location.href=parent.opener.location.href;
parent.window.close();}

function resizeWin(){
	if (document.images){
		var width = document["theimage"].width + 12;
		var height = document["theimage"].height + 25;

		self.resizeTo(width,height); // absolute positioning
		self.moveTo(0,0);
		self.focus();
		setTimeout('self.close()',40000);
		}
}

		function resize(w,h){

			w=w+20;
			h=h+60;

			if (navigator.appVersion.substring (0,1) > 3)
	{    var x1 = screen.availWidth - 10;
	var y1 = screen.availHeight-30;}
	else{var x1 = 800;
	var y1 = 600;}

	var x = (x1/2);
	var y = (y1/2);

	var adb= (w/2);
	var adc= h/2;

			self.resizeTo(w,h);
			self.moveTo((x-adb),(y-adc));


		}

var word_count;

		function CountWords (this_field) {


var char_count = this_field.value.length;
var fullStr = this_field.value + " ";
var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;
var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, "");
var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;
var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, " ");
var splitString = cleanedStr.split(" ");
var word_count = splitString.length -1;

if (fullStr.length <2) {
word_count = 0;
}
if (word_count == 1) {
wordOrWords = " word";
}
else {
wordOrWords = " words";
}

//alert ('word count'+word_count)

return word_count;
}