//for random image selection
 function randomImage(){

         var newimg = "images/people/people1.gif";

        var img1 = "images/people/people1.gif";
        var img2 = "images/people/people2.gif";
        var img3 = "images/people/people3.gif";
        var img4 = "images/people/people4.gif";
		var img5 = "images/people/people5.gif";
		var img6 = "images/people/people6.gif";
		var img7 = "images/people/people7.gif";
		var img8 = "images/people/people8.gif";
		var img9 = "images/people/people9.gif";
		
        var randomize = Math.round(Math.random()*9)

        if (randomize == 1){
        	newimg = img1;}

         if (randomize == 2){
            newimg = img2;}

          if (randomize == 3){
             newimg = img3;}

          if (randomize == 4){
             newimg = img4;}
		  
		  if (randomize == 5){
             newimg = img5;}	 
	   	  
		  if (randomize == 6){
             newimg = img6;}
			 
		   if (randomize ==7){
             newimg = img7;}
			  if (randomize == 8){
             newimg = img8;}
			  if (randomize ==9){
             newimg = img9;}	 
			 
          document.write('<IMG SRC="'+newimg+'">')
}

 function randomGracomImage(){

         var newimg = "images/people/people1.gif";

        var img1 = "images/people/gracom_people1.gif";
        var img2 = "images/people/gracom_people2.gif";
        var img3 = "images/people/gracom_people3.gif";
        var img4 = "images/people/gracom_people4.gif";
		var img5 = "images/people/gracom_people5.gif";
		var img6 = "images/people/gracom_people6.gif";
		var img7 = "images/people/gracom_people7.gif";
		var img8 = "images/people/gracom_people8.gif";
		var img9 = "images/people/gracom_people9.gif";
		
        var randomize = Math.round(Math.random()*9)

        if (randomize == 1){
        	newimg = img1;}

         if (randomize == 2){
            newimg = img2;}

          if (randomize == 3){
             newimg = img3;}

          if (randomize == 4){
             newimg = img4;}
		  
		  if (randomize == 5){
             newimg = img5;}	 
	   	  
		  if (randomize == 6){
             newimg = img6;}
			 
		   if (randomize ==7){
             newimg = img7;}
			  if (randomize == 8){
             newimg = img8;}
			  if (randomize ==9){
             newimg = img9;}	 
			 
          document.write('<IMG SRC="'+newimg+'">')
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//
function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}
function showIt(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css)lyr.css.height = "325px";
}

function hideIt(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css)lyr.css.height = "29px";
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function gcSetFilter(filterValue){
   var	newValue = filterValue;					
   window.location = window.location + "?gc_filterstr=" + newValue;
}


function hideCombo(){
		try {var objDivStyle = eval('document.all.OfficeListDiv.style');
		objDivStyle.visibility = 'hidden'; } catch(err) {} 

		try {objDivStyle = eval('document.all.FactSheetTypeListDiv.style');
		objDivStyle.visibility = 'hidden'; } catch(err) {} 
		
		try {objDivStyle = eval('document.all.ProjectTypeListDiv.style');
		objDivStyle.visibility = 'hidden' } catch(err) {} 

		try {objDivStyle = eval('document.all.ContractValueListDiv.style');
		objDivStyle.visibility = 'hidden' } catch(err) {} 
		
		try {objDivStyle = eval('document.all.TextBoxDiv.style');
		objDivStyle.visibility = 'hidden'	 } catch(err) {} 
				
	}
	
	function functionShowCombo(){
		try {var objDivStyle = eval('document.all.OfficeListDiv.style');
		objDivStyle.visibility = 'visible'; } catch(err) {} 

		try {objDivStyle = eval('document.all.FactSheetTypeListDiv.style');
		objDivStyle.visibility = 'visible'; } catch(err) {} 

		try {objDivStyle = eval('document.all.ProjectTypeListDiv.style');
		objDivStyle.visibility = 'visible'; } catch(err) {} 
		
		try {objDivStyle = eval('document.all.ContractValueListDiv.style');
		objDivStyle.visibility = 'visible'; } catch(err) {} 
				
		try {objDivStyle = eval('document.all.TextBoxDiv.style');
		objDivStyle.visibility = 'visible'; } catch(err) {} 

	}


 function RunFoo(strObject,parm1,parm2,parm3,parm4,parm5) {
 var d = document.getElementById('menu');
  d.innerHTML = strObject + parm1 + parm2 + parm3 + parm4 + parm5 + '</object>'

} 

     function OpenModalDialog()
                {
                    var vReturnValue;
                    vReturnValue = window.showModalDialog('bid_list_modal.aspx','Bid List Application','dialogHeight:600px; dialogWidth:810px; dialogTop:190px; dialogLeft:220px; edge:Raised; center:Yes; help:No; resizable:No; status:No;');
                 
                    if(vReturnValue != null && vReturnValue == true)
                    {
                       alert('Thank You for your submission.');
                    }
                }
