
//var arrTemp=self.location.href.split("?");
//var NS = (navigator.appName=="Netscape")?true:false;

function imagepagepopup(mypage,w,h) {
	if(arguments[3]!=null){
		mypage = 'image'+mypage+'.htm';
	}else mypage = 'image.htm?image='+escape(mypage)+'&w='+w+'&h='+h;
	var myname = 'myBrowser';
	var myWin;
	var pcgsize = 75;
	var intHeight = window.screen.height;
	var intWidth = window.screen.width;
	//var h = Math.round( (pcgsize/100) * intHeight  ) ;
	//var w = Math.round( (pcgsize/100) * intWidth  );
	var wint = Math.round( (intHeight - h)/2  );
	var winl = Math.round( (intWidth - w)/2 );
	w=w+38; h=h+38;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no,toolbar=no';
	if ( !myWin || myWin.closed ) { 
		myWin = window.open(mypage, myname, winprops)
		myWin.focus();
	} else {
		myWin.location.href = myPage;
		myWin.focus();
	}
}

/*
function getQueryVariable(variable) {
	if(window.location.search.substring(1)){
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (var i=0;i<vars.length;i++) {
			var pair = vars[i].split("=");
			if (pair[0] == variable) return pair[1];
		}
	}
}


function showImage(){
	if(document.getElementById('showimage') != undefined){
		var div = document.getElementById('showimage');
		div.innerHTML = '<img src="'+getQueryVariable('image')+'" alt="" />';
	}	
}

var qsSuccess = getQueryVariable('success');
if(qsSuccess=='true'){	
	alert('Thank you for subscribing to IC Green Online mailing list');
}else if(qsSuccess=='false'){
	alert('There has been an error with your details. Please try again...');	
}
*/