/* =================================================================================

   Burrows Creative Ltd JS Library 
   Last Updated: 27 November 2007

================================================================================= */



//clears inputs on form
function doClear(theText) {
if (theText.value == theText.defaultValue) {
theText.value = ""
}
}

function doReturn(theText) {
theText.value = theText.defaultValue
}


//New Window
var newwindow;
function popitup(url)
{

	var x = document.forms[0].elements;
	var properties = '';
	for (var i=0;i<x.length;i++)
	{
		if (x[i].checked)
			properties += x[i].name + '=' + x[i].value +',';
	}
	properties = properties.substring(0,properties.length-1);
	newwindow=window.open(url,'name','height=120,width=250');
	newwindow.moveTo(400,400);
	if (window.focus) {newwindow.focus()}
	return false;
}

/////Highlight textarea stuff/////

function SelectAll(id)
{
    document.getElementById(id).focus();
    document.getElementById(id).select();
}

function UnSelectAll(id)
{
    document.getElementById(id).blur();
    //document.getElementById(id).unselect();
}
//-->