function _popWindow(url, windowName, windowAttributes) {
	winObj = window.open(url,windowName,windowAttributes);
	winObj.focus();
	return winObj;
}

function popStandardFeatures (aElm) {
	aElm.setAttribute('target','standardFeatures',0);
	_popWindow('','standardFeatures','width=245,height=290,resizable');
}

function popAccessoryWindow (url) {
	_popWindow(url,"accessoryWindow","width=246,height=310,scrollbars");
}

function popPrintFeatures(aElm) {
	aElm.setAttribute('target','printFeatures',0);
	_popWindow('','printFeatures','width=463,height=600,scrollbars,menubar,resizable');
}

function popPrintSpecifications(url) {
	_popWindow(url,"printWindow","width=463,height=600,scrollbars,menubar");							
}

//pdf viewer
function popPDFViewer(url) {
	if(url != 'NA') _popWindow(url, "pdfWindow","width=700,height=600,resizable");
}

//gallery
function popGallery(url){
	_popWindow(url,'galleryWindow',"width=800,height=660,scrollbars,menubar=false,top=30,left=30")
}

function popVideo(url,height,width){
	height = height||598
	width = width||640
	_popWindow(url,'videoWindow',"width="+width+",height="+height+",resizable,top=30,left=30")
}
function popView(url,height,width){
	height = height||358
	width = width||320
	_popWindow(url,'videoWindow',"width="+width+",height="+height+",resizable,top=30,left=30")
}

// About-Events Calendar popup
function popCalendar(aElm) {
	aElm.setAttribute('target','eventInfo',0);
	_popWindow('','eventInfo','width=246,height=310,resizable');
}

// Brochure request-Privacy popup
function popBrochurePrivacy(aElm) {
	aElm.setAttribute('target','privacyInfo',0);
	_popWindow('','privacyInfo','width=300,height=200,resizable');
}

function popGlossary(aElm) {
	aElm.setAttribute('target','glossary',0);
	_popWindow('','glossary','width=245,height=290,scrollbars,menubar=false');
}

function popPrintPrivacy(aElm) {
	aElm.setAttribute('target','print',0);
	_popWindow('','print','width=600,height=600,scrollbars,menubar,resizable');
}

function popPrintBuying(aElm) {
	aElm.setAttribute('target','print',0);
	_popWindow('','printBuying','width=460,height=480,scrollbars,menubar,resizable');
}