function swapImage(oldImage, newImage) { var oldImage = document.getElementById(oldImage).src = 'images/'+newImage; }

function ValidatorClient(theForm)
{
 
	if ((document.getElementById(theForm).clientcode.value == 0) || (document.getElementById(theForm).clientcode.value == "- Type in proposal code -"))
  {
    alert("Please enter a proposal code.");
    document.getElementById(theForm).clientcode.value = '';
				document.getElementById(theForm).clientcode.focus();
    return (false);
  }
document.getElementById(theForm).submit();
}

function addBookmark(title,url) { 
 if (window.sidebar) { 
 	window.sidebar.addPanel(title, url,""); 
 } else if( document.all ) { 
 	window.external.AddFavorite(url, title); 
 } else if( window.opera && window.print ) { 
 	return true; 
}
}

function printPrep() {
	
	var remove_el=document.all.remove
	if (remove_el!=''&&remove_el.length==null)
	remove_el.style.display='none'
	else{
	for (i=0;i<remove_el.length;i++)
	remove_el[i].style.display='none'
	}
	
	var remove_el_width=document.all.removewidth
	if (remove_el_width!=''&&remove_el_width.length==null)
	remove_el_width.style.display=''
	else{
	for (i=0;i<remove_el_width.length;i++)
	remove_el_width[i].width=''
	}

	/*
	var change464_el_width=document.all.change464
	if (change464_el_width!=''&&change464_el_width.length==null)
	change464_el_width.style.display=''
	else{
	for (i=0;i<change464_el_width.length;i++)
	change464_el_width[i].src='images/internal_header_02b.jpg'
	change464_el_width[i].width='464'
	}
	*/

}

function screenPrep() {
	setTimeout("window.location.reload()",50);
	//setTimeout("document.location.href='members.php?p=y'",50);
}	
