function makeWin(file,window,tmpwidth,tmpheight,tmpScrollbars) {
    msgWindow=open(file,window,'resizable=no,width=' + tmpwidth + ',height=' + tmpheight + ',scrollbars=' + tmpScrollbars + ',location=0');
    if (msgWindow.opener == null) msgWindow.opener = self;
}
function changeText(formName, tmpField, tmpNewValue) {
	 document.qmForm_veh.vehDriveTrain.value="this text";
}
function autoSubmitForm(tmpFormName) {
   setTimeout('document.' + tmpFormName + '.submit()', 1);
}
function CloseTheWindow() {
	// Function that closes the current window.
	self.close();
}

function makePrintWin(file,window) {
    msgWindow=open(file,window,'resizable=yes,toolbar=1,location=1,scrollbars=1, menubar=1,status=1');
    if (msgWindow.opener == null) msgWindow.opener = self;
}
function Open_Popup(url, width, height,scroll)
{
	window.open(url, 'newWin', 'menubar=0,location=0,width=' + width + ',height=' + height + ',resizable=0,scrollbars=' + scroll + '');
}
function Open_Popup2(url, width, height,scroll)
{
	window.open(url, 'newWin2', 'menubar=0,location=0,width=' + width + ',height=' + height + ',resizable=0,scrollbars=' + scroll + '');
}
