function doVisible(ima,selection)
{
        if(ima.options[0].selected == true)
        {
                document.all(selection).disabled=true;
        }
        else
        {
                document.all(selection).disabled=false;
        }
}
function disableControlObject(controlName) {
        document.all(controlName).disabled=true;
}

function enableControlObject(controlName) {
        document.all(controlName).disabled=false;
}


function mOvr(src,clrOver){ 
if (!src.contains(event.fromElement)){ 
	src.style.cursor = 'hand'; 
	src.style.color = 'black';
	src.bgColor = clrOver; 
	} 
} 
function mOut(src,clrIn){ 
if (!src.contains(event.toElement)){ 
	src.style.cursor = 'default';
	src.style.color = '#FFFFFF';
	src.bgColor = clrIn; 
	} 
} 
function mClk(src,path){ 
if(event.srcElement.tagName=='TD')
	<!--src.pp.tags('A')[0].click(); -->
	location.href = path;
}


function chk_up() {
        var v1 =document.upload.study_etech.value;
	    var v2 =document.upload.study_other.value;
		var v3 =document.upload.job.value;
		var v4 =document.upload.other.value;
	              
	  if (v1==0 && v2==0 && v3==0 && v4==0) 
		{	alert("กรุณากรอกข้อมูล เมื่อสำเร็จการศึกษาแล้วท่านดำเนินชีวิตอย่างไร");
			//document.upload.address.focus();
			 return false;
		}
		   else
				return true;
}

function popupPage(a) 
	{
		var page = a;
		windowprops = "height=350,width=427,location=no," + "scrollbars=no,menubars=no,toolbars=no,resizable=no";
		window.open(page, "Popup", windowprops);
	}
	
/* ---------------Picture check ---------------------*/

function makevisible(cur,which){
if (which==0){
cur.filters.alpha.opacity=100;
cur.style.cursor = 'hand'; 
}
else
cur.filters.alpha.opacity=70
}

<!--

/*Combo Box Image Selector:
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScript here!
*/

function showimage()
{
if (!document.images)
return
document.images.pictures.src=
/* document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value*/
document.upload.Files.value
}

function showimage1()
{
if (!document.images)
return
document.images.pictures1.src=
/* document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value*/
document.upload.Files1.value
}

function showimage2()
{
if (!document.images)
return
document.images.pictures2.src=
/* document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value*/
document.upload.Files2.value
}

function showimage3()
{
if (!document.images)
return
document.images.pictures3.src=
/* document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value*/
document.upload.Files3.value
}

function showimage4()
{
if (!document.images)
return
document.images.pictures4.src=
/* document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value*/
document.upload.Files4.value
}

//-->

function chk_search() {
        var v1 =document.searchs.QueryString.value;
		
		if (v1==0) 
		{	alert("กรุณาใส่ข้อความที่ต้องการค้นหาด้วยครับ");
			return  false;
		} 
		  else
			return true;
}

