function OpenSearchGroupNumber(ddl, url) {
if (ddl.options[ddl.selectedIndex].value == "-1")
return false;
var value = ddl.options[ddl.selectedIndex].value;
window.location = url+'&groNumber='+value;}
function OpenSearchCollectionName(ddl, url) {
if (ddl.options[ddl.selectedIndex].value == "-1")
return false;
var value = ddl.options[ddl.selectedIndex].value;
window.location = url+'&groNumber='+value;}
function OpenSearchLifeStyle(ddl, url) {
if (ddl.options[ddl.selectedIndex].value == "-1")
return false;
var value = ddl.options[ddl.selectedIndex].value;
window.location = url+'&lifStyle='+value;}
function OpenSearchIFunctionFinish(ddl, url) {
if (ddl.options[ddl.selectedIndex].value == "-1")
return false;
var value = ddl.options[ddl.selectedIndex].value;
var arr;
if (value.indexOf("@#@") > 0) {
arr = value.replace("@#@", "$").split('$');}
if (value.indexOf("IFunction") > 0) {
url = url.replace("PAGE_SEARCH", "IFunctions_Products_Search")+'&ifcId='+arr[0];}
else {
url = url.replace("PAGE_SEARCH", "Finishes_Products_Search")+'&finId='+arr[0];}
window.location = url;}
function OpenPopup(url){
var timeLineWindow = window.open(url, 'timeLineWindow', 'width=745, height=440, toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,resizable=0,fullscreen=0');
if (window.focus) { timeLineWindow.focus() }}
function resizeImage(imageOrImageName, width, height) {
var image = typeof imageOrImageName == 'string' ? document[imageOrImageName] : imageOrImageName;
if (document.layers) {
image.currentWidth = width;
image.currentHeight = height;
var layerWidth = image.width > width ? image.width : width;
var layerHeight = image.height > height ? image.height : height;
if (!image.overLayer) {
var l = image.overLayer = new Layer(layerWidth);}
var l = image.overLayer;
l.bgColor = document.bgColor;
l.clip.width = layerWidth;
l.clip.height = layerHeight;
l.left = image.x;
l.top = image.y;
var html = '';
html+= '<IMG SRC="'+image.src+'"';
html+= image.name ? ' NAME="overLayer'+image.name+'"' : '';
html+= ' WIDTH="'+width+'" HEIGHT="'+height+'">';
l.document.open();
l.document.write(html);
l.document.close();
l.visibility = 'show';}
else {
image.width = width;
image.height = height;}}
function zoomImage(imageOrImageName, factor) {
var image = typeof imageOrImageName == 'string' ? document[imageOrImageName] : imageOrImageName;
if (document.layers) {
var currentWidth = image.currentWidth ? image.currentWidth : image.width;
var currentHeight = image.currentHeight ? image.currentHeight : image.height;}
else {
var currentWidth = image.width;
var currentHeight = image.height;}
var width = parseInt(currentWidth * factor);
var height = parseInt(currentHeight * factor);
resizeImage(image, width, height);}
