// JavaScript Document
var preVal="";
function expandWin(id)
{
	if(preVal!="" && preVal!=id)
	{
		document.getElementById("win"+preVal).className="text_hidden";
		preVal="";
	}
	
	if(document.getElementById("win"+id).className=="text_visible")
		document.getElementById("win"+id).className="text_hidden";
	else
		document.getElementById("win"+id).className="text_visible";
	
	preVal=id;
}

var preVal="";
function expandWinCon(id)
{
	if(preVal!="" && preVal!=id)
	{
		document.getElementById("win"+preVal).className="text_hidden";
		document.getElementById("a"+preVal).className="normal";
		preVal="";
	}
	
	if(document.getElementById("win"+id).className=="text_visible")
	{
		document.getElementById("win"+id).className="text_hidden";
		document.getElementById("a"+id).className="normal";
	}
	else
	{
		document.getElementById("a"+id).className="hand";
		document.getElementById("win"+id).className="text_visible";
	}
	preVal=id;
}

function callLink(val,n)
{
	for(var i=1;i<=n;i++)
	{
		if(i == val)
		{
			document.getElementById(val).className="show";
		}
		else
		{
			document.getElementById(i).className="hide";
		}
	}
}

// This Script for to get Query String URL
var sqsParm = new Array();
function mqs()
{
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++) 
{
   var pos = parms[i].indexOf('=');
   if (pos > 0) 
   {
      var key = parms[i].substring(0,pos);
      var val = parms[i].substring(pos+1);
      sqsParm[key] = val;
    }
 }
   return sqsParm["id"];
}


function call(fn)
	{
		var w=400;
		var h=400;
		var viewimageWin = window.open(fn,'New_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=Yes,resizable=no,copyhistory=no,width='+w+',height='+h);
 		//viewimageWin.moveTo(screen.availWidth/2-(w/2),screen.availHeight/2-(h/2));
		//viewimageWin.moveTo(300,400);
	}
