

<!-- IMAGE BASED -->


function change(num,newimg)
{
document.images[num].src=newimg+".gif";
}


function changeback(num,newimg)
{
document.images[num].src=newimg+".gif";
}







<!-- WINDOW BASED -->


function open_window(daURL, winName, status, width, height, resize, scroll, tools, top, left)
{
	window.open(daURL, winName, "status=" + status + ", height=" + height + ", width=" + width + ", top=" + top + ", left=" + left + ", scrollbars=" + scroll + ", resizable=" + resize + ", toolbar=" + tools + "");
}


function close_window_opener(url)
{
	opener.location = url;
	window.close();
}


function close_window()
{
	//	self.focus();
	

	window.close();
}


function clearText(thefield)
{
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
} 



function isEmail(string)
{
	if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		return true;
    	else
       		return false;
}

