function OpenCertDetails()
 	{
 	thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=UKWORL6-6X', 'anew', config='height=450,width=500,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
 	}
function winHelp(){
	win = window.open("/cust-info.asp","win", "width=450,height=450,scrollbars=0");
}
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
function openwin(withURL, w, h, noscrollbars){
	var scrollbars;
	if(noscrollbars == 'TRUE'){scrollbars = 'no';
	} else {scrollbars = 'yes';}
	myWin= open(withURL,'newwindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,width=' + w + ',height=' + h + ',left=150,top=150');
}


function addbookmark(){
	window.name = "main";
	var bookmarkurl = "http://www.worldgallery.co.uk/"
	var bookmarktitle = "Prints & Posters - WorldGallery.co.uk"
	if (document.all);
	window.external.AddFavorite(bookmarkurl,bookmarktitle);
}
function add_to_mailing_list(){
	var email_address;
	var from_where;
	if(document.mailform){
		email_address = document.mailform.email.value;
		if(document.mailform.from_where) from_where = document.mailform.from_where.value;
	}
	if(window.mailform){
		email_address = window.mailform.email.value;
		if(window.mailform.from_where) from_where = window.mailform.from_where.value;
	}
	this_window = '/scripts/php/add_to_mailing_list.php?email_address='+email_address+'&from_where='+from_where;
var myWin= open(this_window,'test','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=300,height=200,left=150,top=150');
}
function target_parent(URL) {
	if(window.opener.opener){
		pw = window.opener.opener.top;pw.location = URL;
		window.opener.close();
		window.close();
	} else if (window.opener){
		pw = window.opener.top;pw.location = URL;window.close();
	} else {
		pw = window.top;pw.location = URL;
	}
}