function openWindow(url, wt, ht) {
	
	var left = (screen.width/2)-(wt/2);
	var top = (screen.height/2)-(ht/2);
	
	var washerWindow = window.open(url,'washerWindow','width='+wt+',height='+ht+',top='+top+',left='+left+',location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no');
	washerWindow.focus();
}
function openWindowSrlB(url, wt, ht) {
	
	var left = (screen.width/2)-(wt/2);
	var top = (screen.height/2)-(ht/2);
	
	var washerWindow = window.open(url,'washerWindow','width='+wt+',height='+ht+',top='+top+',left='+left+',location=no,menubar=no,resizable=no,scrollbars=yes,status=no,titlebar=no,toolbar=no');
	washerWindow.focus();
}

/* Function 2 for Zooming of other views in Collection Section */
function otherView(imagepath, largeimagepath) {
	setTimeout(function() { 
		document.getElementById('zoom-product-image').src = imagepath;
		document.getElementById('zoom-product-image').setAttribute('data-zoomsrc', largeimagepath);
		document.getElementById('mojozoom_img').src = largeimagepath;
	}, 1);
	
//	document.getElementById('drag-image').src = imagepath;
//	document.getElementById('zoom-image').src = largeimagepath;
}

function txtLimit(fieldName) {
	var limit = 499; // max 500 chars	
	
	if (fieldName.value.length > limit) {
		fieldName.value = fieldName.value.substring(0, limit);
	} 
}