<!-- Original:  Ronnie T. Moore, Editor -->
<!-- Idea by:  Selvi Narayanan -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
varvalue = document.location.search.substring(6)
//sitef ="img";
	if (varvalue == "F"){
//	alert("dentroif"+varvalue);
	var datef = new Array("_01","_02","_03","_04","_05","_AA");
//	var datef = new Array("_01","_03","_05","_10","_AA");
	hf1 = "fcst";
	sitef="IMG_F";}
//	alert(hf1+sitef);
	if (varvalue == "H"){
	var datef = new Array("_01","_02","_03","_04","_05","_06","_07","_AA");
	hf1 = "hind";
	sitef="IMG_H";}

function combineMenus(frm, menu1, menu2) {
with (frm) {
//alert(hf1);
//str = menu1.options[menu1.selectedIndex].value;
//str += menu2.options[menu2.selectedIndex].value;
if (menu1 == ""){
alert("You miss to select DAY");}
if (menu2 == ""){
alert("You miss to select FIELD");}
if (menu2 == menu1){
str = menu1;
url = site + "/" + str + ".png";
//window.location.href = url;
//window.location.href = url;
document.images.pictures.src=url;
return url;
   }
else {
//var datef = new Array("_01","_03","_05","_10","_AA");
var namef = new Array("5mT","30mT","120mT","280mT","360mT","5mS","30mS","120mS","280mS","360mS","5mV","30mV","120mV","280mV","360mV","WS","SSE","HF","WF","SEC_SAR_T","SEC_SAR_S","SEC_SAR_U","SEC_SIC_T","SEC_SIC_S","SEC_SIC_U0","SEC_SIC_U10");
for (var j=0 ; j<7; j++){
//for (var j=0 ; j<5; j++){
//	alert(date);
//	alert(menu1);
	if (date[j] == menu1){
		str0 = datef[j];
//		alert(str0);
		}
		}
for (var i=0 ; i<27; i++){
	if (namev[i] == menu2){
		str1 = namef[i];
//		alert(str1);
		}
		}
str = str1 + str0;
//if (hf1 == "fcst"){
//	code = firstF;}
//	if (hf1 == "hind"){
//	code = firstH;}
//url = sitef + "/" + hf1 + first + str + ".png";
url = sitef + "/" + str + ".png";
//alert(url);
//alert(hf1);
document.images.pictures.src=url;
return url;
   }
}
}

function showimage(str)
{
if (!document.images)
return
// pagina dei trasporti
//if (hf1 == "fcst"){
//	code = firstF;}
//	if (hf1 == "hind"){
//	code = firstH;}
//url =  sitef + "/"  + str + ".jpg";
url =  sitef + "/"  + str + ".png";
//alert(url);
document.images.pictures.src=url;
//document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}

function showimageH(str)
{
if (!document.images)
return
// pagina dei trasporti
//if (hf1 == "fcst"){
//	code = firstF;}
//	if (hf1 == "hind"){
//	code = firstH;}
//url =  sitef + "/"  + str + ".jpg";
url =  sitef + "/"  + str + ".png";
//alert(url);
document.images.pictures.src=url;
//document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}

function showimage2()
{
if (!document.images)
return
url = sitef +  "/" + "Po_discharge.gif";
document.images.pictures.src=url;
//document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value
}

function transferview(image,width,height) {
cond1="width="+(width+20)+"";
cond2="height="+(height+70)+"";

var s1 ="<TITLE>Image</TITLE>"
var s15=""
var s2 ="<CENTER><IMG SRC='"+image+"' BORDER=0>"
var s3 ="<FORM><INPUT TYPE='BUTTON' VALUE='Close Window'"+ " onClick='self.close()'>"
var s4 ="</FORM></CENTER>"

ImageWindow=window.open("", "newwin"+width,"toolbar=no,scrollbars="+scroll+",menubar=no,"+cond1+","+cond2);
ImageWindow.document.write(s1+s15+s2+s3+s4)
ImageWindow.document.close()
}

function transport(){
//alert(hf1);
if (hf1 == "fcst"){
	hf2 = "F"}
	if (hf1 == "hind"){
	hf2 = "H"}
//	alert(hf2);
	add ="trans.htm?link="+hf2;
//	alert(add);
self.location=add;
}

function section(){
//alert(hf1);
if (hf1 == "fcst"){
	hf2 = "F"}
	if (hf1 == "hind"){
	hf2 = "H"}
//	alert(hf2);
	add ="section.htm?link="+hf2;
//	alert(add);
self.location=add;
}

function validation(){
//alert(hf1);
if (hf1 == "fcst"){
	hf2 = "F"}
	if (hf1 == "hind"){
	hf2 = "H"}
//	alert(hf2);
	add ="validation.htm?link="+hf2;
//	alert(add);
self.location=add;
}

function backb(){
//alert(hf);
if (hf1 == "fcst"){
	hf3 = "F"}
	if (hf1 == "hind"){
	hf3 = "H"}
//	alert(hf3);
	add1 ="bulletin.htm?link="+hf3;
//	alert(add1);
self.location=add1;
}

function velocity(){
//alert(hf1);
if (hf1 == "fcst"){
	hf4 = "F"}
	if (hf1 == "hind"){
	hf4 = "H"}
//	alert(hf2);
	add ="section.htm?link="+hf4;
//	alert(add);
self.location=add;
}

function aree(area){
//alert(area);
if (hf1 == "fcst"){
	hf5 = "F"}
	if (hf1 == "hind"){
	hf5 = "H"}
//	alert(hf2);
	add ="velocity"+area+".htm?link="+hf5;
//	alert(add);
self.location=add;
}