﻿// JScript File

function navigateTo(path){
    window.location.href=path;
}

function createPopUp(page,width,height){
    var pop=window.open('' + page + '','pop','toolbar=no,scrollbars=yes,left=0,top=0,width=' + width + ',height=' + height + '')
    pop.opener=window; 
}

function createPopUp(page,width){
    var pop=window.open('' + page + '','pop','toolbar=no,scrollbars=yes,left=0,top=0,width=' + width + '')
    pop.opener=window; 
}

function showPicture(path){
	window.open('' + path + '','pop','toolbar=no,width=420px,height=420,top=0,left=0');
}

function deleteCommand(control,value,message){
    var isDelete=confirm(message);
    if(isDelete)
	{
		__doPostBack('' + control + '','' + value + '');
	}
}

function downloadFile(path){
	window.open(path);
}

function doPostBack(control,value){
    __doPostBack(control,value);
}

function pageRefresh(){
	window.opener.refresh();
}

function refresh(){
	__doPostBack('cmdRefresh','');
}

function disable_CTRL(control){
	control.disabled=true;
}
