function selectBox(element){
	if(element.createTextRange != null){
		txtRange=element.createTextRange();
		formValue=element.value;
		txtRange.select();
	}
}

function clearField(element,defaultValue){
	strValue=element.value;
	if(element && strValue==defaultValue){
		element.value="";
		selectBox(element);
	}else{
		selectBox(element);
	}
}

function openWindow (contentURL,windowName,windowWidth,windowHeight){
	param = "toolbars=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width="+windowWidth+",height="+windowHeight+""
	newWindow = window.open(contentURL,windowName,param);
	newWindow.focus()
}