Thank you for ur fast reply,
actually, i found a way doing that! you can invoke the function Dialog_save('StrFileName') this function will save the form in sharepoint by the name StrFileName!!
Dialog_save is an already present function! it is included in Core.js file that comes with Sharepoint.
so, first you should add a reference to this file and other files before writing code! here is the complete picture:-
<
script type="text/javascript" src="/_layouts/FormResource.aspx?culture=1033&version=1"></script>
<
script type="text/javascript" src="/_layouts/inc/Core.js?rev=0AlweRh6OY%2BdGdflbeh6dA%3D%3D"></script><script type="text/javascript" src="/_layouts/inc/IntlCoreStrings.js?rev=Oi%2BjzqGIiSFExZmi%2FF9VhQ%3D%3D"></script>
<
script type="text/javascript" src="http://sv-testforms/_layouts/FormResource.aspx?solutionId=I:d0699504-1179-4349-9a3e-e14e275bbdc2:1a225b7a-4de9-422d-b3a1-216cc837033e:633348769540000000&view=0&browser=IE&viewFile=View%2Ejs&version=1"></script><script type="text/javascript"><!--
UserAgentInfo.strBrowser = 1;
//-->
</script>
Then you invoke Dialog_Save function as follows!!
<button id="Button2" onclick="Dialog_Save('NAME');" style="width: 205px; height: 24px" >
Save</button>
hope it would be helpful!!
Thanks,
Osama Momani.