First of all, if you really are new to AviSynth, you should probably let GordianKnot set up the .AVS for you. Look Here
You will usually need two plugins, mpeg2dec.dll and decomb.dll. These are included with GordianKnot. Move them from the GordianKnot folder to your AviSynth plugin folder.
The open a text editor and paste the following:
#############################################
# START HERE
Mpeg2Source("<path>/YourFilm.d2v")
#
# FOR NTSC/FILM UNCOMMENT THE NEXT TWO LINES
#Telecide(guide=1)
#Decimate(cycle=5)
#
# FOR PAL PROGRESSIVE UNCOMMENT THE NEXT LINE
#Telecide(guide=2)
#
# FOR INTERLACED MOVIES UNCOMMENT THE NEXT LINE
#Fielddeinterlace()
#
# FOR 4:3 MOVIES USE ONE OF THESE RESIZERS
#BicubicResize(640,480)
#BicubicResize(512,384)
#BicubicResize(448,336)
#BicubicResize(320,240)
#
# FOR 16:9 MOVIES USE ONE OF THESE RESIZERS
#BicubicResize(704,400)
#BicubicResize(640,360).crop(0,4,0,-4)
#BicubicResize(512,288)
#
# END HERE
###########################################################
The # sign is a comment sign, so anything after # will be ignored. The crop after one of the resizers is needed when encoding to DivX/Xvid? as they want Modulo-16 resolutions.