function formOver(){
	
//open new window
var x = document.getElementsByTagName('a');
for (var i=0;i<x.length;i++)
	{
	if (x[i].getAttribute('title') >'') {
		
		if (x[i].getAttribute('title').indexOf("Link opens in a new window") >= 0)
		{
		x[i].onclick = function () {window.open(this.href); return false}
		}	
	}	
}
	
	
//form style 
	var frms = document.getElementsByTagName('form');
	for (var j=0;j<frms.length;j++) {
		formRoot = frms[j];
		
		var r = formRoot.elements;
		var rlen = r.length;

		for (var h = 0; h < rlen; h++) {
		 	var node = r[h];
				
				node.onfocus=function() {
					if(this.type !=='radio' && (this.tagName =='INPUT'||this.tagName =='TEXTAREA')) {
						if (this.className == 'searchtextform') {
							this.className="searchtextformfocus";
						}
						if (this.className == 'textform') {
							this.className="textformfocus";
						}
						
						if (this.value.charAt(0) == '-') { this.value='' } 
					}
				}
							
				node.onblur=function() {
					if(this.type !=='radio' && (this.tagName =='INPUT'||this.tagName =='TEXTAREA')) {
						if (this.className == 'textform') {
							this.className="searchtextform";
						}
						if (this.className == 'textformfocus') {
							this.className="textform";
						}
					}
				}
			
		}
	}
}	

window.onload= formOver;