function showhide(id){
  if(document.getElementById){
    if(document.getElementById(id).style.display == "none")
      document.getElementById(id).style.display = "block";
    else
      document.getElementById(id).style.display = "none";
  }
}

function OpenWin( path, win_name ){
   win=window.open(path, win_name ,"width=700, height=600, scrollbars=auto,toolbar=no,location=no,directories=no,status=yes,menubar=no,favorites=no,resizable=yes");
}

function OpenWin3( path, win_name ){
   win=window.open(path, win_name ,"width=500, height=500, scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,favorites=no,resizable=yes");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function changeImages(imagename,imagefile) {
if (document.layers) {
	document.images[imagename].src = imagefile; 		// for N4
	}
else if (document.getElementById) {
	document.getElementById(imagename).src = imagefile; 	// for IE5, N6
	document.getElementById(imagename).style.border=0;
	}
else	{
	document.all(imagename).src = imagefile; 			// for IE4
	}
}


//profpage--------------------------------------------------------

function preload(){
	imgarry = new Array();
	for(i=1;i<=10;i++){
		imgarry[i] = new Image;
		imgname = (i!='10')? "0"+i:i;
		imgarry[i].src = imgname + ".jpg";
	}
}