///============================================
// BOOKMARK
///============================================
function bookmarksite(title, url)
	{
	if (document.all)
	window.external.AddFavorite(url, title);
	else if (window.sidebar)
	window.sidebar.addPanel(title, url, "")
	}

///============================================
// CONFIRM LINK
///============================================
function confirmLink(link,msg)
	{
	var agree=confirm(msg);
	if (agree)
		{
		location.href=link;
		}
	}

///============================================
// CENTER WINDOW POPUP
///============================================
var win = null;
function NewWindow(mypage,myname,w,h,scroll)
	{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
	if(win.window.focus)
		{
		win.window.focus();
		}
	}

///============================================
// CHECK CONTACT FORM
///============================================
function checkContactForm()
	{
	if((document.contactForm.contact_title.value=="")||
(document.contactForm.contact_forename.value=="")||
(document.contactForm.contact_surname.value=="")||
(document.contactForm.contact_email.value=="")||
(document.contactForm.contact_number.value=="")||
(document.contactForm.contact_subject.selectedIndex=="0")||
(document.contactForm.contact_enquiry.value==""))
		{
		alert("Please Make sure all required fields are completed, then try again.");
		return (false);
		}
	else
		{
		return (true);
		}
	}

///============================================
// REFRESH VERIFICATIO IMAGE
///============================================
function refreshImage(img,imgName)
	{
	var url = img + "?p=" + Math.random();
	document.getElementById(imgName).src=url;

	return false;
	}


