//page scope variable
var newWin=null;

//funcion to display window url, width and height parameters
function showPic(fpath,w,h){
	if(newWin!=null){newWin.close(); newWin=null;}
	newWin=window.open(fpath,'newWin','left=0,top=0 height=' + h + ', width= ' +w +'');
} 

//function called by passing arguments
function link1() { showPic("link1.htm",302,452);}
function link2() { showPic("link2.htm",302,452);}
function link6() { showPic("link6.htm",302,452);}
function link3() { showPic("link3.htm",302,452);}

//getting selected category values and calling appropriate function
function GoFile(){
	var i = window.document.frmSearch.SearchProduct.selectedIndex;
	var linkValue = parseInt(window.document.frmSearch.SearchProduct[i].value);

	switch(linkValue){
	
	case 1:
		link1();
		break; 
	case 2:
		link2();
		break; 
	case 3:
		link6();
		break; 
	case 4:
		link3();
	break; 
	} 
}
